|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A utility record that provides all methods necessary to be rendered
generic in a TreeTable.
The DefaultTreeTableModel and DefaultPolyTreeNode implementations take
note of the presence of this interface, which makes it possible to avoid
overriding model and node classes (DefaultTreeTableModel, DefaultTreeNode).
That means you are not obliged to implement subclasses of these classes to
render table columns.
You need to implement equals() and hashCode(), as these nodes are managed in a Hashtable. Else there will be multiple appearances of one node.
Method Summary | |
boolean |
getAllowsChildren()
Returns true if the receiver allows children, i.e. it is a "child folder". |
boolean |
getAllowsParents()
Returns true if the receiver allows parents, i.e. it is a "parent folder". |
java.lang.Object |
getChildAt(int index)
Returns the child object at given index of this userObject. |
int |
getChildCount()
Returns the number of children of this userObject. |
java.lang.Class |
getColumnClass(int column)
Returns the class for given column. |
int |
getColumnCount()
Returns the number of columns for this userObject. |
java.lang.String |
getColumnName(int column)
Returns the name for given column. |
java.lang.Object |
getColumnObject(int column)
Returns the Object for given column from this userObject. |
java.lang.Object |
getParentAt(int index)
Returns the parent object at given index of this userObject. |
int |
getParentCount()
Returns the number of parents of this userObject. |
boolean |
isColumnEditable(int column)
Returns true if passed column is editable. |
java.lang.Object |
setColumnObject(int column,
java.lang.Object aValue)
Sets the the given column Object into this userObject. |
Method Detail |
public boolean isColumnEditable(int column)
public java.lang.Object getColumnObject(int column)
public java.lang.Object setColumnObject(int column, java.lang.Object aValue)
public int getColumnCount()
public java.lang.Class getColumnClass(int column)
public java.lang.String getColumnName(int column)
public int getChildCount()
public java.lang.Object getChildAt(int index)
public boolean getAllowsChildren()
public int getParentCount()
public java.lang.Object getParentAt(int index)
public boolean getAllowsParents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |