All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.bwt.JCOutlinerNode

java.lang.Object
   |
   +----jclass.bwt.JCOutlinerNode

public class JCOutlinerNode
extends Object
implements Cloneable, JCSerializable
This class describes a node in a JCOutliner component. Each node has a style which describes its appearance. The default style uses the outliner's colors and a default folder/item icon.

See Also:
JCOutliner, JCOutlinerNodeStyle

Variable Index

 o label
 o outliner
 o parent
 o style
 o userData

Constructor Index

 o JCOutlinerNode(Object)
Creates a node with no parent.
 o JCOutlinerNode(Object, JCOutlinerFolderNode)
Creates a node with the specified parent.

Method Index

 o clone()
Creates a clone of the node.
 o getChildren()
Gets the node's children (returns null if the node is not a folder).
 o getLabel()
Gets the node's label.
 o getLabelString()
Gets the node's label as a String.
 o getLevel()
Gets the indentation level of the node.
 o getOutliner()
Gets the parent outliner.
 o getParent()
Gets the node's parent.
 o getState()
Gets the node's state (returns BWTEnum.NOVALUE if the node is not a folder).
 o getStyle()
Gets the node's style.
 o getUserData()
Gets the node's userData.
 o setLabel(Object)
Sets the node's label.
 o setParent(JCOutlinerFolderNode)
Sets the node's parent.
 o setStyle(JCOutlinerNodeStyle)
Sets the node's style object.
 o setUserData(Object)
Sets the node's userData.
 o toString()
Returns a string representation of the object.

Variables

 o label
 protected Object label
 o userData
 protected Object userData
 o parent
 protected JCOutlinerFolderNode parent
 o style
 protected JCOutlinerNodeStyle style
 o outliner
 protected JCOutlinerComponent outliner

Constructors

 o JCOutlinerNode
 public JCOutlinerNode(Object label)
Creates a node with no parent.

 o JCOutlinerNode
 public JCOutlinerNode(Object label,
                       JCOutlinerFolderNode parent)
Creates a node with the specified parent.

Methods

 o getLabel
 public Object getLabel()
Gets the node's label.

See Also:
setLabel
 o getLabelString
 public String getLabelString()
Gets the node's label as a String. If the label is a Vector, the first element is returned.

See Also:
setLabel
 o setLabel
 public void setLabel(Object v)
Sets the node's label.

 o getParent
 public JCOutlinerFolderNode getParent()
Gets the node's parent.

See Also:
setParent
 o setParent
 public void setParent(JCOutlinerFolderNode folder)
Sets the node's parent.

 o getStyle
 public JCOutlinerNodeStyle getStyle()
Gets the node's style.

See Also:
setStyle
 o setStyle
 public void setStyle(JCOutlinerNodeStyle s)
Sets the node's style object.

 o getUserData
 public Object getUserData()
Gets the node's userData.

See Also:
setUserData
 o setUserData
 public void setUserData(Object v)
Sets the node's userData. This value is only for use by the application.

 o getState
 public int getState()
Gets the node's state (returns BWTEnum.NOVALUE if the node is not a folder).

See Also:
getState
 o getChildren
 public JCVector getChildren()
Gets the node's children (returns null if the node is not a folder).

See Also:
getChildren
 o getOutliner
 public JCOutliner getOutliner()
Gets the parent outliner.

 o getLevel
 public final int getLevel()
Gets the indentation level of the node.

 o clone
 public synchronized Object clone()
Creates a clone of the node.

Overrides:
clone in class Object
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index