Class BreedingPanel

Class BreedingPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----BreedingPanel

class BreedingPanel
extends Panel
This panel contains a TitlePanel and a GridBagPanel that accepts input for the following lilgp parameters:

After entering the number of bread phases, the user has to click on the Go button in order to enter the additional breed phase parameters. Clicking on the Go button causes a new BreedFrame to be instantiated. Clicking on the purge button causes all of the parameters associated with breed phases to be removed from the database.

See Also:
TitlePanel, GridBagPanel, BreedFrame, purgeOldPhases

Constructor Index

 o BreedingPanel()
Add each of the UI components needed to accept input.

Method Index

 o action(Event, Object)
Trap TextField events and Button events.
 o enableButtons()
Allow the BreedFrame to re-enable the button after the user closes the frame.
 o flushParameters()
Collect the contents of each UI component and store it in the ParameterDB.
 o loadParams()
This method is responsible for loading parameters onto the BreedingPanel after the user opens a parameter file.

Constructors

 o BreedingPanel
  public BreedingPanel()
Add each of the UI components needed to accept input.
See Also:
addComponent

Methods

 o flushParameters
  public static void flushParameters()
Collect the contents of each UI component and store it in the ParameterDB. The parameters associated with breed phases are flushed into the database in the action() method of BreedFrame.
See Also:
ParameterDB, action
 o action
  public boolean action(Event event,
                        Object arg)
Trap TextField events and Button events. If the Go button has been pressed, then extract the contents of the field containing the breed_phases and parse it for errors. If the number of breed phases has not changed since the last time the button was pressed, then simply show() the old BreedFrame (it will contain any previously entered data). Otherwise, instantiate a new BreedFrame containing the default values. If the purge button has been pressed, then remove all breed phase parameters from the database.
Overrides:
action in class Component
See Also:
BreedFrame, purgeOldPhases
 o enableButtons
  public static void enableButtons()
Allow the BreedFrame to re-enable the button after the user closes the frame.
See Also:
BreedFrame
 o loadParams
  public static void loadParams()
This method is responsible for loading parameters onto the BreedingPanel after the user opens a parameter file. It then invokes the loadParams method in the BreedFrame.
See Also:
loadParams