javawrapper::PlantEdit Class Reference

Window for planting editing. More...

Inheritance diagram for javawrapper::PlantEdit:

javawrapper::EpisodicEventsEdit List of all members.

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.

Private Attributes

String m_sHelpID = "windows.edit_planting_window"
 Help ID string.

Detailed Description

Window for planting editing.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0


Constructor & Destructor Documentation

javawrapper::PlantEdit::PlantEdit ( EpisodicEventsWindow  oWindow  )  throws ModelException [inline]

Constructor.

Creates the window.

Parameters:
oWindow Object to exchange planting data with.
Exceptions:
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.

Parameters:
oWindow Object to exchange planting data with.
oToDisplay Planting event to display for editing.
Exceptions:
ModelException If the window cannot be set up correctly.


Member Function Documentation

void javawrapper::PlantEdit::actionPerformed ( ActionEvent  oEvent  )  [inline]

Responds to window events.

Parameters:
oEvent Event triggering this call.

void javawrapper::PlantEdit::AddNewPlanting (  )  throws ModelException [inline, protected]

Puts the new planting into DisturbanceWindow.

Exceptions:
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::MakeGUI (  )  [inline, protected]

Makes the GUI.

This draws all the window components and places them appropriately.


Member Data Documentation

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.


The documentation for this class was generated from the following file:
Generated on Wed Nov 29 08:45:05 2006 for SORTIE Java Interface by  doxygen 1.4.7