Package annotation.userforms.datasel
Class UserFormDataSelector
java.lang.Object
PamguardMVC.dataSelector.DataSelector
annotation.dataselect.AnnotationDataSelector
annotation.userforms.datasel.UserFormDataSelector
This is a wrapper around a standard forms data selector. Needed because annotations hold data in a different
way to a normal FormsDataUnit, so mustn't call the standard scoreData fundtion in the formsDataSelector.
- Author:
- Dougl
-
Constructor Summary
ConstructorDescriptionUserFormDataSelector
(DataAnnotationType annotationType, PamDataBlock pamDataBlock, String selectorName, boolean allowScores, FormDataSelector formsDataSelector) -
Method Summary
Modifier and TypeMethodDescriptionGet selection parameters for more organised centralised storage.This is a title for the data selector which can be used in dialogs.void
setParams
(DataSelectParams dataSelectParams) Set selection parameters from centralised storage.Methods inherited from class annotation.dataselect.AnnotationDataSelector
getAnnotationType, getLongSelectorName, scoreData
Methods inherited from class PamguardMVC.dataSelector.DataSelector
findDataSelector, getDescription, getDialogButton, getDialogButton, getMenuItem, getPamDataBlock, getSelectorName, getSQLSelectClause, isAllowScores, setSelectorTitle, showSelectDialog
-
Constructor Details
-
UserFormDataSelector
public UserFormDataSelector(DataAnnotationType annotationType, PamDataBlock pamDataBlock, String selectorName, boolean allowScores, FormDataSelector formsDataSelector)
-
-
Method Details
-
setParams
Description copied from class:DataSelector
Set selection parameters from centralised storage.- Specified by:
setParams
in classDataSelector
-
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:
-
getDialogPanel
- Specified by:
getDialogPanel
in classDataSelector
- Returns:
- a dialog panel which can be used in a wider dialog
-
getDialogPaneFX
- Specified by:
getDialogPaneFX
in classDataSelector
- Returns:
- a FX pane which can be used in a wider dialog
-
getSelectorTitle
Description copied from class:DataSelector
This is a title for the data selector which can be used in dialogs. This can be different to the name, since the name is generally the display, which we know anyway. Particularly with complicated compound data selectors, it's useful to have a more informative name for various sub-components.- Overrides:
getSelectorTitle
in classDataSelector
- Returns:
- title to use in dialog components.
-