|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Document
This class builts the model of the application
Tags
,
UserOptions
Field Summary | |
(package private) boolean |
autosave
holds the autosave property |
javax.swing.event.EventListenerList |
changeListeners
used for the adaptors connected with this model |
int |
current_turn_number
number of the current turn being used |
Judgements |
CurrentTurn
current turn of the dialogue |
(package private) long |
elem_file
contains the number of bytes in the file |
(package private) java.io.File |
file
the file associated with the document |
Judgements |
FirstTurn
first turn of the dialogue |
(package private) int |
frequency_to_save
gives the step according to which the turns are saved |
(package private) boolean |
issaved
indicates if the document is saved or not |
Judgements |
j
here the data of the turn are contained |
(package private) int |
output
the number corresponding to the module which performed the translations |
(package private) int |
read_quant
number of bytes that have been read |
(package private) boolean |
selsave
indicates if every turn is saved or only some selected ones |
int |
turn_number
number of turns in the dialogue |
Fields inherited from interface Tags |
tag |
Fields inherited from interface UserOptions |
DEFAULTSFILENAME,
FREQUENCY_SAVE_TURNS,
MAXIMUM_WORDS_STRING,
NO_TURNS,
REPLACEMASKSIZE,
TRANSLATION_SEGMENTS |
Constructor Summary | |
Document(java.io.File file)
|
Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener x)
this method adds a change listener to the model |
void |
findTurn(int turn)
finds a turn according to the parameter |
protected void |
fireChange()
when a change occurs stateChanged is alled on the registered classes |
int |
getCurrentTurnNumber()
|
Judgements |
getData()
retrieves the data of the current turn |
Document |
getDoc()
|
Judgements |
getFirst()
retrieves the data of the first turn of the dialogue |
Judgements |
getFirstTurn()
|
int |
getFrequencytoSave()
|
int |
getTurnNumber()
|
boolean |
isTag(java.lang.String value)
This method is the implementation of the tags interface add verifies wheter a string is in the tag[] array range or not. |
void |
removeChangeListener(javax.swing.event.ChangeListener x)
this method removes a change listener to the model |
void |
ResetValues()
sets the values when no document is used |
void |
setFrequencytoSave(int n)
set the step woith which the turns are saved |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.io.File file
int output
public Judgements FirstTurn
public Judgements CurrentTurn
public javax.swing.event.EventListenerList changeListeners
public int turn_number
public int current_turn_number
boolean autosave
boolean issaved
boolean selsave
int frequency_to_save
public Judgements j
long elem_file
int read_quant
Constructor Detail |
public Document(java.io.File file)
file
- the file associated with the current documentMethod Detail |
public Document getDoc()
public int getTurnNumber()
public int getCurrentTurnNumber()
public void setFrequencytoSave(int n)
n
- the steppublic int getFrequencytoSave()
public Judgements getFirstTurn()
Judgements
public void findTurn(int turn)
turn
- the number of the turn to be foundJudgements
,
fireChange()
public Judgements getData()
Judgements
public Judgements getFirst()
Judgements
public void ResetValues()
Judgements
public void addChangeListener(javax.swing.event.ChangeListener x)
public void removeChangeListener(javax.swing.event.ChangeListener x)
protected void fireChange()
public boolean isTag(java.lang.String value)
value
- indicates the string to look for in the tag[] array
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |