Class BlockingStationsPanel

All Implemented Interfaces:
CommonConstants, ImageObserver, MenuContainer, Serializable, Accessible, EngineNodeConstants

public class BlockingStationsPanel extends WizardPanel implements CommonConstants

Title: Blocking Region Station Definition Panel

Description: This panel is used to specify stations to be inserted into a blocking region. This panel includes BlockingRegionParameterPanel to specify class dependent constraints.

Author:
Bertoli Marco Date: 10-mag-2006 Time: 16.53.41
See Also:
  • Field Details

    • cd

      protected ClassDefinition cd
      Class definition data structure
    • sd

      protected StationDefinition sd
      Station definition data structure
    • brd

      protected BlockingRegionDefinition brd
      Blocking region definition data structure
    • regionKey

      protected Object regionKey
      Current region key
    • parameterPanel

      protected BlockingRegionParameterPanel parameterPanel
      Inner panel to specify class and group constraints
    • stationPanel

      protected JPanel stationPanel
      Panel used to display stations
    • stationTable

      protected JTable stationTable
      Table used to display stations
    • warningPanel

      protected WarningScrollTable warningPanel
      Panel used to display warning
    • stationNumSpinner

      protected JSpinner stationNumSpinner
      Spinner used to select number of stations
    • addStation

      protected JButton addStation
      Button used to add a stations
    • stations

      protected Vector<Object> stations
      Vector used to store stations in a given region. This is needed as data structure uses a set which is sorted
    • combos

      Used for station selection renderers
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in class WizardPanel
      Returns:
      the panel's name
    • lostFocus

      public void lostFocus()
      called by the Wizard before when switching to another panel
      Overrides:
      lostFocus in class WizardPanel
    • gotFocus

      public void gotFocus()
      called by the Wizard when the panel becomes active
      Overrides:
      gotFocus in class WizardPanel
    • setData

      public void setData(ClassDefinition cd, StationDefinition sd, BlockingRegionDefinition brd, Object key)
      Sets data for this panel
      Parameters:
      cd - class definition data structure
      brd - blocking region definition data structure
      key - search's key for given blocking region
    • update

      protected void update()
      Updates table and spinner values to reflect number of stations
    • add

      protected void add()
      Adds a new station to current blocking region. Takes the first available station
    • setGroupNumber

      protected void setGroupNumber(int number)
      Sets the group number for current blocking region
    • setGroupEnable

      protected void setGroupEnable(boolean enable)
      Sets grouping enabled/disabled for current blocking region