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
ConstructorsConstructorDescriptionUserFormDataSelector(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.protected doublescoreData(PamDataUnit pamDataUnit, DataAnnotation annotation) Score the data based on the annotaiton.voidsetParams(DataSelectParams dataSelectParams) Set selection parameters from centralised storage.Methods inherited from class annotation.dataselect.AnnotationDataSelector
getAnnotationType, getLongSelectorName, scoreDataMethods 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
- 
scoreData
Description copied from class:AnnotationDataSelectorScore the data based on the annotaiton.- Specified by:
 scoreDatain classAnnotationDataSelector- Parameters:
 pamDataUnit-annotation- might be null- Returns:
 
 - 
setParams
Description copied from class:DataSelectorSet selection parameters from centralised storage.- Specified by:
 setParamsin classDataSelector- Parameters:
 dataSelectParams-
 - 
getParams
Description copied from class:DataSelectorGet 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:
 getParamsin classDataSelector- Returns:
 
 - 
getDialogPanel
- Specified by:
 getDialogPanelin classDataSelector- Returns:
 - a dialog panel which can be used in a wider dialog
 
 - 
getDialogPaneFX
- Specified by:
 getDialogPaneFXin classDataSelector- Returns:
 - a FX pane which can be used in a wider dialog
 
 - 
getSelectorTitle
Description copied from class:DataSelectorThis 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:
 getSelectorTitlein classDataSelector- Returns:
 - title to use in dialog components.
 
 
 -