Class UserInterface.FileSaver

java.lang.Object
  |
  +--UserInterface.FileSaver
Enclosing class:
UserInterface

class UserInterface.FileSaver
extends java.lang.Object
implements java.lang.Runnable

this inner class starts a thread and saves a document to the disk


Field Summary
(package private)  Document d
           
(package private)  java.lang.Thread t
           
 
Constructor Summary
(package private) UserInterface.FileSaver(java.lang.String s, Document d)
           
 
Method Summary
 void run()
          after saving the document disables the Save command from the menu
 void Save(Document d)
          Saves a document to the disk
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

t

java.lang.Thread t

d

Document d
Constructor Detail

UserInterface.FileSaver

UserInterface.FileSaver(java.lang.String s,
                        Document d)
Parameters:
s - can be join for preventing performing other operation until the save is done (e.g. exiting the appplication) or otherwise is the null string
d - the Document to be saved
Method Detail

run

public void run()
after saving the document disables the Save command from the menu
Specified by:
run in interface java.lang.Runnable
See Also:
Save(Document), MyMenu.setSavable(boolean)

Save

public void Save(Document d)
Saves a document to the disk
See Also:
Document, Judgements