|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--UserInterface.FileLoader
this inner class starts a thread for loading a document
Field Summary | |
(package private) Document |
d
|
(package private) UserInterface.Progress |
progres
holds a referrence to the object that shows the progress of the loading |
(package private) java.lang.Thread |
t
|
Constructor Summary | |
(package private) |
UserInterface.FileLoader(Document d,
javax.swing.JFrame mainframe)
|
Method Summary | |
private void |
Load(Document d)
loads the document |
void |
ReadFile(Document d)
reads the file from the disk the method is synchronized on the vector docs for avoiding the possibility of reading the same file in the same time |
void |
run()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
UserInterface.Progress progres
java.lang.Thread t
Document d
Constructor Detail |
UserInterface.FileLoader(Document d, javax.swing.JFrame mainframe)
d
- the document to be loadedmainframe
- the parent of the progress objectMethod Detail |
public void run()
private void Load(Document d)
d
- the document to be loadedpublic void ReadFile(Document d) throws java.io.FileNotFoundException
Document.isTag(String)
,
UserInterface.DisplayCurrentTurn()
,
Judgements
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |