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

Displays dialog for entering size class data. More...

Inheritance diagram for sortie.gui.SizeClassEditor:

Public Member Functions

 SizeClassEditor (JFrame jParent, TreePopulation oPop)
 Constructor. More...
 
void actionPerformed (ActionEvent oEvent)
 Responds to button clicks. More...
 

Protected Member Functions

void addClass () throws ModelException
 Performs a size class add in response to the Add button click. More...
 

Protected Attributes

TreePopulation m_oPop
 TreePopulation object that data changes will be communicated to. More...
 
DefaultListModel< Float > m_jSizeClassListModel
 List model for size classes. More...
 
JList< Float > m_jSizeClassList
 List displaying the size classes. More...
 
JTextField m_jNewClass
 Field for entering new size class. More...
 

Private Attributes

String m_sHelpID = "windows.edit_size_classes"
 Help ID string. More...
 

Detailed Description

Displays dialog for entering size class data.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Cary Institute of Ecosystem Studies

Author
Lora E. Murphy
Version
1.0


Edit history:
---------------—
April 28, 2004: Submitted in beta version (LEM)
February 27, 2008: Broke out into its own class

Constructor & Destructor Documentation

◆ SizeClassEditor()

sortie.gui.SizeClassEditor.SizeClassEditor ( JFrame  jParent,
TreePopulation  oPop 
)

Constructor.

Creates GUI.

Parameters
jParentParent dialog in which to display this one.
oPopTree population object.

Member Function Documentation

◆ actionPerformed()

void sortie.gui.SizeClassEditor.actionPerformed ( ActionEvent  oEvent)

Responds to button clicks.

Parameters
oEventEvent fired by button click

◆ addClass()

void sortie.gui.SizeClassEditor.addClass ( ) throws ModelException
protected

Performs a size class add in response to the Add button click.

Exceptions
ModelExceptionif the value is not a number or is negative.

Member Data Documentation

◆ m_jNewClass

JTextField sortie.gui.SizeClassEditor.m_jNewClass
protected

Field for entering new size class.

◆ m_jSizeClassList

JList<Float> sortie.gui.SizeClassEditor.m_jSizeClassList
protected

List displaying the size classes.

◆ m_jSizeClassListModel

DefaultListModel<Float> sortie.gui.SizeClassEditor.m_jSizeClassListModel
protected

List model for size classes.

◆ m_oPop

TreePopulation sortie.gui.SizeClassEditor.m_oPop
protected

TreePopulation object that data changes will be communicated to.

◆ m_sHelpID

String sortie.gui.SizeClassEditor.m_sHelpID = "windows.edit_size_classes"
private

Help ID string.


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