javawrapper.ScheduledStormSetup Class Reference

This is a window allowing scheduling of storms for the storm behavior. More...

Inherits javax::swing::JDialog.

List of all members.

Public Member Functions

 ScheduledStormSetup (JFrame oParent, GUIManager oManager) throws ModelException
 Constructor.
void actionPerformed (java.awt.event.ActionEvent e)
 Controls actions for this window.

Protected Member Functions

void LoadData () throws ModelException
 Extracts data on currently scheduled storms for display purposes.
void RemoveStorms () throws ModelException
 Removes scheduled storms from the list to add.
void AddStorm () throws ModelException
 Adds a new scheduled storm.
void OK ()
 What happens when the OK button is clicked.

Protected Attributes

MainWindow m_oWindow
 Main window.
GUIManager m_oManager
 GUIManager object.
JTextField m_jMinStormSeverity = new JTextField(5)
 Field for capturing the minimum storm severity for a scheduled storm.
JTextField m_jMaxStormSeverity = new JTextField(5)
 Field for capturing the maximum storm severity for a scheduled storm.
JTextField m_jStormYear = new JTextField(5)
 Field for capturing the year the storm should occur.
JList m_jStormsList
 The list displaying the currently assigned storms.
DefaultListModel m_jStormsListModel
 The list model for m_jStormsList.

Static Package Attributes

static final long serialVersionUID = 1

Private Member Functions

void CreateGUI ()
 Creates the window.

Private Attributes

String m_sHelpID = "windows.edit_scheduled_storms_window"
 The ID of the help file for this window.


Detailed Description

This is a window allowing scheduling of storms for the storm behavior.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0
Edit history:
-------------------
December 11, 2007: Created (LEM)

Constructor & Destructor Documentation

javawrapper.ScheduledStormSetup.ScheduledStormSetup ( JFrame  oParent,
GUIManager  oManager 
) throws ModelException

Constructor.

Parameters:
oParent JFrame Parent frame
oManager GUIManager GUIManager object
Exceptions:
ModelException Passing through from called functions.


Member Function Documentation

void javawrapper.ScheduledStormSetup.LoadData (  )  throws ModelException [protected]

Extracts data on currently scheduled storms for display purposes.

Exceptions:
ModelException Passing through from other called functions.

void javawrapper.ScheduledStormSetup.actionPerformed ( java.awt.event.ActionEvent  e  ) 

Controls actions for this window.

Parameters:
e ActionEvent.

void javawrapper.ScheduledStormSetup.CreateGUI (  )  [private]

Creates the window.

void javawrapper.ScheduledStormSetup.RemoveStorms (  )  throws ModelException [protected]

Removes scheduled storms from the list to add.

Exceptions:
ModelException if a column is not selected, or if the user tries to remove a default column from the list.

void javawrapper.ScheduledStormSetup.AddStorm (  )  throws ModelException [protected]

Adds a new scheduled storm.

Exceptions:
ModelException if:
  • The year, minimum severity, or maximum severity fields are blank
  • The minimum severity is greater than the maximum severity
  • Either severity value is not between 0 and 1
  • The year is greater than our number of years total

void javawrapper.ScheduledStormSetup.OK (  )  [protected]

What happens when the OK button is clicked.

The data is passed to the DisturbanceBehaviors object as needed.


Member Data Documentation

final long javawrapper.ScheduledStormSetup.serialVersionUID = 1 [static, package]

Main window.

GUIManager object.

JTextField javawrapper.ScheduledStormSetup.m_jMinStormSeverity = new JTextField(5) [protected]

Field for capturing the minimum storm severity for a scheduled storm.

JTextField javawrapper.ScheduledStormSetup.m_jMaxStormSeverity = new JTextField(5) [protected]

Field for capturing the maximum storm severity for a scheduled storm.

JTextField javawrapper.ScheduledStormSetup.m_jStormYear = new JTextField(5) [protected]

Field for capturing the year the storm should occur.

The list displaying the currently assigned storms.

The list model for m_jStormsList.

String javawrapper.ScheduledStormSetup.m_sHelpID = "windows.edit_scheduled_storms_window" [private]

The ID of the help file for this window.


The documentation for this class was generated from the following file:

Generated on Wed Oct 28 14:01:23 2009 for SORTIE Java Interface by  doxygen 1.5.6