Package loggerForms.dataselect
Class ControlDataSelector
java.lang.Object
PamguardMVC.dataSelector.DataSelector
loggerForms.dataselect.ControlDataSelector
- Direct Known Subclasses:
LookupDataSelector
Data selector for a single logger control.
- Author:
- Douglas Gillespie
-
Constructor Summary
ConstructorDescriptionControlDataSelector
(PamDataBlock pamDataBlock, String selectorName, boolean allowScores, ControlDescription controlDescription) -
Method Summary
Modifier and TypeMethodDescriptionfinal PamDialogPanel
abstract ControlDataSelParams
Get selection parameters for more organised centralised storage.final double
scoreData
(PamDataUnit pamDataUnit) Score a PAMDataUnit.double
scoreData
(PamDataUnit pamDataUnit, Object[] formData) Methods inherited from class PamguardMVC.dataSelector.DataSelector
findDataSelector, getDescription, getDialogButton, getDialogButton, getDialogPaneFX, getLongSelectorName, getMenuItem, getPamDataBlock, getSelectorName, getSelectorTitle, getSQLSelectClause, isAllowScores, setParams, setSelectorTitle, showSelectDialog
-
Constructor Details
-
ControlDataSelector
public ControlDataSelector(PamDataBlock pamDataBlock, String selectorName, boolean allowScores, ControlDescription controlDescription)
-
-
Method Details
-
scoreData
Description copied from class:DataSelector
Score a PAMDataUnit. this is used in preference to a boolean select function so that the user can add different return flags. Generally 0 indicates false.- Specified by:
scoreData
in classDataSelector
- Parameters:
pamDataUnit
- - the input data unit.- Returns:
- score of data out. 0 usually indicates false.
-
scoreData
-
getDialogPanel
- Specified by:
getDialogPanel
in classDataSelector
- Returns:
- a dialog panel which can be used in a wider dialog
-
getControlDescription
- Returns:
- the controlDescription
-
getParams
Description copied from class:DataSelector
Get selection parameters for more organised centralised storage. This must never be null since all selectors have an enable / disable options added to them automatically in their dialogs.- Specified by:
getParams
in classDataSelector
- Returns:
-