Class DataSelectorDialogPanel

java.lang.Object
PamguardMVC.dataSelector.DataSelectorDialogPanel
All Implemented Interfaces:
PamDialogPanel

public class DataSelectorDialogPanel extends Object implements PamDialogPanel
Dialog panel to wrap around a standard dialog panel from a data selector. This will pull apart a bit the existing panel and steal it's border. It will also add some and / or buttons.

Data selectors should still make a simple dialog panel and that will be automatically wrapped by one of these beasts.

Author:
Dougl
  • Constructor Details

    • DataSelectorDialogPanel

      public DataSelectorDialogPanel(DataSelector dataSelector, PamDialogPanel innerPanel, int setIndex)
      Create a panel to sit around a data selector dialog panel. the main purpose of this is to add the extra AND OR Skip controls if they are needed. Thier nature is controlled by the setIndex. If this is 0, then the options are Enable / skip, if setIndex > 0, then the options are AND OR SKIP, if it's invalid input: '<' 0, then these options are not shown and the combination flag is set to AND. This is needed for SuperDetPanels, which wrap an existing panel which should not use thes flags, ie. we don't want AND OR options in the superdetection decorator and in the superdeteciton dialog.
      Parameters:
      dataSelector - Owning data selector
      innerPanel - Dialog panel, which probably shouldn't have AND OR buttons and
      setIndex - selection index - see above.
  • Method Details

    • getDialogComponent

      public JComponent getDialogComponent()
      Description copied from interface: PamDialogPanel
      Get the awt component which will be incorporated into a larger display panel / component.
      Specified by:
      getDialogComponent in interface PamDialogPanel
      Returns:
      an awt component.
    • setParams

      public void setParams()
      Description copied from interface: PamDialogPanel
      Set the initial parameter values in the panel. Since this interface is purely abstract, the type of parameter is unknown, so concrete implementations will somehow have to pass the class containing the parameter information in some other way.
      Specified by:
      setParams in interface PamDialogPanel
    • enableComponent

      public void enableComponent()
    • getParams

      public boolean getParams()
      Specified by:
      getParams in interface PamDialogPanel
      Returns:
      true if parameters all have acceptable values and the dialog can close.