Package mgui.interfaces.attributes.tree
Class AttributeTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
mgui.interfaces.trees.InterfaceTreeNode
mgui.interfaces.attributes.tree.AttributeTreeNode
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,javax.swing.tree.MutableTreeNode
,javax.swing.tree.TreeNode
,InterfaceObjectListener
,PopupMenuObject
public class AttributeTreeNode extends InterfaceTreeNode
Provides a tree node to display and update an
Attribute
. Should be used in conjunction with
AttributeTreeCellRenderer
and AttributeTreeCellEditor
.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class mgui.interfaces.trees.InterfaceTreeNode
isDestroyed, isMouseOverSelect, isSelectable, listeners, parent_tree, popup_handler, popup_menu
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
Constructor Summary
Constructors Constructor Description AttributeTreeNode()
AttributeTreeNode(Attribute<?> thisAttr)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
Attribute
getUserObject()
void
setUserObject(Attribute<?> thisAttr)
Methods inherited from class mgui.interfaces.trees.InterfaceTreeNode
addChild, addListener, containsObject, destroy, destroy, destroyAllChildren, fireTreeListeners, getChildren, getParentTree, getPopupMenu, getPopupMenu, handleMouseEvent, handlePopupEvent, init, insertChild, isDestroyed, isSelectable, moveChild, objectChanged, objectChanged, removeChild, removeListener, setParentTree, setPopupMenu, setSelectable, setUserObject, showPopupMenu
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, 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, 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
-
Constructor Details
-
AttributeTreeNode
public AttributeTreeNode() -
AttributeTreeNode
-
-
Method Details
-
setUserObject
-
getUserObject
- Overrides:
getUserObject
in classjavax.swing.tree.DefaultMutableTreeNode
-
clone
public java.lang.Object clone()- Overrides:
clone
in classInterfaceTreeNode
-