|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Adds support for columns to basic TreeModel
.
Method Summary | |
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 . |
Method Detail |
public 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 typepublic boolean 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 typepublic void 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 position
UnknownTypeException
- if there is no TableModel defined for given
parameter typepublic void addModelListener(ModelListener l)
l
- the listener to addpublic void removeModelListener(ModelListener l)
l
- the listener to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |