Package PamguardMVC.dataSelector
Class DataSelectorDialogPanel
java.lang.Object
PamguardMVC.dataSelector.DataSelectorDialogPanel
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionDataSelectorDialogPanel
(DataSelector dataSelector, PamDialogPanel innerPanel, int setIndex) Create a panel to sit around a data selector dialog panel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Get the awt component which will be incorporated into a larger display panel / component.boolean
void
Set the initial parameter values in the panel.
-
Constructor Details
-
DataSelectorDialogPanel
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 selectorinnerPanel
- Dialog panel, which probably shouldn't have AND OR buttons andsetIndex
- selection index - see above.
-
-
Method Details
-
getDialogComponent
Description copied from interface:PamDialogPanel
Get the awt component which will be incorporated into a larger display panel / component.- Specified by:
getDialogComponent
in interfacePamDialogPanel
- 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 interfacePamDialogPanel
-
enableComponent
public void enableComponent() -
getParams
public boolean getParams()- Specified by:
getParams
in interfacePamDialogPanel
- Returns:
- true if parameters all have acceptable values and the dialog can close.
-