Package docking.wizard
Class AbstractMagePanelManager<T>
java.lang.Object
docking.wizard.AbstractMagePanelManager<T>
- All Implemented Interfaces:
PanelManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Method called when the user wants to cancel the process.final boolean
Return true if the "finish" step can be completed.protected abstract Collection
<? extends MagePanel<T>> protected abstract void
doFinish()
final void
finish()
Method called when the user wants to finish the process.Get the first panel in the process.final WizardPanel
Get the next panel in the process.Get the size of the panels.final WizardPanel
Get the previous panel in the process.protected WizardState
<T> getState()
final String
Get the status message for the current panel.final WizardManager
Get the wizard manager.final boolean
Return true if there is a "next" panel.final boolean
Return true if there is a "previous" panel.final void
Set up the panel process.protected void
protected final void
setStatusMessage
(String msg) final void
Set the wizard manager for this panel manager.
-
Constructor Details
-
AbstractMagePanelManager
-
-
Method Details
-
createPanels
-
getState
-
cancel
public void cancel()Description copied from interface:PanelManager
Method called when the user wants to cancel the process.- Specified by:
cancel
in interfacePanelManager
-
getWizardManager
Description copied from interface:PanelManager
Get the wizard manager.- Specified by:
getWizardManager
in interfacePanelManager
- Returns:
- WizardManager wizard manager for this panel manager
-
setWizardManager
Description copied from interface:PanelManager
Set the wizard manager for this panel manager.- Specified by:
setWizardManager
in interfacePanelManager
- Parameters:
wm
- wizard manager that calls the methods on this panel manager
-
getPanelSize
Description copied from interface:PanelManager
Get the size of the panels.- Specified by:
getPanelSize
in interfacePanelManager
- Returns:
- Dimension size of the panel
-
getStatusMessage
Description copied from interface:PanelManager
Get the status message for the current panel.- Specified by:
getStatusMessage
in 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:PanelManager
Set 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:
initialize
in interfacePanelManager
-
getCurrentPanel
-
hasNextPanel
public final boolean hasNextPanel()Description copied from interface:PanelManager
Return true if there is a "next" panel.- Specified by:
hasNextPanel
in interfacePanelManager
- Returns:
- boolean true means there is a next panel to display
-
hasPreviousPanel
public final boolean hasPreviousPanel()Description copied from interface:PanelManager
Return true if there is a "previous" panel.- Specified by:
hasPreviousPanel
in interfacePanelManager
- Returns:
- boolean true means there is a previous panel to display
-
canFinish
public final boolean canFinish()Description copied from interface:PanelManager
Return true if the "finish" step can be completed.- Specified by:
canFinish
in interfacePanelManager
- Returns:
- boolean true if ok to finish
-
getNextPanel
Description copied from interface:PanelManager
Get the next panel in the process.- Specified by:
getNextPanel
in interfacePanelManager
- Returns:
- WizardPanel the next panel
- Throws:
IllegalPanelStateException
- if an IOException or other unexpected error occurs
-
getInitialPanel
Description copied from interface:PanelManager
Get the first panel in the process.- Specified by:
getInitialPanel
in interfacePanelManager
- Returns:
- WizardPanel the first panel
- Throws:
IllegalPanelStateException
- if an IOException or other unexpected error occurs
-
getPreviousPanel
Description copied from interface:PanelManager
Get the previous panel in the process.- Specified by:
getPreviousPanel
in interfacePanelManager
- Returns:
- WizardPanel the previous panel
- Throws:
IllegalPanelStateException
- if an IOException or other unexpected error occurs
-
doFinish
- Throws:
IllegalPanelStateException
-
finish
Description copied from interface:PanelManager
Method called when the user wants to finish the process.- Specified by:
finish
in interfacePanelManager
- Throws:
IllegalPanelStateException
- if an IOException or other unexpected error occurs
-
getPanels
-