public interface TableModel extends Model
TreeModel
.Modifier and Type | Method and Description |
---|---|
void |
addModelListener(ModelListener l)
Registers given listener.
|
Object |
getValueAt(Object node,
String columnID)
Returns value to be displayed in column
columnID
and row identified by node . |
boolean |
isReadOnly(Object node,
String columnID)
Returns true if value displayed in column
columnID
and row node is read only. |
void |
removeModelListener(ModelListener l)
Unregisters given listener.
|
void |
setValueAt(Object node,
String columnID,
Object value)
Changes a value displayed in column
columnID
and row node . |
Object getValueAt(Object node, String columnID) throws UnknownTypeException
columnID
and row identified by node
. Column ID is defined in by
ColumnModel.getID()
, and rows are defined by values returned from
TreeModel.getChildren(java.lang.Object, int, int)
.node
- a object returned from
TreeModel.getChildren(java.lang.Object, int, int)
for this rowcolumnID
- a id of column defined by ColumnModel.getID()
UnknownTypeException
- if there is no TableModel defined for given
parameter typeboolean isReadOnly(Object node, String columnID) throws UnknownTypeException
columnID
and row node
is read only. Column ID is defined in by
ColumnModel.getID()
, and rows are defined by values returned from
TreeModel.getChildren(java.lang.Object, int, int)
.node
- a object returned from TreeModel.getChildren(java.lang.Object, int, int)
for this rowcolumnID
- a id of column defined by ColumnModel.getID()
UnknownTypeException
- if there is no TableModel defined for given
parameter typevoid setValueAt(Object node, String columnID, Object value) throws UnknownTypeException
columnID
and row node
. Column ID is defined in by
ColumnModel.getID()
, and rows are defined by values returned from
TreeModel.getChildren(java.lang.Object, int, int)
.node
- a object returned from TreeModel.getChildren(java.lang.Object, int, int)
for this rowcolumnID
- a id of column defined by ColumnModel.getID()
value
- a new value of variable on given positionUnknownTypeException
- if there is no TableModel defined for given
parameter typevoid addModelListener(ModelListener l)
l
- the listener to addvoid removeModelListener(ModelListener l)
l
- the listener to remove