Method Summary |
|
public boolean | addRow() Add a row to this model. |
public void | addTableModelListener(TableModelListener listener) Adds a listener to the model, which is notified each time a change to the
model occurs. |
public boolean | canAddRow() Returns true if rows may be added to this table model. |
public boolean | canMoveRow(int indexFrom, int indexTo) Returns true if the row specified may be moved to the
new location specified. |
public boolean | canRemoveRow(int index) Returns true if the row specified may be removed. |
public Class | getColumnClass(int columnIndex) Returns the type of the column with the index specified. |
public int | getColumnCount() Returns the number of columns in the model. |
public String | getColumnName(int columnIndex) Returns the display name of the column with the index specified. |
public int | getRowCount() Returns the current number of rows. |
public Object | getValue() Return the value of the table contents, as an object of type suitable
for the property being edited. |
public Object | getValueAt(int rowIndex, int columnIndex) Returns the value of the cell at the row and column specified. |
public boolean | isCellEditable(int rowIndex, int columnIndex) Returns true if the cell specified is editable. |
public boolean | moveRow(int indexFrom, int indexTo) |
public boolean | removeAllRows() |
public boolean | removeRow(int index) |
public void | removeTableModelListener(TableModelListener listener) Removes the listener specified. |
public void | setValue(Object value) Set the initial value of the table contents. |
public void | setValueAt(Object newValue, int rowIndex, int columnIndex) Change the value of the cell specified. |