Package org.locationtech.jts.jump.workbench.ui.wizard
A simple package for implementing a wizard GUI framework.
There isn't much on the Internet in the way of a free Wizard framework. JUMP's looks pretty good!Creating a Wizard is pretty easy.
- Create a WizardDialog, passing in a Frame, title, and an ErrorHandler.
- Initialize the new WizardDialog, passing it an array of WizardPanels. The first element of the array is the panel which is first displayed.
- Set the size of the dialog, and display it, allowing the user to interact with it. Check if the user has completed the task by hitting "finish".
- Query the various WizardPanels to obtain the data that the user was prompted for.
Example
There are several examples applying JUMP's Wizard framework in the package org.locationtech.jts.jump.workbench.ui.plugin.wms. The following example is from AddWMSQueryPlugIn.java.
// Creates a WizardDialog in the current context, with given title. WizardDialog d = new WizardDialog(context.getWorkbenchFrame(), "Connect To Web Map Server", context.getErrorHandler() ); // Initializes the WizardDialog with four WizardPanels; the first is the first one to display. d.init(new WizardPanel[] { new URLWizardPanel(cachedURL), new MapLayerWizardPanel(), new SRSWizardPanel(), new OneSRSWizardPanel() }); |
Main Classes
Class |
Package |
---|---|
WizardPanel, WizardDialog |
org.locationtech.jts.jump.workbench.ui.wizard |
To Do
[1] Another option to consider is JavaWizardComponent (http://jwizardcomponent.sourceforge.net/) We. haven't tried this yet.
Related Documentation
For overviews, tutorials, examples, guides, and tool documentation, please see:-
Interface Summary Interface Description WizardContext WizardPanel -
Class Summary Class Description WizardDialog