|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode de.matthias_burbach.mosaique.swing.BaseMutableTreeNode
Is a base class for tree nodes which need to initialize child nodes explicitly and lazily.
Field Summary |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
BaseMutableTreeNode()
|
Method Summary | |
protected void |
assertChildrenAreInitialized()
Initializes this object if it hasn't been yet. |
protected boolean |
childrenAreInitialized()
|
int |
getChildCount()
|
java.lang.Object[] |
getChildren()
Introduced to support usage of this class in the Eclipse context. |
protected abstract void |
initChildren()
Initializes the children nodes of this node. |
boolean |
isErroneous()
|
boolean |
isLeaf()
|
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, 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 |
Constructor Detail |
public BaseMutableTreeNode()
Method Detail |
protected abstract void initChildren()
public int getChildCount()
public boolean isLeaf()
public java.lang.Object[] getChildren()
public boolean isErroneous()
false
. Can be overridden.protected boolean childrenAreInitialized()
protected void assertChildrenAreInitialized()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |