Package is.codion.swing.framework.model
Class SwingEntityTreeModel.EntityTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
is.codion.swing.framework.model.SwingEntityTreeModel.EntityTreeNode
- All Implemented Interfaces:
Serializable
,Cloneable
,MutableTreeNode
,TreeNode
- Enclosing class:
- SwingEntityTreeModel
A tree node based on an
Entity
instance.- See Also:
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
Method Summary
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
-
Method Details
-
refresh
Refreshes this node, that is, reloads all child nodes.- Returns:
- this tree node
-
entity
Returns the entity, note that this entity is null for the root node.- Returns:
- the entity, null in case of the root node
-
toString
- Overrides:
toString
in classDefaultMutableTreeNode
-