|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultMutableTreeNode | +--net.openai.ai.nn.gui.widgets.AITreeNode
Comfortable TreeNode with a tag and a icon. A user-component can be used also.
Field Summary |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
AITreeNode()
Contructs a empty AITreeNode |
|
AITreeNode(java.lang.String strName)
Constructs a node and sets the name |
|
AITreeNode(java.lang.String strName,
long lID)
Constructs a node, sets the name and id |
Method Summary | |
AITreeNode |
getChildFromID(long lID)
looks up a childnode with the given ID |
java.awt.Component |
getComponent()
Returns the renderer component |
javax.swing.ImageIcon |
getIcon()
Returns the icon |
long |
getID()
Returns the actual ID |
java.lang.String |
getName()
Returns the actual nodename |
void |
setComponent(java.awt.Component c)
Sets a custom component |
void |
setIcon(javax.swing.ImageIcon pIcon)
Bind a icon to this node |
void |
setIcon(java.lang.String name)
Loads and binds a icon |
void |
setID(long lID)
Changes the ID of this node |
void |
setName(java.lang.String strName)
Changes the name of this node |
java.lang.String |
toString()
Overwrites the object.toString() to return the nodename |
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 |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AITreeNode()
public AITreeNode(java.lang.String strName)
public AITreeNode(java.lang.String strName, long lID)
Method Detail |
public void setName(java.lang.String strName)
public java.lang.String getName()
public void setID(long lID)
public long getID()
public void setIcon(javax.swing.ImageIcon pIcon)
public void setIcon(java.lang.String name)
public javax.swing.ImageIcon getIcon()
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public void setComponent(java.awt.Component c)
public java.awt.Component getComponent()
public AITreeNode getChildFromID(long lID)
lID
- Children's ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |