|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.ui.app.WizardPlugin
A base plugin for creating dialog-based wizards.
Plugin,
GUIApplication| Field Summary | |
static int |
CANCEL
|
static int |
SUCCESSFUL
|
| Fields inherited from interface org.fife.ui.app.GUIApplicationConstants |
OS_LINUX, OS_MAC_OSX, OS_OTHER, OS_WINDOWS |
| Fields inherited from interface org.fife.ui.dockablewindows.DockableWindowConstants |
BOTTOM, FLOATING, LEFT, RIGHT, TOP |
| Constructor Summary | |
WizardPlugin(GUIApplication app)
Constructor. |
|
| Method Summary | |
protected int |
addInfoPanel(WizardDialogInfoPanel panel)
Adds a "step" to this wizard. |
protected abstract void |
createPanels()
This method should be overridden to initialize all panels in this wizard via addInfoPanel. |
protected WizardDialogInfoPanel |
getInfoPanel(int index,
WizardPluginDialog dialog)
Returns the specified info panel. |
protected abstract WizardDialogInfoPanel |
getIntroductionPanel(WizardPluginDialog dialog)
Returns the "introduction panel;" that is, the initial information displayed to the user explain what this wizard will do. |
abstract PluginOptionsDialogPanel |
getOptionsDialogPanel()
Returns an options panel for use in an Options dialog. |
javax.swing.Icon |
getSideIcon()
Returns the image to use on the side of the dialog. |
int |
getStepCount()
Returns the number of steps in this wizard. |
abstract java.lang.String |
getWizardDialogTitle()
Returns the title of the Wizard dialog. |
protected abstract WizardDialogInfoPanel |
getWizardSuccessfulPanel(WizardPluginDialog dialog)
Returns the dialog information to display when the wizard has completed successfully. |
protected abstract void |
handleWizardSuccessful(WizardDialogInfoPanel[] panels)
This method is called if the user runs the wizard and clicks the "Finish" button; e.g., the wizard has run to completion. |
boolean |
promptBeforeCancel()
Returns whether or not the user should be prompted to confirm a "cancel" request by the user. |
int |
runWizard()
Starts the wizard. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.fife.ui.app.Plugin |
getOptionsDialogPanelParentPanelID, getPluginAuthor, getPluginIcon, getPluginName, getPluginVersion, install, savePreferences, uninstall |
| Field Detail |
public static final int CANCEL
public static final int SUCCESSFUL
| Constructor Detail |
public WizardPlugin(GUIApplication app)
app - The GUI application.| Method Detail |
protected int addInfoPanel(WizardDialogInfoPanel panel)
panel - The panel to add.
getInfoPanel(int, org.fife.ui.app.WizardPluginDialog)protected abstract void createPanels()
addInfoPanel. Note that you only need to add
the "step" panels in this way, not the "introduction" or "successful"
panels.
protected abstract WizardDialogInfoPanel getIntroductionPanel(WizardPluginDialog dialog)
This wizard will walk you through creating a simple Java class.
dialog - The dialog in which this information will be displayed.
getInfoPanel(int, org.fife.ui.app.WizardPluginDialog),
getWizardSuccessfulPanel(org.fife.ui.app.WizardPluginDialog)
protected WizardDialogInfoPanel getInfoPanel(int index,
WizardPluginDialog dialog)
index - The "step number." This value will be 1-based; that is,
it will be in the range 1-getStepCount().dialog - The dialog in which this information will be displayed.
getIntroductionPanel(org.fife.ui.app.WizardPluginDialog),
getWizardSuccessfulPanel(org.fife.ui.app.WizardPluginDialog),
addInfoPanel(org.fife.ui.app.WizardDialogInfoPanel)public abstract PluginOptionsDialogPanel getOptionsDialogPanel()
getOptionsDialogPanel in interface Pluginpublic javax.swing.Icon getSideIcon()
public final int getStepCount()
public abstract java.lang.String getWizardDialogTitle()
protected abstract WizardDialogInfoPanel getWizardSuccessfulPanel(WizardPluginDialog dialog)
dialog - The dialog in which this information will be displayed.
getIntroductionPanel(org.fife.ui.app.WizardPluginDialog),
getInfoPanel(int, org.fife.ui.app.WizardPluginDialog)protected abstract void handleWizardSuccessful(WizardDialogInfoPanel[] panels)
panels - The "step" panels in which the user entered values.public boolean promptBeforeCancel()
public final int runWizard()
CANCEL or SUCCESSFUL,
depending on whether the user cancelled the wizard.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||