    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 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

##

label
outliner
parent
style
userData

##

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

##

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

##

label

      protected Object label

userData

      protected Object userData

parent

      protected JCOutlinerFolderNode parent

style

      protected JCOutlinerNodeStyle style

outliner

      protected JCOutlinerComponent outliner

##

JCOutlinerNode

      public JCOutlinerNode(Object label)

  Creates a node with no parent.

JCOutlinerNode

      public JCOutlinerNode(Object label,
                            JCOutlinerFolderNode parent)

  Creates a node with the specified parent.

##

getLabel

      public Object getLabel()

  Gets the node's label.

  See Also:
    setLabel

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

setLabel

      public void setLabel(Object v)

  Sets the node's label.

getParent

      public JCOutlinerFolderNode getParent()

  Gets the node's parent.

  See Also:
    setParent

setParent

      public void setParent(JCOutlinerFolderNode folder)

  Sets the node's parent.

getStyle

      public JCOutlinerNodeStyle getStyle()

  Gets the node's style.

  See Also:
    setStyle

setStyle

      public void setStyle(JCOutlinerNodeStyle s)

  Sets the node's style object.

getUserData

      public Object getUserData()

  Gets the node's userData.

  See Also:
    setUserData

setUserData

      public void setUserData(Object v)

  Sets the node's userData. This value is only for use by the application.

getState

      public int getState()

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

  See Also:
    getState

getChildren

      public JCVector getChildren()

  Gets the node's children (returns null if the node is not a folder).

  See Also:
    getChildren

getOutliner

      public JCOutliner getOutliner()

  Gets the parent outliner.

getLevel

      public final int getLevel()

  Gets the indentation level of the node.

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