SORTIE Java Interface
1
|
Window for working with batch files. More...
Public Member Functions | |
BatchSetup (JFrame jParent, GUIManager oManager) | |
Constructor. More... | |
BatchSetup (JFrame jParent, GUIManager oManager, String sBatchFile) throws ModelException | |
Constructor. More... | |
void | actionPerformed (ActionEvent oEvent) |
Controls actions for this window. More... | |
void | addParFile (String sParFileName, int iNumTimesToRun) |
Adds a new parameter file to the list for this batch. More... | |
Private Member Functions | |
void | addFile () |
Adds a parameter file and number of times to the batch list. More... | |
void | writeFile () throws ModelException |
Writes the batch file. More... | |
Private Attributes | |
GUIManager | m_oManager |
GUI Manager. More... | |
DefaultListModel< BatchParFile > | m_jParFilesListModel = new DefaultListModel<BatchParFile>() |
List model of parameter files currently added to file. More... | |
JList< BatchParFile > | m_jParFilesList = new JList<BatchParFile>(m_jParFilesListModel) |
List of parameter files currently added to file. More... | |
JTextField | m_jParFileEdit = new JTextField() |
Text field holding a proposed parameter file path and name. More... | |
JTextField | m_jBatchFileEdit = new JTextField() |
Text field holding the batch file path and name. More... | |
JTextField | m_jNumTimesToRun = new JTextField() |
Holds number of times to run a parameter file. More... | |
String | m_sHelpID = "windows.batch_setup_window" |
Help topic ID. More... | |
Window for working with batch files.
Copyright: Copyright (c) Charles D. Canham 2005
Company: Cary Institute of Ecosystem Studies
sortie.gui.BatchSetup.BatchSetup | ( | JFrame | jParent, |
GUIManager | oManager | ||
) |
Constructor.
Creates the window and displays it.
jParent | JFrame Parent frame for this dialog. |
oManager | GUIManager object. |
sortie.gui.BatchSetup.BatchSetup | ( | JFrame | jParent, |
GUIManager | oManager, | ||
String | sBatchFile | ||
) | throws ModelException |
Constructor.
This reads an existing batch file in so it can be edited.
jParent | JFrame Parent frame for this dialog. |
oManager | GUIManager object. |
sBatchFile | String Batch filename. |
ModelException | Wrapping parse exceptions. |
void sortie.gui.BatchSetup.actionPerformed | ( | ActionEvent | oEvent | ) |
Controls actions for this window.
oEvent | ActionEvent. |
|
private |
Adds a parameter file and number of times to the batch list.
This alerts the user if anything's missing or the data cannot be understood.
void sortie.gui.BatchSetup.addParFile | ( | String | sParFileName, |
int | iNumTimesToRun | ||
) |
Adds a new parameter file to the list for this batch.
sParFileName | String Filename of new parameter file. |
iNumTimesToRun | int Number of times to run the file. |
|
private |
Writes the batch file.
ModelException | wrapping an IOException. |
|
private |
Text field holding the batch file path and name.
|
private |
Holds number of times to run a parameter file.
|
private |
Text field holding a proposed parameter file path and name.
|
private |
List of parameter files currently added to file.
|
private |
List model of parameter files currently added to file.
|
private |
GUI Manager.
|
private |
Help topic ID.