edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode Class Reference
Inherits javax::swing::tree::DefaultMutableTreeNode.
Inherited by edu.princeton.wordnet.pojos.tree.LinksTreeNode.
List of all members.
Detailed Description
Lazy loading default mutable node
- Author:
- Thierry LEFORT 3 mars 08
-
Bernard BOU <bbou@ac-toulouse.fr>
Constructor & Destructor Documentation
edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.LazyDefaultMutableTreeNode |
( |
|
) |
|
Member Function Documentation
boolean edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.areChildrenLoaded |
( |
|
) |
[protected] |
Whether children are loaded
- Returns:
true
if there are some children
MutableTreeNode edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.createLoadingNode |
( |
|
) |
[protected] |
Create loading node
- Returns:
- a new loading node
SwingWorker<MutableTreeNode[], Void> edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.createSwingWorker |
( |
final JTree |
thisTree |
) |
[protected] |
Create worker that will load the nodes
- Parameters:
-
- Returns:
- the newly created SwingWorker
boolean edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.isLeaf |
( |
|
) |
|
Whether the node is leaf
- Returns:
- false, this node can't be a leaf
void edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.load |
( |
final JTree |
thisTree |
) |
|
Perform the loading
- Parameters:
-
| thisTree | tree (needed to perform changes) |
abstract MutableTreeNode [] edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.loadChildren |
( |
JTree |
thisTree |
) |
[pure virtual] |
This method will be executed in a background thread.
- Parameters:
-
- Returns:
- the Created nodes
void edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.registerSwingWorkerForCancel |
( |
final JTree |
thisTree, |
|
|
final SwingWorker< MutableTreeNode[],?> |
thisWorker | |
|
) |
| | [protected] |
If the node is cancelable, an escape Action is registered in the tree's InputMap and ActionMap that will cancel the execution
- Parameters:
-
| thisTree | tree |
| thisWorker | the worker to cancel |
void edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.reset |
( |
final JTree |
thisTree |
) |
[protected] |
void edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.setChildren |
( |
final JTree |
thisTree, |
|
|
final MutableTreeNode... |
theseChildren | |
|
) |
| | [protected] |
Define node children
- Parameters:
-
| thisTree | tree |
| theseChildren | new children nodes |
void edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.setSiblings |
( |
final JTree |
thisTree, |
|
|
final MutableTreeNode... |
theseSiblings | |
|
) |
| | [protected] |
Define siblings and suicide
- Parameters:
-
| thisTree | tree |
| theseSiblings | new sibling nodes |
void edu.princeton.wordnet.browser.tree.LazyDefaultMutableTreeNode.unRegisterSwingWorkerForCancel |
( |
final JTree |
thisTree, |
|
|
final SwingWorker< MutableTreeNode[],?> |
thisWorker | |
|
) |
| | [protected] |
Remove the swingWorker from the cancelable task of the tree
- Parameters:
-
| thisTree | tree |
| thisWorker | worker thread |
Member Data Documentation
Whether parent node kills itself when expanded to children
The documentation for this class was generated from the following file:
- /opt/devel/wnscope/WordNetScope/src/edu/princeton/wordnet/browser/tree/LazyDefaultMutableTreeNode.java