Package docking.wizard
Class AbstractMagePanelManager<T>
java.lang.Object
docking.wizard.AbstractMagePanelManager<T>
- All Implemented Interfaces:
PanelManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Method called when the user wants to cancel the process.final booleanReturn true if the "finish" step can be completed.protected abstract Collection<? extends MagePanel<T>>protected abstract voiddoFinish()final voidfinish()Method called when the user wants to finish the process.Get the first panel in the process.final WizardPanelGet the next panel in the process.Get the size of the panels.final WizardPanelGet the previous panel in the process.protected WizardState<T>getState()final StringGet the status message for the current panel.final WizardManagerGet the wizard manager.final booleanReturn true if there is a "next" panel.final booleanReturn true if there is a "previous" panel.final voidSet up the panel process.protected voidprotected final voidsetStatusMessage(String msg) final voidSet the wizard manager for this panel manager.
-
Constructor Details
-
AbstractMagePanelManager
-
-
Method Details
-
createPanels
-
getState
-
cancel
public void cancel()Description copied from interface:PanelManagerMethod called when the user wants to cancel the process.- Specified by:
cancelin interfacePanelManager
-
getWizardManager
Description copied from interface:PanelManagerGet the wizard manager.- Specified by:
getWizardManagerin interfacePanelManager- Returns:
- WizardManager wizard manager for this panel manager
-
setWizardManager
Description copied from interface:PanelManagerSet the wizard manager for this panel manager.- Specified by:
setWizardManagerin interfacePanelManager- Parameters:
wm- wizard manager that calls the methods on this panel manager
-
getPanelSize
Description copied from interface:PanelManagerGet the size of the panels.- Specified by:
getPanelSizein interfacePanelManager- Returns:
- Dimension size of the panel
-
getStatusMessage
Description copied from interface:PanelManagerGet the status message for the current panel.- Specified by:
getStatusMessagein interfacePanelManager- Returns:
- String message to display; may be null if there is no message that should be displayed
-
setStatusMessage
-
initializeHook
protected void initializeHook() -
initialize
public final void initialize()Description copied from interface:PanelManagerSet up the panel process. This may also be called to clear the state of an existing panel, such as when the overall wizard is finished.- Specified by:
initializein interfacePanelManager
-
getCurrentPanel
-
hasNextPanel
public final boolean hasNextPanel()Description copied from interface:PanelManagerReturn true if there is a "next" panel.- Specified by:
hasNextPanelin interfacePanelManager- Returns:
- boolean true means there is a next panel to display
-
hasPreviousPanel
public final boolean hasPreviousPanel()Description copied from interface:PanelManagerReturn true if there is a "previous" panel.- Specified by:
hasPreviousPanelin interfacePanelManager- Returns:
- boolean true means there is a previous panel to display
-
canFinish
public final boolean canFinish()Description copied from interface:PanelManagerReturn true if the "finish" step can be completed.- Specified by:
canFinishin interfacePanelManager- Returns:
- boolean true if ok to finish
-
getNextPanel
Description copied from interface:PanelManagerGet the next panel in the process.- Specified by:
getNextPanelin interfacePanelManager- Returns:
- WizardPanel the next panel
- Throws:
IllegalPanelStateException- if an IOException or other unexpected error occurs
-
getInitialPanel
Description copied from interface:PanelManagerGet the first panel in the process.- Specified by:
getInitialPanelin interfacePanelManager- Returns:
- WizardPanel the first panel
- Throws:
IllegalPanelStateException- if an IOException or other unexpected error occurs
-
getPreviousPanel
Description copied from interface:PanelManagerGet the previous panel in the process.- Specified by:
getPreviousPanelin interfacePanelManager- Returns:
- WizardPanel the previous panel
- Throws:
IllegalPanelStateException- if an IOException or other unexpected error occurs
-
doFinish
- Throws:
IllegalPanelStateException
-
finish
Description copied from interface:PanelManagerMethod called when the user wants to finish the process.- Specified by:
finishin interfacePanelManager- Throws:
IllegalPanelStateException- if an IOException or other unexpected error occurs
-
getPanels
-