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

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

protected class Notepad.FileLoader
extends java.lang.Thread

Thread to load a file into the text storage model


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 into which to load the file's text.
(package private)  java.io.File f
          The file from which to load text.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Notepad.FileLoader(java.io.File f, javax.swing.text.Document doc)
          Create file loader.
 
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 into which to load the file's text.


f

java.io.File f
The file from which to load text.

Constructor Detail

Notepad.FileLoader

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

Parameters:
f - The file from which to read.
doc - The document into which to read the file's text.
Method Detail

run

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