brain.gui.ActionListeners
Class ActionListenerLoadParameters

java.lang.Object
  extended by brain.gui.ActionListeners.ActionListenerLoadParameters
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class ActionListenerLoadParameters
extends java.lang.Object
implements java.awt.event.ActionListener

Handels action events for loading parameters of a module


Constructor Summary
ActionListenerLoadParameters()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Shows a file chooser
 java.lang.String getDialogTitle()
          Returns the title of the file chooser dialog
static java.io.File getLastDirectory()
          Returns the last directory which the user chosen.
 java.lang.String getSuggestFileName()
          Returns the file name which appears in the JTextField of the FileChooser
 ObjectTable getTable()
          Returns the table which parameters are to read from storage
 void loadProperties(java.io.File selectedFile)
          Loads a property file with parameters for a module.
 void setDialogTitle(java.lang.String _dialogTitle)
          Sets the title of the file chooser dialog
 void setSuggestFileName(java.lang.String _suggestFileName)
          Sets the file name which appears in the JTextField of the FileChooser
 void setTable(ObjectTable table1)
          Sets the table with parameters whose data we want to read from storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionListenerLoadParameters

public ActionListenerLoadParameters()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Shows a file chooser

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - event

loadProperties

public void loadProperties(java.io.File selectedFile)
Loads a property file with parameters for a module.

Parameters:
selectedFile -

getTable

public ObjectTable getTable()
Returns the table which parameters are to read from storage

Returns:
JTable which parameters are to load

setTable

public void setTable(ObjectTable table1)
Sets the table with parameters whose data we want to read from storage.

Parameters:
table1 - the table with parameters

getLastDirectory

public static java.io.File getLastDirectory()
Returns the last directory which the user chosen.

Returns:
the last directory the user has chosen

getDialogTitle

public java.lang.String getDialogTitle()
Returns the title of the file chooser dialog

Returns:
the title of the file chooser dialog

setDialogTitle

public void setDialogTitle(java.lang.String _dialogTitle)
Sets the title of the file chooser dialog

Parameters:
_dialogTitle - of the file chooser dialog

getSuggestFileName

public java.lang.String getSuggestFileName()
Returns the file name which appears in the JTextField of the FileChooser

Returns:
file name

setSuggestFileName

public void setSuggestFileName(java.lang.String _suggestFileName)
Sets the file name which appears in the JTextField of the FileChooser

Parameters:
_suggestFileName -