|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableTableModel
A table model whose contents can change.
Method Summary | |
---|---|
void |
addRow(Object row)
Adds the given row to the end of the list of existing rows in the table model. |
void |
addRows(List rows)
Adds the given rows to the end of the list of existing rows in the table model. |
void |
clear()
Removes all rows from the table model. |
void |
remove(int index)
Removes from the table model the row at the given position in the list of rows. |
void |
remove(int[] indexes)
Removes the rows at each of the given positions. |
void |
remove(int firstIndex,
int lastIndex)
Removes all of the rows from firstIndex to lastIndex inclusive. |
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
Method Detail |
---|
void addRow(Object row)
row
- The row to be added. Must not be null.
IllegalArgumentException
- if row
is null.void addRows(List rows)
rows
- The rows to be added. May be empty but must not be null.
IllegalArgumentException
- if rows
is null.void remove(int index)
index
- The zero-based position of the row to be removed.
IndexOutOfBoundsException
- if index
is not within the bounds of the
model's collection of rows.void remove(int firstIndex, int lastIndex)
firstIndex
to lastIndex
inclusive. All
registered table model listeners will be notified of the removal of the rows.
firstIndex
- The zero-based position of the first row to be removed.lastIndex
- The zero-based position of the last row to be removed.
IllegalArgumentException
- if lastIndex
is less than firstIndex
.
IndexOutOfBoundsException
- if either argument is outside the bounds of the
number of rows in the model.void remove(int[] indexes)
indexes
- The array of zero-based indexes of the rows to be removed. May be empty
but must not be null.
IllegalArgumentException
- if indexes
is null.
IndexOutOfBoundsException
- if any of the elements in the array are not within the
bounds of the model's collection of rows.void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |