SORTIE Java Interface  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
sortie.gui.ScheduledStormSetup Class Reference

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

Inheritance diagram for sortie.gui.ScheduledStormSetup:

Public Member Functions

 ScheduledStormSetup (JDialog oParent, GUIManager oManager)
 Constructor. More...
 
void actionPerformed (ActionEvent e)
 Controls actions for this window. More...
 

Protected Member Functions

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

Protected Attributes

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

Private Member Functions

void createGUI ()
 Creates the window. More...
 

Private Attributes

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

Detailed Description

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

Copyright: Copyright (c) Charles D. Canham 2003

Company: Cary Institute of Ecosystem Studies

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

Constructor & Destructor Documentation

◆ ScheduledStormSetup()

sortie.gui.ScheduledStormSetup.ScheduledStormSetup ( JDialog  oParent,
GUIManager  oManager 
)

Constructor.

Parameters
oParentJFrame Parent frame
oManagerGUIManager GUIManager object
Exceptions
ModelExceptionPassing through from called functions.

Member Function Documentation

◆ actionPerformed()

void sortie.gui.ScheduledStormSetup.actionPerformed ( ActionEvent  e)

Controls actions for this window.

Parameters
eActionEvent.

◆ addStorm()

void sortie.gui.ScheduledStormSetup.addStorm ( ) throws ModelException
protected

Adds a new scheduled storm.

Exceptions
ModelExceptionif:
  • 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

◆ createGUI()

void sortie.gui.ScheduledStormSetup.createGUI ( )
private

Creates the window.

◆ loadData()

void sortie.gui.ScheduledStormSetup.loadData ( )
protected

Extracts data on currently scheduled storms for display purposes.

Exceptions
ModelExceptionPassing through from other called functions.

◆ ok()

void sortie.gui.ScheduledStormSetup.ok ( ) throws ModelException
protected

What happens when the OK button is clicked.

The data is passed to the DisturbanceBehaviors object as needed.

◆ removeStorms()

void sortie.gui.ScheduledStormSetup.removeStorms ( ) throws ModelException
protected

Removes scheduled storms from the list to add.

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

Member Data Documentation

◆ m_jMaxStormSeverity

JTextField sortie.gui.ScheduledStormSetup.m_jMaxStormSeverity = new JTextField(5)
protected

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

◆ m_jMinStormSeverity

JTextField sortie.gui.ScheduledStormSetup.m_jMinStormSeverity = new JTextField(5)
protected

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

◆ m_jStormsList

JList<ScheduledStormInfo> sortie.gui.ScheduledStormSetup.m_jStormsList
protected

The list displaying the currently assigned storms.

◆ m_jStormsListModel

DefaultListModel<ScheduledStormInfo> sortie.gui.ScheduledStormSetup.m_jStormsListModel
protected

The list model for m_jStormsList.

◆ m_jStormYear

JTextField sortie.gui.ScheduledStormSetup.m_jStormYear = new JTextField(5)
protected

Field for capturing the year the storm should occur.

◆ m_oManager

GUIManager sortie.gui.ScheduledStormSetup.m_oManager
protected

GUIManager object.

◆ m_sHelpID

String sortie.gui.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: