Defines the requirements for an object that can be used as a tree node in a JTree.
Implementations of TreeNode that override equals will typically need to override hashCode as well. Refer to TreeModel for more information.
For further information and examples of using tree nodes, see How to Use Tree Nodes in The Java Tutorial.
Defines the requirements for an object that can be used as a tree node in a JTree. Implementations of TreeNode that override equals will typically need to override hashCode as well. Refer to TreeModel for more information. For further information and examples of using tree nodes, see How to Use Tree Nodes in The Java Tutorial.
(children this)
Returns the children of the receiver as an Enumeration.
returns: java.util.Enumeration
Returns the children of the receiver as an Enumeration. returns: `java.util.Enumeration`
(get-allows-children? this)
Returns true if the receiver allows children.
returns: boolean
Returns true if the receiver allows children. returns: `boolean`
(get-child-at this child-index)
Returns the child TreeNode at index childIndex.
child-index - int
returns: javax.swing.tree.TreeNode
Returns the child TreeNode at index childIndex. child-index - `int` returns: `javax.swing.tree.TreeNode`
(get-child-count this)
Returns the number of children TreeNodes the receiver contains.
returns: int
Returns the number of children TreeNodes the receiver contains. returns: `int`
(get-index this node)
Returns the index of node in the receivers children. If the receiver does not contain node, -1 will be returned.
node - javax.swing.tree.TreeNode
returns: int
Returns the index of node in the receivers children. If the receiver does not contain node, -1 will be returned. node - `javax.swing.tree.TreeNode` returns: `int`
(get-parent this)
Returns the parent TreeNode of the receiver.
returns: javax.swing.tree.TreeNode
Returns the parent TreeNode of the receiver. returns: `javax.swing.tree.TreeNode`
(leaf? this)
Returns true if the receiver is a leaf.
returns: boolean
Returns true if the receiver is a leaf. returns: `boolean`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close