|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acarter.jmejtree.treenode.LightStateTreeNode
public class LightStateTreeNode
| Constructor Summary | |
|---|---|
LightStateTreeNode()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LightStateTreeNode()
| Method Detail |
|---|
public java.lang.Object getChild(java.lang.Object parent,
int index)
ComposableTreeNode
getChild in interface ComposableTreeNodeparent - parent objectindex - Index of the child
ComposableTreeNode.getChild(java.lang.Object, int)public int getChildCount(java.lang.Object parent)
ComposableTreeNode
getChildCount in interface ComposableTreeNodeparent - the object with the children to count
ComposableTreeNode.getChildCount(java.lang.Object)
public int getChildIndex(java.lang.Object parent,
java.lang.Object child)
ComposableTreeNode
getChildIndex in interface ComposableTreeNodeparent - the parent objectchild - the child of the parent
ComposableTreeNode.getChildIndex(java.lang.Object,
java.lang.Object)public java.lang.Object getParent(java.lang.Object child)
ComposableTreeNode
getParent in interface ComposableTreeNodechild - the child object of the desired parent.
ComposableTreeNode.getParent(java.lang.Object)public java.lang.Class<?> getNodeClassType()
ComposableTreeNode
getNodeClassType in interface ComposableTreeNodeComposableTreeNode.getNodeClassType()public javax.swing.Icon getIcon(java.lang.Object node)
ComposableTreeNode
getIcon in interface ComposableTreeNodeComposableTreeNode.getIcon(Object)
public java.lang.String getNodeText(java.lang.Object node,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
ComposableTreeNode
getNodeText in interface ComposableTreeNodenode - 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 valueComposableTreeNode.getNodeText(Object, boolean, boolean, boolean, int, boolean)
public java.lang.String getNodeToolTipText(java.lang.Object node,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
ComposableTreeNode
getNodeToolTipText in interface ComposableTreeNodenode - 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 nodeComposableTreeNode.getNodeToolTipText(Object, boolean, boolean, boolean, int, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||