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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSettingsListener(SettingsListener settingsListener) Add a settings listener to the pane.booleanCheck whether the pane can notify settings listenersvoidNotify all settings listeners of a settings change.voidremoveSettingsListener(SettingsListener settingsListener) Remove a settings listenervoidsetAllowNotify(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:
addSettingsListenerin interfaceDynamicSettings- Parameters:
settingsListener- - the settings listener to add
-
removeSettingsListener
Remove a settings listener- Specified by:
removeSettingsListenerin interfaceDynamicSettings- Parameters:
settingsListener- - the settings to remove.
-
notifySettingsListeners
public void notifySettingsListeners()Notify all settings listeners of a settings change.- Specified by:
notifySettingsListenersin 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:
isAllowNotifyin 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:
setAllowNotifyin interfaceDynamicSettings- Parameters:
allowNotify- - true to allow notifucation of settings listeners.
-