Inherits javax::swing::JDialog, and java::awt::event::ActionListener.
Public Member Functions | |
TreeSpeciesSetup (JFrame jParent, TreePopulation oPop) | |
Constructor. | |
void | actionPerformed (ActionEvent oEvent) |
Controls actions for this window. | |
Protected Member Functions | |
void | AddSpecies () |
Performs a species add in response to the Add button click. | |
void | RemoveSpecies () |
Removes a species. | |
void | RenameSpecies () |
Puts a species to rename in the list of renamed species, and updates the species list. | |
int | UpdateTreePopulation () throws ModelException |
Updates the TreePopulation object with the accumulated changes. | |
Protected Attributes | |
TreePopulation | m_oPop |
TreePopulation object that data changes will be communicated to. | |
DefaultListModel | m_jSpeciesListModel |
List model for species. | |
JList | m_jSpeciesList |
List displaying the species. | |
Vector< RenamePair > | mp_oRenameSpecies = new Vector<RenamePair>(0) |
Vector of RenamePair objects, one for each species the user has asked to rename. | |
Vector< RenamePair > | mp_oCopySpecies = new Vector<RenamePair>(0) |
Vector of RenamePair objects, one for each species the user has asked to copy. | |
JTextField | m_jNewSpecies |
Field for entering a new species name. | |
Static Package Attributes | |
static final long | serialVersionUID = 1 |
Private Member Functions | |
void | MoveUp () |
Moves selected species up. | |
void | MoveDown () |
Moves selected species down. | |
Private Attributes | |
String | m_sHelpID = "windows.edit_species_list_window" |
Help ID string. | |
Classes | |
class | CopySpeciesEditor |
This class creates an interface for copying species. More... |
This includes the species list and initial density size classes.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
javawrapper.TreeSpeciesSetup.TreeSpeciesSetup | ( | JFrame | jParent, | |
TreePopulation | oPop | |||
) |
Constructor.
Constructs and displays the GUI.
jParent | Parent window in which to display this dialog. | |
oPop | TreePopulation object. |
void javawrapper.TreeSpeciesSetup.MoveUp | ( | ) | [private] |
Moves selected species up.
void javawrapper.TreeSpeciesSetup.MoveDown | ( | ) | [private] |
Moves selected species down.
void javawrapper.TreeSpeciesSetup.AddSpecies | ( | ) | [protected] |
Performs a species add in response to the Add button click.
void javawrapper.TreeSpeciesSetup.RemoveSpecies | ( | ) | [protected] |
Removes a species.
This verifiies the remove operation. Then, if valid, removes the species. This will also make sure that any rename or copy pairs featuring the removed species are also removed.
void javawrapper.TreeSpeciesSetup.RenameSpecies | ( | ) | [protected] |
Puts a species to rename in the list of renamed species, and updates the species list.
int javawrapper.TreeSpeciesSetup.UpdateTreePopulation | ( | ) | throws ModelException [protected] |
Updates the TreePopulation object with the accumulated changes.
ModelException | if there are no species present. |
void javawrapper.TreeSpeciesSetup.actionPerformed | ( | ActionEvent | oEvent | ) |
Controls actions for this window.
oEvent | ActionEvent. |
final long javawrapper.TreeSpeciesSetup.serialVersionUID = 1 [static, package] |
TreePopulation javawrapper.TreeSpeciesSetup.m_oPop [protected] |
TreePopulation object that data changes will be communicated to.
DefaultListModel javawrapper.TreeSpeciesSetup.m_jSpeciesListModel [protected] |
List model for species.
JList javawrapper.TreeSpeciesSetup.m_jSpeciesList [protected] |
List displaying the species.
Vector<RenamePair> javawrapper.TreeSpeciesSetup.mp_oRenameSpecies = new Vector<RenamePair>(0) [protected] |
Vector of RenamePair objects, one for each species the user has asked to rename.
Vector<RenamePair> javawrapper.TreeSpeciesSetup.mp_oCopySpecies = new Vector<RenamePair>(0) [protected] |
Vector of RenamePair objects, one for each species the user has asked to copy.
JTextField javawrapper.TreeSpeciesSetup.m_jNewSpecies [protected] |
Field for entering a new species name.
String javawrapper.TreeSpeciesSetup.m_sHelpID = "windows.edit_species_list_window" [private] |
Help ID string.