javawrapper::HarvestEdit Class Reference

Window for harvest editing. More...

Inheritance diagram for javawrapper::HarvestEdit:

javawrapper::EpisodicEventsEdit List of all members.

Public Member Functions

 HarvestEdit (EpisodicEventsWindow oWindow) throws ModelException
 Constructor.
 HarvestEdit (EpisodicEventsWindow oWindow, HarvestData oToDisplay) throws ModelException
 Constructor that displays a harvest event to edit.
void actionPerformed (ActionEvent oEvent)
 Responds to window events.

Protected Member Functions

void MakeGUI ()
 Makes the GUI.
void AddNewHarvest () throws ModelException
 Puts the new harvest into DisturbanceWindow.

Protected Attributes

JCheckBox[] mp_jSpeciesChex
 List of checkboxes, one for each species, for which species to apply the harvest to.
JTextField m_jTimestepEdit = new JTextField(" ")
 Edit box where timestep is entered.
JTextField m_jCutRange1MinDBH = new JTextField()
 Edit box where the cut range 1 minimum DBH is entered.
JTextField m_jCutRange2MinDBH = new JTextField()
 Edit box where the cut range 2 minimum DBH is entered.
JTextField m_jCutRange3MinDBH = new JTextField()
 Edit box where the cut range 3 minimum DBH is entered.
JTextField m_jCutRange4MinDBH = new JTextField()
 Edit box where the cut range 4 minimum DBH is entered.
JTextField m_jCutRange1MaxDBH = new JTextField()
 Edit box where the cut range 1 maximum DBH is entered.
JTextField m_jCutRange2MaxDBH = new JTextField()
 Edit box where the cut range 2 maximum DBH is entered.
JTextField m_jCutRange3MaxDBH = new JTextField()
 Edit box where the cut range 3 maximum DBH is entered.
JTextField m_jCutRange4MaxDBH = new JTextField()
 Edit box where the cut range 4 maximum DBH is entered.
JTextField m_jCutRange1Amt = new JTextField()
 Edit box where the cut range 1 cut amount is entered.
JTextField m_jCutRange2Amt = new JTextField()
 Edit box where the cut range 2 cut amount is entered.
JTextField m_jCutRange3Amt = new JTextField()
 Edit box where the cut range 3 cut amount is entered.
JTextField m_jCutRange4Amt = new JTextField()
 Edit box where the cut range 4 cut amount is entered.
JRadioButton m_jPartialCutButton = new JRadioButton("Partial cut")
 Radio button for partial cut.
JRadioButton m_jGapCutButton = new JRadioButton("Gap cut")
 Radio button for gap cut.
JRadioButton m_jClearCutButton = new JRadioButton("Clear cut")
 Radio button for clear cut.
JRadioButton m_jPercentDensityButton
 Radio button for percent of density.
JRadioButton m_jAbsDensityButton
 Radio button for absolute density.
JRadioButton m_jPercentBAButton
 Radio button for percent of basal area.
JRadioButton m_jAbsBAButton
 Radio button for absolute basal area.
int m_iHarvestIndex = -1
 This is where our new harvest event goes.

Private Attributes

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

Detailed Description

Window for harvest editing.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0


Constructor & Destructor Documentation

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

Constructor.

Creates the window.

Parameters:
oWindow Object to exchange harvest data with.
Exceptions:
ModelException If the window cannot be set up correctly.

javawrapper::HarvestEdit::HarvestEdit ( EpisodicEventsWindow  oWindow,
HarvestData  oToDisplay 
) throws ModelException [inline]

Constructor that displays a harvest event to edit.

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


Member Function Documentation

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

Responds to window events.

Parameters:
oEvent Event triggering this call.

void javawrapper::HarvestEdit::AddNewHarvest (  )  throws ModelException [inline, protected]

Puts the new harvest into DisturbanceWindow.

Exceptions:
ModelException if any of the values cannot be translated into numbers, or if the new HarvestData object throws an error during its validation.

void javawrapper::HarvestEdit::MakeGUI (  )  [inline, protected]

Makes the GUI.

This draws all the window components and places them appropriately.


Member Data Documentation

int javawrapper::HarvestEdit::m_iHarvestIndex = -1 [protected]

This is where our new harvest event goes.

In the case of an edited event, this will make sure that it is inserted where it used to be.

JRadioButton javawrapper::HarvestEdit::m_jAbsBAButton [protected]

Initial value:

 new JRadioButton(
      "Amt. basal area (m2/ha)")
Radio button for absolute basal area.

JRadioButton javawrapper::HarvestEdit::m_jAbsDensityButton [protected]

Initial value:

 new JRadioButton(
      "Amt. density (#/ha)")
Radio button for absolute density.

JRadioButton javawrapper::HarvestEdit::m_jPercentBAButton [protected]

Initial value:

 new JRadioButton(
      "% of basal area")
Radio button for percent of basal area.

JRadioButton javawrapper::HarvestEdit::m_jPercentDensityButton [protected]

Initial value:

 new JRadioButton(
      "% of density")
Radio button for percent of density.


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