org.qdwizard
Class Wizard
- ActionListener
public abstract class Wizard
extends java.lang.Object
implements ActionListener
A Wizard dialog displaying one to many screens
static HashMap | data - Wizard data
|
Wizard(String sName, Class initial, ImageIcon icon, Frame parentWindow) - Wizard constructor (uses default locale)
|
Wizard(String sName, Class initial, ImageIcon icon, Frame parentWindow, Locale locale) - Wizard constructor
|
data
public static HashMap data
Wizard data
Wizard
public Wizard(String sName,
Class initial,
ImageIcon icon,
Frame parentWindow)
Wizard constructor (uses default locale)
sName
- Wizard name displayed in dialog titleinitial
- Initial screen classicon
- Wizard icon (null if no icon)parentWindow
- wizard parent window
Wizard
public Wizard(String sName,
Class initial,
ImageIcon icon,
Frame parentWindow,
Locale locale)
Wizard constructor
sName
- Wizard name displayed in dialog titleinitial
- Initial screen classicon
- Wizard icon (null if no icon)parentWindow
- wizard parent windowlocale
- Wizard locale
actionPerformed
public void actionPerformed(ActionEvent ae)
cancel
public void cancel()
Empty cancel action. Called when user clicks on "cancel". Override it if
you want to do something in cancel.
clearScreens
public void clearScreens()
Clear screens history
finish
public abstract void finish()
Finish action. Called when user clicks on "finish"
getCurrentScreen
public Class getCurrentScreen()
Get curent screen
getDialog
public JDialog getDialog()
access to the jdailog of the wizard, in case we need it (for instance to set a glasspane
when waiting)
getNextScreen
public abstract Class getNextScreen(Class screen)
getPreviousScreen
public abstract Class getPreviousScreen(Class screen)