edu.virginia.cs.mng.hypercast.demo
Class FileSystemModel2.FileNodeLoader

java.lang.Object
  |
  +--edu.virginia.cs.mng.hypercast.demo.FileSystemModel2.FileNodeLoader

class FileSystemModel2.FileNodeLoader
extends java.lang.Object
implements java.lang.Runnable

FileNodeLoader can be used to reload all the children of a particular node. It first resets the children of the FileNode it is created with, and in its run method will reload all of that nodes children. FileNodeLoader may not be running in the event dispatching thread. As swing is not thread safe it is important that we don't generate events in this thread. SwingUtilities.invokeLater is used so that events are generated in the event dispatching thread.


Field Summary
(package private)  FileSystemModel2.FileNode node
          Node creating children for.
(package private)  MergeSort sizeMS
          Sorter.
 
Constructor Summary
(package private) FileSystemModel2.FileNodeLoader(FileSystemModel2.FileNode node)
           
 
Method Summary
protected  void loadChildren(FileSystemModel2.FileNode node)
           
 void run()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

node

FileSystemModel2.FileNode node
Node creating children for.

sizeMS

MergeSort sizeMS
Sorter.
Constructor Detail

FileSystemModel2.FileNodeLoader

FileSystemModel2.FileNodeLoader(FileSystemModel2.FileNode node)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

loadChildren

protected void loadChildren(FileSystemModel2.FileNode node)