|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrain.gui.ActionListeners.ActionListenerSaveParameters
public class ActionListenerSaveParameters
ActionListenerSaveParameters does handle saving the parameter table of a module. It offers a file chooser with a suggested, preselected name as the parameter file name. It does contain a FileFilter class for the file chooser so it would show only files ending with ".par". In case a user defined a different postfix the file filter might be forced in the dialog to show all types of files.
Constructor Summary | |
---|---|
ActionListenerSaveParameters()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Opens a JFileChooser to select a file name. |
java.lang.String |
getDialogTitle()
Returns JFileChooser title |
java.lang.String |
getSuggestFileName()
Returns a suggested file name |
javax.swing.JTable |
getTable()
Returns the table which parameters are to write to storage |
void |
setDialogTitle(java.lang.String _dialogTitle)
Sets JFileChooser title. |
void |
setSuggestFileName(java.lang.String _suggestFileName)
Sets a suggested file name |
void |
setTable(javax.swing.JTable _table)
Sets the table with parameters whose data we want to write to storage. |
static java.lang.String |
suggestName(java.lang.String moduleName)
Just suggests a name for the parameter file to save. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionListenerSaveParameters()
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
JFileChooser
to select a file name. Saves, aborts or
cancels this action according to user selection.
actionPerformed
in interface java.awt.event.ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public javax.swing.JTable getTable()
public void setTable(javax.swing.JTable _table)
_table
- the table with parameterspublic static java.lang.String suggestName(java.lang.String moduleName)
moduleName
- name of a module
public java.lang.String getDialogTitle()
JFileChooser
title
public void setDialogTitle(java.lang.String _dialogTitle)
JFileChooser
title.
_dialogTitle
- public java.lang.String getSuggestFileName()
public void setSuggestFileName(java.lang.String _suggestFileName)
_suggestFileName
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |