wt.clients.widgets
Class DefaultLiteTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bywt.clients.widgets.DefaultLiteTreeNode
All Implemented Interfaces:
Cloneable, MutableTreeNode, Serializable, TreeNode
Direct Known Subclasses:
AttributeDefinitionTreeNode, AttributeDefTypeIDTreeNode, ClassificationNodeTreeNode, NavigationNodeTreeNode, TypeTreeNode

public abstract class DefaultLiteTreeNode
extends DefaultMutableTreeNode

------------------------------------------------------------

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
private  boolean expanded
           
private  boolean explored
           
protected static int MAX
           
protected  String name
           
protected  boolean nameHasChanged
           
protected  String tooltip
           
protected  boolean tooltipHasChanged
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
DefaultLiteTreeNode()
           
DefaultLiteTreeNode(Object obj)
          This constructor is an empty node which is used for the root only.
 
Method Summary
 DefaultLiteTreeNode getDummyChildren()
           
 AbstractLiteObject getLiteNodeObject()
          Return the AbstractAttributeDefinizerNodeView object
abstract  String getNodeToolTipText()
           
 boolean hasDummyChildren()
          Check whether this node has dummy children
 boolean isExpanded()
          Get the expanded flag.
 boolean isExplored()
          Get the explored flag.
 void setExpanded(boolean expanded)
          Set the expanded flag.
 void setExplored(boolean explored)
          Set the explored flag.
 void setUserObject(Object obj)
           
abstract  String toString()
          toString method.
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX

protected static final int MAX
See Also:
Constant Field Values

nameHasChanged

protected boolean nameHasChanged

tooltipHasChanged

protected boolean tooltipHasChanged

name

protected String name

tooltip

protected String tooltip

explored

private boolean explored

expanded

private boolean expanded
Constructor Detail

DefaultLiteTreeNode

public DefaultLiteTreeNode()

DefaultLiteTreeNode

public DefaultLiteTreeNode(Object obj)
This constructor is an empty node which is used for the root only.

Method Detail

setUserObject

public void setUserObject(Object obj)

getLiteNodeObject

public AbstractLiteObject getLiteNodeObject()
Return the AbstractAttributeDefinizerNodeView object


isExplored

public boolean isExplored()
Get the explored flag.

Returns:
explored flag; true means has been explored.

isExpanded

public boolean isExpanded()
Get the expanded flag.

Returns:
expanded flag; true means to be expanded.

setExplored

public void setExplored(boolean explored)
Set the explored flag.

Parameters:
explored - true means has been explored.

setExpanded

public void setExpanded(boolean expanded)
Set the expanded flag.

Parameters:
expanded - true means to be expanded.

hasDummyChildren

public boolean hasDummyChildren()
Check whether this node has dummy children

Returns:
true means there's dummy children at the first node.

getDummyChildren

public DefaultLiteTreeNode getDummyChildren()

toString

public abstract String toString()
toString method.

Returns:
String representing the user object

getNodeToolTipText

public abstract String getNodeToolTipText()