|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComposableTreeNode
| Method Summary | |
|---|---|
java.lang.Object |
getChild(java.lang.Object parent,
int index)
Returns the child of the parent given the index. |
int |
getChildCount(java.lang.Object parent)
Counts the number of children of this type under this parent. |
int |
getChildIndex(java.lang.Object parent,
java.lang.Object child)
Returns the index of the child. |
javax.swing.Icon |
getIcon(java.lang.Object node)
Returns a icon to be rendered in the tree. |
java.lang.Class<?> |
getNodeClassType()
Returns the class type of objects this tree node represents. |
java.lang.String |
getNodeText(java.lang.Object node,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Returns a textual representation of this tree node. |
java.lang.String |
getNodeToolTipText(java.lang.Object node,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Returns a meaningful tool tip description of this tree node. |
java.lang.Object |
getParent(java.lang.Object child)
Returns the parent object of the given child. |
| Method Detail |
|---|
int getChildCount(java.lang.Object parent)
parent - the object with the children to count
int getChildIndex(java.lang.Object parent,
java.lang.Object child)
parent - the parent objectchild - the child of the parent
java.lang.Object getChild(java.lang.Object parent,
int index)
parent - parent objectindex - Index of the child
java.lang.Object getParent(java.lang.Object child)
child - the child object of the desired parent.
java.lang.Class<?> getNodeClassType()
java.lang.String getNodeText(java.lang.Object node,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
node - the Object to convert to textselected - true if the node is selectedexpanded - true if the node is expandedleaf - true if the node is a leaf noderow - an integer specifying the node's display row, where 0 is the
first row in the displayhasFocus - true if the node has the focus
String representation of the node's value
java.lang.String getNodeToolTipText(java.lang.Object node,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
node - the Object to describeselected - true if the node is selectedexpanded - true if the node is expandedleaf - true if the node is a leaf noderow - an integer specifying the node's display row, where 0 is the
first row in the displayhasFocus - true if the node has the focus
String description of the nodejavax.swing.Icon getIcon(java.lang.Object node)
object - the object the icon will represent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||