Inherits javax::swing::JDialog, and java::awt::event::ActionListener.
Public Member Functions | |
SizeClassEditor (JFrame jParent, TreePopulation oPop) | |
Constructor. | |
void | actionPerformed (ActionEvent oEvent) |
Responds to button clicks. | |
Protected Member Functions | |
void | AddClass () throws ModelException |
Performs a size class add in response to the Add button click. | |
Protected Attributes | |
TreePopulation | m_oPop |
TreePopulation object that data changes will be communicated to. | |
DefaultListModel | m_jSizeClassListModel |
List model for size classes. | |
JList | m_jSizeClassList |
List displaying the size classes. | |
JTextField | m_jNewClass |
Field for entering new size class. | |
Private Attributes | |
String | m_sHelpID = "windows.edit_size_classes" |
Help ID string. |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
javawrapper.SizeClassEditor.SizeClassEditor | ( | JFrame | jParent, | |
TreePopulation | oPop | |||
) |
Constructor.
Creates GUI.
jParent | Parent dialog in which to display this one. | |
oHelpBroker | Application's help broker. |
void javawrapper.SizeClassEditor.AddClass | ( | ) | throws ModelException [protected] |
Performs a size class add in response to the Add button click.
ModelException | if the value is not a number or is negative. |
void javawrapper.SizeClassEditor.actionPerformed | ( | ActionEvent | oEvent | ) |
Responds to button clicks.
oEvent | Event fired by button click |
TreePopulation javawrapper.SizeClassEditor.m_oPop [protected] |
TreePopulation object that data changes will be communicated to.
DefaultListModel javawrapper.SizeClassEditor.m_jSizeClassListModel [protected] |
List model for size classes.
JList javawrapper.SizeClassEditor.m_jSizeClassList [protected] |
List displaying the size classes.
JTextField javawrapper.SizeClassEditor.m_jNewClass [protected] |
Field for entering new size class.
String javawrapper.SizeClassEditor.m_sHelpID = "windows.edit_size_classes" [private] |
Help ID string.