|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.lyra.Widgets.LyraMutableTreeNode
public class LyraMutableTreeNode
A slight variant of the DefaultMutableTreeNode class that also aims to add in two identifiers into the mix. These identifiers permit the application to quickly determine type and name in order to process.
Field Summary | |
---|---|
private java.lang.String |
myGroup
|
private java.lang.String |
myName
|
private static long |
serialVersionUID
|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
LyraMutableTreeNode()
Creates a tree node that has no parent and no children, but which allows children. |
|
LyraMutableTreeNode(java.lang.Object userObject,
java.lang.String nodeGroup)
Creates a tree node with no parent, no children, but which allows children, and initialises it with the specified user object. |
|
LyraMutableTreeNode(java.lang.Object userObject,
java.lang.String nodeGroup,
java.lang.String nodeName)
Creates a tree node with no parent, no children, but which allows children, and initialises it with the specified user object. |
Method Summary | |
---|---|
java.lang.String |
getGroup()
Get the group identifier. |
java.lang.String |
getName()
Get the name identifier. |
void |
setGroup(java.lang.String nodeGroup)
Set the group identifier. |
void |
setName(java.lang.String nodeName)
Set the name identifier. |
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.lang.String myGroup
private java.lang.String myName
Constructor Detail |
---|
public LyraMutableTreeNode()
public LyraMutableTreeNode(java.lang.Object userObject, java.lang.String nodeGroup)
userObject
- An Object provided by the user that constitutes the node's datanodeGroup
- A string containing which group this item will be a part of.public LyraMutableTreeNode(java.lang.Object userObject, java.lang.String nodeGroup, java.lang.String nodeName)
userObject
- An Object provided by the user that constitutes the node's datanodeGroup
- A string containing which group this item will be a part of.nodeName
- A string indicating the name identifier of this tree.Method Detail |
---|
public void setGroup(java.lang.String nodeGroup)
nodeGroup
- String containing group identifier.public java.lang.String getGroup()
public void setName(java.lang.String nodeName)
nodeName
- String containing name identifier.public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |