edu.northwestern.at.utils.swing.notepad
Class Notepad.FileSaver

java.lang.Object
  extended by java.lang.Thread
      extended by edu.northwestern.at.utils.swing.notepad.Notepad.FileSaver
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Notepad

protected class Notepad.FileSaver
extends java.lang.Thread

Thread to save document to a text file.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  javax.swing.text.Document doc
          The document to save.
(package private)  java.io.File f
          The file to which to write the document text.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Notepad.FileSaver(java.io.File f, javax.swing.text.Document doc)
          Create file saver.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

doc

javax.swing.text.Document doc
The document to save.


f

java.io.File f
The file to which to write the document text.

Constructor Detail

Notepad.FileSaver

Notepad.FileSaver(java.io.File f,
                  javax.swing.text.Document doc)
Create file saver.

Parameters:
f - The file to which to write.
doc - The document whose text should be written.
Method Detail

run

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