public class NodeExpander extends Object
Constructor and Description |
---|
NodeExpander(DataNodeTreeModel treeModel,
TreeModelNode modelNode)
Constructs a new expander.
|
Modifier and Type | Method and Description |
---|---|
void |
expandNode()
Performs the actual node expansion.
|
boolean |
isComplete()
Indicates whether node expansion completed successfully.
|
boolean |
isStopped()
Indicates whether node expansion has stopped happening.
|
void |
stop()
Interrupts the work of this expander.
|
public NodeExpander(DataNodeTreeModel treeModel, TreeModelNode modelNode)
modelNode
- the node to be expandedtreeModel
- the model into which children are to be addedpublic void expandNode()
If this expander ceases to be active (is not owned by its model node) then expansion may be stopped.
This may be a slow operation, so should not be done in the event dispatch thread.
public void stop()
public boolean isStopped()
public boolean isComplete()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.