|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode se.entitymanager.presentation.swing.EntityTreeNode
public class EntityTreeNode
A DefaultMutableTreeNode
for entities.
Field Summary | |
---|---|
private boolean |
childrenLoaded
Flag that indicates whether the children of this node have been loaded. |
private LogicFacade |
logicFacade
The logic facade to access the entities. |
private SwingPresentationFacade |
presentationFacade
The presentation facade object, this object belongs to. |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
EntityTreeNode(SwingPresentationFacade presentationFacade,
EntityInterface entity)
Constructs a tree node for entity for a presentationFacade . |
Method Summary | |
---|---|
EntityInterface |
getEntity()
Returns the entity the node is displaying |
boolean |
isLeaf()
Returns whether this node is a leaf. |
protected void |
loadChildren()
Loads the children of this entity. |
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, 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 SwingPresentationFacade presentationFacade
private boolean childrenLoaded
private LogicFacade logicFacade
Constructor Detail |
---|
public EntityTreeNode(SwingPresentationFacade presentationFacade, EntityInterface entity)
entity
for a presentationFacade
.
presentationFacade
- the presentation facadeentity
- the entityMethod Detail |
---|
protected void loadChildren()
This is known as "lazy loading" and improves performance.
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class javax.swing.tree.DefaultMutableTreeNode
public EntityInterface getEntity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |