|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ReplaceCharacters
This class builts the component which is popped-up when selecting the Replace characters option in the Settings menu. It is possible to use the default set for replacemnts or to built a new one.
UserOptions
Field Summary | |
(package private) javax.swing.JButton |
addList
|
(package private) javax.swing.JLabel |
change_string
|
(package private) javax.swing.JButton |
default_button
|
(package private) javax.swing.JDialog |
dialog
|
(package private) javax.swing.JButton |
dismiss
|
(package private) javax.swing.JTextField |
from_string
|
(package private) javax.swing.JTextArea |
list
|
(package private) javax.swing.JFrame |
mainframe
|
(package private) javax.swing.table.DefaultTableModel |
myModel
the model for the table which shows the strings to be replaced |
(package private) javax.swing.JButton |
removeList
|
(package private) javax.swing.JTable |
table
the table |
(package private) javax.swing.JTextField |
to_string
|
(package private) UserInterface |
ui
referrecnce to the User interface |
(package private) CharactersToBeReplaced |
userMask
the user's set of strings to be replaced |
(package private) javax.swing.JButton |
write_default
|
Fields inherited from interface UserOptions |
DEFAULTSFILENAME,
FREQUENCY_SAVE_TURNS,
MAXIMUM_WORDS_STRING,
NO_TURNS,
REPLACEMASKSIZE,
TRANSLATION_SEGMENTS |
Constructor Summary | |
(package private) |
ReplaceCharacters(javax.swing.JFrame mainFrame,
UserInterface ui)
builts all the widgets and add them to the window builts also the objects containing the default mask and the users mask |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
describes actions on the widgets |
protected void |
fireChange()
when a change occurs stateChanged is alled on the registered classes |
java.lang.String[][] |
getData()
|
private int |
getSelection(javax.swing.JTable table)
|
void |
HideDialog()
dismiss the window |
void |
ShowDialog()
pops-up the window |
private void |
UpdateTable(java.lang.String[][] s)
updates the view of the table |
Methods inherited from class java.lang.Object |
|
Field Detail |
CharactersToBeReplaced userMask
javax.swing.JTextField from_string
javax.swing.JTextField to_string
javax.swing.JTextArea list
javax.swing.JButton addList
javax.swing.JButton removeList
javax.swing.JButton default_button
javax.swing.JButton dismiss
javax.swing.JButton write_default
javax.swing.JLabel change_string
javax.swing.JDialog dialog
javax.swing.JFrame mainframe
UserInterface ui
javax.swing.table.DefaultTableModel myModel
javax.swing.JTable table
Constructor Detail |
ReplaceCharacters(javax.swing.JFrame mainFrame, UserInterface ui)
mainframe
- the parent windowui
- referrence to the user interfaceMethod Detail |
public java.lang.String[][] getData()
public void ShowDialog()
public void HideDialog()
public void actionPerformed(java.awt.event.ActionEvent e)
CharactersToBeReplaced.getData()
,
CharactersToBeReplaced.setData(int)
,
getSelection(JTable)
private void UpdateTable(java.lang.String[][] s)
s
- the mask with which the table is updatedprivate int getSelection(javax.swing.JTable table)
table
- the table where the selection is doneprotected void fireChange()
UserInterface.changed()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |