public interface IlvTableModel extends TableModel
TableModel interface to provide
the ability to modify the structure of the table model. It mimics some of the
methods that the DefaultTableModel added to the TableModel
interface. TableModel that wants to provide the ability to
add or remove rows must implement this interface.| Modifier and Type | Method and Description |
|---|---|
void |
addRow(Object[] rowData)
Adds a row to the end of the model.
|
void |
insertRow(int rowIndex,
Object[] rowData)
Inserts a row at
row in the model. |
void |
removeRow(int rowIndex)
Removes the row at
row from the model. |
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAtvoid addRow(Object[] rowData)
null values unless rowData is specified.
Notification of the row being added will be generated.rowData - optional data of the row being addedvoid insertRow(int rowIndex,
Object[] rowData)
row in the model. The new row
will contain null values unless rowData
is specified. Notification of the row being added will be generated.
IlvTableModel might not be able to
fulfill the contract of adding the row at given index.
That's why it is preferable to use addRow(Object[]) instead.rowIndex - the row index of the row to be insertedrowData - optional data of the row being addedArrayIndexOutOfBoundsException - if the row was invalidvoid removeRow(int rowIndex)
row from the model. Notification
of the row being removed will be sent to all the listeners.rowIndex - the row index of the row to be removedArrayIndexOutOfBoundsException - if the row was invalid© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.