Class TOADSettingsPaneWithChannels<T>
java.lang.Object
pamViewFX.fxNodes.pamDialogFX.ManagedSettingsPane<S>
group3dlocaliser.ToadManagedSettingsPane<T>
group3dlocaliser.algorithm.toadbase.TOADSettingsPaneWithChannels<T>
-
Constructor Summary
ConstructorDescriptionTOADSettingsPaneWithChannels
(Object parent, TOADBaseAlgorithm toadBaseAlgorithm, ManagedSettingsPane<T> toadSettingsPane) -
Method Summary
Modifier and TypeMethodDescriptionGet the parameters from whichever object owns them so that they can be put into the SettingsPane.A settings pane to incorporate into dialogs, control panels, etc.javafx.scene.control.TabPane
Get the tab pane for the settings.void
setErrorWarn
(boolean warn) Set whether the pane should show errors.boolean
Called when parameters are returned by the settings pane.Methods inherited from class pamViewFX.fxNodes.pamDialogFX.ManagedSettingsPane
getParams, setParams
-
Constructor Details
-
TOADSettingsPaneWithChannels
public TOADSettingsPaneWithChannels(Object parent, TOADBaseAlgorithm toadBaseAlgorithm, ManagedSettingsPane<T> toadSettingsPane)
-
-
Method Details
-
getTabPane
public javafx.scene.control.TabPane getTabPane()Get the tab pane for the settings.- Specified by:
getTabPane
in classToadManagedSettingsPane<T>
- Returns:
- the tab pane for the different settings.
-
getSettingsPane
Description copied from class:ManagedSettingsPane
A settings pane to incorporate into dialogs, control panels, etc.- Specified by:
getSettingsPane
in classManagedSettingsPane<T>
- Returns:
- the settingsPane
-
useParams
Description copied from class:ManagedSettingsPane
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- Specified by:
useParams
in classManagedSettingsPane<T>
- Parameters:
newParams
- Parameters returned by the SettingsPane- Returns:
- false if the parameters are invalid for some reason.
-
findParams
Description copied from class:ManagedSettingsPane
Get the parameters from whichever object owns them so that they can be put into the SettingsPane.- Specified by:
findParams
in classManagedSettingsPane<T>
- Returns:
- Parameters to put into the settings pane.
-
getToadSettingsPane
- Returns:
- the toadSettingsPane
-
getChannelPanel
- Returns:
- the channelPanel
-
setErrorWarn
public void setErrorWarn(boolean warn) Description copied from class:ToadManagedSettingsPane
Set whether the pane should show errors. Because there are multiple algorithms that will use this pane we do not want to warn for every algorithm only the user selected one.- Specified by:
setErrorWarn
in classToadManagedSettingsPane<T>
- Parameters:
warn
- = true to warn errors e.g. show an dialog - false and there are no error warnings.
-