|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
net.javaprog.ui.wizard.Wizard
public class Wizard
The main component class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
HELP_LISTENER_PROPERTY
The property name for the help listener. |
protected Icon |
icon
An icon representing the wizard. |
static String |
ICON_PROPERTY
The property name for the icon. |
protected WizardModel |
model
The wizard's model. |
static String |
MODEL_PROPERTY
The property name for the wizard model. |
static String |
STEP_DESCRIPTION_RENDERER_PROPERTY
The property name for the step description renderer. |
static String |
STEP_LIST_RENDERER_PROPERTY
The property name for the step list renderer. |
protected StepDescriptionRenderer |
stepDescriptionRenderer
The renderer for the step description. |
protected StepListRenderer |
stepListRenderer
The renderer for the step list. |
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
Wizard()
Creates a new wizard with a dummy model and the title string "Wizard". |
|
Wizard(Frame parent,
WizardModel model,
String title)
Creates a new wizard from the given model with the given title. |
|
Wizard(Frame parent,
WizardModel model,
String title,
Icon icon)
Creates a new wizard from the given model with the given title and icon. |
|
Wizard(WizardModel model,
String title)
Creates a new wizard from the given model with the given title. |
|
Wizard(WizardModel model,
String title,
Icon icon)
Creates a new wizard from the given model with the given title and icon. |
|
| Method Summary | |
|---|---|
void |
enableHelp(ActionListener listener)
Enables help using the given action listener. |
Icon |
getIcon()
Returns the icon that is used to represent the wizard. |
ImageIcon |
getImageIcon()
Deprecated. As of version 0.1.4 replaced by getIcon() |
WizardModel |
getModel()
Returns the wizard's model. |
StepDescriptionRenderer |
getStepDescriptionRenderer()
Returns the renderer for the step description. |
StepListRenderer |
getStepListRenderer()
Returns the renderer for the step list. |
void |
setIcon(Icon icon)
Sets the icon that is used to represent the wizard. |
void |
setModel(WizardModel model)
Sets the wizard's model. |
void |
setStepDescriptionRenderer(StepDescriptionRenderer renderer)
Overrides the step description renderer property. |
void |
setStepListRenderer(StepListRenderer renderer)
Overrides the step list renderer property. |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String STEP_LIST_RENDERER_PROPERTY
setStepListRenderer(net.javaprog.ui.wizard.StepListRenderer),
getStepListRenderer(),
Constant Field Valuespublic static final String STEP_DESCRIPTION_RENDERER_PROPERTY
setStepDescriptionRenderer(net.javaprog.ui.wizard.StepDescriptionRenderer),
getStepDescriptionRenderer(),
Constant Field Valuespublic static final String HELP_LISTENER_PROPERTY
enableHelp(ActionListener),
Constant Field Valuespublic static final String ICON_PROPERTY
setIcon(javax.swing.Icon),
getIcon(),
Constant Field Valuespublic static final String MODEL_PROPERTY
getModel(),
setModel(net.javaprog.ui.wizard.WizardModel),
Constant Field Valuesprotected WizardModel model
getModel()protected Icon icon
getImageIcon()protected StepListRenderer stepListRenderer
getStepListRenderer(),
setStepListRenderer(StepListRenderer)protected StepDescriptionRenderer stepDescriptionRenderer
getStepDescriptionRenderer(),
setStepDescriptionRenderer(StepDescriptionRenderer)| Constructor Detail |
|---|
public Wizard()
public Wizard(WizardModel model,
String title)
model - the wizard's step modeltitle - the string displayed in the dialog's title bar
public Wizard(Frame parent,
WizardModel model,
String title)
parent - the wizard's parent frame.model - the wizard's step modeltitle - the string displayed in the dialog's title bar
public Wizard(WizardModel model,
String title,
Icon icon)
model - the wizard's step modeltitle - the string displayed in the dialog's title baricon - the icon representing the wizardgetModel(),
getImageIcon()
public Wizard(Frame parent,
WizardModel model,
String title,
Icon icon)
parent - the wizard's parent frame.model - the wizard's step modeltitle - the string displayed in the dialog's title baricon - the icon representing the wizardgetModel(),
getIcon()| Method Detail |
|---|
public WizardModel getModel()
setModel(net.javaprog.ui.wizard.WizardModel)public void setModel(WizardModel model)
model - the wizards modelgetModel()public ImageIcon getImageIcon()
getIcon()
public Icon getIcon()
public void setIcon(Icon icon)
icon - the new icon for the wizard.public StepListRenderer getStepListRenderer()
public void setStepListRenderer(StepListRenderer renderer)
renderer - the new object to render to step listpublic StepDescriptionRenderer getStepDescriptionRenderer()
public void setStepDescriptionRenderer(StepDescriptionRenderer renderer)
renderer - the new object to renderer the step descriptionpublic void enableHelp(ActionListener listener)
JavaHelpSupport.
listener - the ActionListener to notify on help requests
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||