Public Member Functions | |
PlantEdit (EpisodicEventsWindow oWindow) throws ModelException | |
Constructor. | |
PlantEdit (EpisodicEventsWindow oWindow, PlantingData oToDisplay) throws ModelException | |
Constructor that displays a planting event to edit. | |
void | actionPerformed (ActionEvent oEvent) |
Responds to window events. | |
Protected Member Functions | |
void | MakeGUI () |
Makes the GUI. | |
void | AddNewPlanting () throws ModelException |
Puts the new planting into DisturbanceWindow. | |
Protected Attributes | |
JTextField[] | mp_jSpeciesAmt |
List of text fields, one for each species, for which species to apply the planting to. | |
JTextField | m_jTimestepEdit = new JTextField(" ") |
Edit box where timestep is entered. | |
JRadioButton | m_jGriddedPlantingButton = new JRadioButton("Gridded") |
Radio button for gridded planting. | |
JRadioButton | m_jRandomPlantingButton = new JRadioButton("Random") |
Radio button for random planting. | |
JLabel | m_jPlantAmountValueLabel = new JLabel() |
Label that displays the plant amount value for the currently displayed planting. | |
JTextField | m_jPlantAmtEdit = new JTextField(" ") |
Edit box where amount to plant or plant spacing is entered. | |
int | m_iPlantingIndex = -1 |
This is where our new planting event goes. | |
Static Package Attributes | |
static final long | serialVersionUID = 1 |
Private Attributes | |
String | m_sHelpID = "windows.edit_planting_window" |
Help ID string. |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
javawrapper.PlantEdit.PlantEdit | ( | EpisodicEventsWindow | oWindow | ) | throws ModelException |
Constructor.
Creates the window.
oWindow | Object to exchange planting data with. |
ModelException | If the window cannot be set up correctly. |
javawrapper.PlantEdit.PlantEdit | ( | EpisodicEventsWindow | oWindow, | |
PlantingData | oToDisplay | |||
) | throws ModelException |
Constructor that displays a planting event to edit.
oWindow | Object to exchange planting data with. | |
oToDisplay | Planting event to display for editing. |
ModelException | If the window cannot be set up correctly. |
void javawrapper.PlantEdit.MakeGUI | ( | ) | [protected] |
Makes the GUI.
This draws all the window components and places them appropriately.
void javawrapper.PlantEdit.AddNewPlanting | ( | ) | throws ModelException [protected] |
Puts the new planting into DisturbanceWindow.
ModelException | if any of the values cannot be translated into numbers, or if the new PlantingData object throws an error during its validation. |
void javawrapper.PlantEdit.actionPerformed | ( | ActionEvent | oEvent | ) |
Responds to window events.
oEvent | Event triggering this call. |
final long javawrapper.PlantEdit.serialVersionUID = 1 [static, package] |
Reimplemented from javawrapper.EpisodicEventsEdit.
JTextField [] javawrapper.PlantEdit.mp_jSpeciesAmt [protected] |
List of text fields, one for each species, for which species to apply the planting to.
JTextField javawrapper.PlantEdit.m_jTimestepEdit = new JTextField(" ") [protected] |
Edit box where timestep is entered.
JRadioButton javawrapper.PlantEdit.m_jGriddedPlantingButton = new JRadioButton("Gridded") [protected] |
Radio button for gridded planting.
JRadioButton javawrapper.PlantEdit.m_jRandomPlantingButton = new JRadioButton("Random") [protected] |
Radio button for random planting.
JLabel javawrapper.PlantEdit.m_jPlantAmountValueLabel = new JLabel() [protected] |
Label that displays the plant amount value for the currently displayed planting.
JTextField javawrapper.PlantEdit.m_jPlantAmtEdit = new JTextField(" ") [protected] |
Edit box where amount to plant or plant spacing is entered.
int javawrapper.PlantEdit.m_iPlantingIndex = -1 [protected] |
This is where our new planting event goes.
In the case of an edited event, this will make sure that it is inserted where it used to be.
String javawrapper.PlantEdit.m_sHelpID = "windows.edit_planting_window" [private] |
Help ID string.