|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
eu.beesoft.gaia.swing.ExplorableTreeNode
public abstract class ExplorableTreeNode
Abstract tree node proposed for data lazy loading. If this node has set the
'explorable' property and tree where this node is displayed has installed
ExplorationTreeListener
as tree expansion listener, then method
exploreImpl()
is invoked when this node is the first time displayed.
Subclass and override this method to process lazy loading.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, EMPTY_ENUMERATION, children, parent, userObject |
Constructor Summary | |
---|---|
ExplorableTreeNode()
Default empty constructor. |
Method Summary | |
---|---|
void |
explore()
If this node is not explored yet, invokes exploreImpl() method. |
protected abstract void |
exploreImpl()
This method is invoked if the node is explorable and was not explored yet. |
boolean |
getAllowsChildren()
Overriden to return value of isExplorable() method. |
boolean |
isExplorable()
Returns state of the 'explorable' property. |
boolean |
isExplored()
Returns true if node was explored or is not explorable or has some children already. |
boolean |
isLeaf()
Returns true if this node is a leaf. |
void |
setExplorable(boolean value)
Sets the 'explorable' property. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, clone, depthFirstEnumeration, getDepth, getFirstChild, getFirstLeaf, getChildAfter, getChildAt, getChildBefore, getChildCount, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, children, insert, isNodeAncestor, isNodeDescendant, isNodeChild, 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 ExplorableTreeNode()
Method Detail |
---|
public boolean getAllowsChildren()
isExplorable()
method.
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class javax.swing.tree.DefaultMutableTreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class javax.swing.tree.DefaultMutableTreeNode
public boolean isExplorable()
public void setExplorable(boolean value)
value
- - a value to setpublic boolean isExplored()
public final void explore()
exploreImpl()
method.
protected abstract void exploreImpl()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |