Package adams.gui.goe.actorpathtree
Class ActorPathNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- adams.gui.core.BaseTreeNode
-
- adams.gui.core.dotnotationtree.DotNotationNode
-
- adams.gui.goe.actorpathtree.ActorPathNode
-
- All Implemented Interfaces:
Transferable
,Serializable
,Cloneable
,MutableTreeNode
,TreeNode
public class ActorPathNode extends DotNotationNode
Specialized tree node for actor paths.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_Classname
the classname of the actor.protected String
m_IconClassname
the classname to use for the icon (if notm_Classname
available).static String
MASK_CHARACTER
the character for masking escaped dots.-
Fields inherited from class adams.gui.core.dotnotationtree.DotNotationNode
m_Item, MULTIPLE_ROOT
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description ActorPathNode(String label)
Initializes the class node with the specified label (package or class name).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClassname()
Returns the class name of the actor.String
getIconClassname()
Returns the classname for the icon.String
getItem()
Returns the full label.boolean
hasClassname()
Returns whether a classname is set.boolean
hasIconClassname()
Returns whether a classname for the icon is set.boolean
isLabelMatch(String s)
Returns whether the label matches the specified string.void
setClassname(String value)
Sets the classname of the actor.void
setIconClassname(String value)
Sets the classname for the icon.-
Methods inherited from class adams.gui.core.dotnotationtree.DotNotationNode
getLabel, getSeparator, isItemLeaf, toTransferable
-
Methods inherited from class adams.gui.core.BaseTreeNode
getChildren, getTransferData, getTransferDataFlavors, isDataFlavorSupported, toPlainText
-
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, setUserObject, toString
-
-
-
-
Field Detail
-
MASK_CHARACTER
public static final String MASK_CHARACTER
the character for masking escaped dots.- See Also:
- Constant Field Values
-
m_Classname
protected String m_Classname
the classname of the actor.
-
m_IconClassname
protected String m_IconClassname
the classname to use for the icon (if notm_Classname
available).
-
-
Constructor Detail
-
ActorPathNode
public ActorPathNode(String label)
Initializes the class node with the specified label (package or class name).- Parameters:
label
- the label for this node
-
-
Method Detail
-
setClassname
public void setClassname(String value)
Sets the classname of the actor.- Parameters:
value
- the classname
-
getClassname
public String getClassname()
Returns the class name of the actor.- Returns:
- the actor's class name
-
hasClassname
public boolean hasClassname()
Returns whether a classname is set.- Returns:
- true if a class name is set
-
setIconClassname
public void setIconClassname(String value)
Sets the classname for the icon.- Parameters:
value
- the classname
-
getIconClassname
public String getIconClassname()
Returns the classname for the icon.- Returns:
- the classname
-
hasIconClassname
public boolean hasIconClassname()
Returns whether a classname for the icon is set.- Returns:
- true if a classname is set
-
isLabelMatch
public boolean isLabelMatch(String s)
Returns whether the label matches the specified string.- Overrides:
isLabelMatch
in classDotNotationNode
- Parameters:
s
- the string to match against the label- Returns:
- true if a match
-
getItem
public String getItem()
Returns the full label.- Overrides:
getItem
in classDotNotationNode
- Returns:
- the full label, null if not a leaf
-
-