Inheritance diagram for javawrapper::PlantEdit:
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. |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
javawrapper::PlantEdit::PlantEdit | ( | EpisodicEventsWindow | oWindow | ) | throws ModelException [inline] |
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 [inline] |
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 | ( | ) | [inline, protected] |
Makes the GUI.
This draws all the window components and places them appropriately.
void javawrapper::PlantEdit::AddNewPlanting | ( | ) | throws ModelException [inline, 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 | ) | [inline] |
Responds to window events.
oEvent | Event triggering this call. |
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.