|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.ui.explorer.ExplorerTreeModel.ExplorerUpdater
Help class to semi-lazily update nodes in the tree. This class is thread safe.
Field Summary | |
private boolean |
hot
Is this object currently waiting to be run. |
static int |
MAX_UPDATES_PER_RUN
The maximum number of nodes to update in one chunk |
private LinkedList |
pendingUpdates
The set of nodes pending being updated. |
Constructor Summary | |
(package private) |
ExplorerTreeModel.ExplorerUpdater()
|
Method Summary | |
void |
run()
Call updateChildren for some pending nodes. |
private void |
schedule()
Schedule this object to run on AWT-EventQueue-0 at some later time. |
void |
schedule(ExplorerTreeNode node)
Schedule updateChildren to be called on node at some later time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private LinkedList pendingUpdates
private boolean hot
public static final int MAX_UPDATES_PER_RUN
Constructor Detail |
ExplorerTreeModel.ExplorerUpdater()
Method Detail |
private void schedule()
public void schedule(ExplorerTreeNode node)
node
- The ExplorerTreeNode to be updated.
NullPointerException
- If node is null.public void run()
This method should not be called explicitly, instead schedule should be called and this method will be called automatically.
run
in interface Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |