Package docking.wizard
Class AbstractMagePanelManager<T>
- java.lang.Object
-
- docking.wizard.AbstractMagePanelManager<T>
-
- All Implemented Interfaces:
PanelManager
public abstract class AbstractMagePanelManager<T> extends java.lang.Object implements PanelManager
-
-
Constructor Summary
Constructors Change Modifier Constructor Description protectedAbstractMagePanelManager(WizardState<T> initialState)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Change Modifier and Type Method Description voidcancel()Method called when the user wants to cancel the process.booleancanFinish()Return true if the "finish" step can be completed.NEW protected abstract java.util.Collection<? extends MagePanel<T>>createPanels()NEW protected abstract voiddoFinish()voidfinish()Method called when the user wants to finish the process.NEW protected MagePanel<T>getCurrentPanel()WizardPanelgetInitialPanel()Get the first panel in the process.WizardPanelgetNextPanel()Get the next panel in the process.NEW protected java.util.List<MagePanel<T>>getPanels()java.awt.DimensiongetPanelSize()Get the size of the panels.WizardPanelgetPreviousPanel()Get the previous panel in the process.NEW protected WizardState<T>getState()java.lang.StringgetStatusMessage()Get the status message for the current panel.WizardManagergetWizardManager()Get the wizard manager.booleanhasNextPanel()Return true if there is a "next" panel.booleanhasPreviousPanel()Return true if there is a "previous" panel.voidinitialize()Set up the panel process.NEW protected voidinitializeHook()NEW protected voidsetStatusMessage(java.lang.String msg)voidsetWizardManager(WizardManager wm)Set the wizard manager for this panel manager.
-
-
-
Constructor Detail
-
AbstractMagePanelManager
protected AbstractMagePanelManager(WizardState<T> initialState)
-
-
Method Detail
-
getState NEW
protected WizardState<T> getState()
-
cancel
public void cancel()
Description copied from interface:PanelManagerMethod called when the user wants to cancel the process.- Specified by:
cancelin interfacePanelManager
-
getWizardManager
public final WizardManager getWizardManager()
Description copied from interface:PanelManagerGet the wizard manager.- Specified by:
getWizardManagerin interfacePanelManager- Returns:
- WizardManager wizard manager for this panel manager
-
setWizardManager
public final void setWizardManager(WizardManager wm)
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
public java.awt.Dimension getPanelSize()
Description copied from interface:PanelManagerGet the size of the panels.- Specified by:
getPanelSizein interfacePanelManager- Returns:
- Dimension size of the panel
-
getStatusMessage
public final java.lang.String 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
-
initialize
public final void initialize()
Description copied from interface:PanelManagerSet up the panel process.- Specified by:
initializein interfacePanelManager
-
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
public final WizardPanel getNextPanel() throws IllegalPanelStateException
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
public WizardPanel getInitialPanel() throws IllegalPanelStateException
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
public final WizardPanel getPreviousPanel() throws IllegalPanelStateException
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 NEW
protected abstract void doFinish() throws IllegalPanelStateException- Throws:
IllegalPanelStateException
-
finish
public final void finish() throws IllegalPanelStateExceptionDescription 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
-
-