Package pamViewFX.fxNodes.pamDialogFX
Class ManagedSettingsPane<T>
java.lang.Object
pamViewFX.fxNodes.pamDialogFX.ManagedSettingsPane<T>
- Type Parameters:
 T-
- Direct Known Subclasses:
 ToadManagedSettingsPane
Wrapper around a SettingsPane to provide simpler 
 functionality for including panes from one part of PAMGuard in 
 another part. With a SettingsPane, whatever uses that SettingsPane
 needs to have a way of putting parameters into it and using them when 
 they come back out, which can be hard to implement if the dialog 
 using the pane really knows nothing about it. 
 With a ManagedSettingsPane all of the work is done within this 
 one object, which will have to implement methods to get and store
 the data.
- Author:
 - Doug Gillespie
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract TGet the parameters from whichever object owns them so that they can be put into the SettingsPane.Get parameters from the settings pane.abstract SettingsPane<T> A settings pane to incorporate into dialogs, control panels, etc.voidSet parameters in the settings pane.abstract booleanCalled when parameters are returned by the settings pane. 
- 
Constructor Details
- 
ManagedSettingsPane
public ManagedSettingsPane() 
 - 
 - 
Method Details
- 
getSettingsPane
A settings pane to incorporate into dialogs, control panels, etc.- Returns:
 - the settingsPane
 
 - 
getParams
Get parameters from the settings pane.- Returns:
 - It will return the parameters, or null, but nothing needs to happen to that object.
 
 - 
useParams
Called when parameters are returned by the settings pane. Here the parameters should be put into the right location in whatever class is using them.
This doesn't get called when the parameters returned are null- Parameters:
 newParams- Parameters returned by the SettingsPane- Returns:
 - false if the parameters are invalid for some reason.
 
 - 
setParams
public void setParams()Set parameters in the settings pane. This calls findParams() which should get the correct parameters from whichever object owns them. - 
findParams
Get the parameters from whichever object owns them so that they can be put into the SettingsPane.- Returns:
 - Parameters to put into the settings pane.
 
 
 -