Package pamViewFX.fxSettingsPanes
Class DynamicSettingsPane<T>
java.lang.Object
PamController.SettingsPane<T>
pamViewFX.fxSettingsPanes.DynamicSettingsPane<T>
- Type Parameters:
T
- - the settings file.
- All Implemented Interfaces:
DynamicSettings
- Direct Known Subclasses:
AdvMHTVarPane
,ClickSelectPaneFX
,CompoundDialogPaneFX
,CPODDataSelectorPane
,CTDataSelectPane
,DataMapSettingsPane
,DataSelectorDialogPaneFX
,DLPredictonPane
,DLSelectPaneFX
,FFTSettingsPane
,FXSymbolOptionsPane
,HydrophoneSettingsPane
,RefractionMethodPane
,SimpleFilterPaneFX
,TDGraphSettingsPane
,TDScrollerSettingsPane
,VRSettingsPane
,WMDSelectPaneFX
A dynamic settings is a settings pane which allows users to change settings instantly. i.e. when a control
is pressed the setting is instantly changed rather than, for example, an OK button being pressed and all settings then saving.
This is often is slider panes.
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSettingsListener
(SettingsListener settingsListener) Add a settings listener to the pane.boolean
Check whether the pane can notify settings listenersvoid
Notify all settings listeners of a settings change.void
removeSettingsListener
(SettingsListener settingsListener) Remove a settings listenervoid
setAllowNotify
(boolean allowNotify) Set settings listeners to be notified.Methods inherited from class PamController.SettingsPane
getAWTWindow, getContentNode, getFXWindow, getHelpPoint, getName, getOwnerWindow, getParams, notifyChange, paneInitialized, repackContents, setDefaults, setOwnerWindow, setParams
-
Constructor Details
-
DynamicSettingsPane
-
-
Method Details
-
addSettingsListener
Add a settings listener to the pane. This will register any change in controls which changes settings.- Specified by:
addSettingsListener
in interfaceDynamicSettings
- Parameters:
settingsListener
- - the settings listener to add
-
removeSettingsListener
Remove a settings listener- Specified by:
removeSettingsListener
in interfaceDynamicSettings
- Parameters:
settingsListener
- - the settings to remove.
-
notifySettingsListeners
public void notifySettingsListeners()Notify all settings listeners of a settings change.- Specified by:
notifySettingsListeners
in interfaceDynamicSettings
- Parameters:
obsVal
- - the observable valueoldVal
- - the old valuenewVal
- - the new value.
-
isAllowNotify
public boolean isAllowNotify()Check whether the pane can notify settings listeners- Specified by:
isAllowNotify
in interfaceDynamicSettings
- Returns:
- true if settings listeners are notified on calling notifySettingsListeners()
-
setAllowNotify
public void setAllowNotify(boolean allowNotify) Set settings listeners to be notified. Set to false to disable all listeners.- Specified by:
setAllowNotify
in interfaceDynamicSettings
- Parameters:
allowNotify
- - true to allow notifucation of settings listeners.
-