|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.japisoft.framework.wizard.JWizard
Main component managing a wizard. All wizard step are
stored inside the WizardStepModel. Each step
implements the WizardStep interface for controlling the
wizard part behavior and look.
UIManager properties : - com.japisoft.jwizard.labelbg : Background color for the label steps - com.japisoft.jwizard.image : Image for the label steps
Key for the JWizard.properties resource bundle : - STEPS : Steps title - STEP : Step title - PREVIOUS : Previous button title - NEXT : Next button title - OK : Ok button title - CANCEL : Cancel button title
| Field Summary | |
static int |
CANCEL_ACTION
|
static int |
OK_ACTION
|
| Constructor Summary | |
JWizard()
|
|
| Method Summary | |
void |
addWizardListener(WizardListener listener)
Add a listener for the start / stop wizard step |
void |
dispose()
Free all inner resource, it must be called for helping the garbage collector to do the best job. |
javax.swing.Icon |
getImage()
|
protected java.lang.String |
getLabel(java.lang.String name,
java.lang.String defaultValue)
|
java.awt.Dimension |
getLabelsPreferredSize()
|
java.awt.Color |
getStepLabelsBackground()
|
WizardView |
getView()
|
java.awt.Dimension |
getViewPreferredSize()
|
WizardStepContext |
getWizardContext()
This method is useful to get all the sharedData from each Wizard step |
WizardStepModel |
getWizardStepModel()
|
boolean |
isNumberedStep()
|
boolean |
isWizardStepTitle()
|
void |
removeWizardListener(WizardListener listener)
Remove a listener for the start / stop wizard step |
void |
setImage(javax.swing.Icon image)
Set a background image for the wizard steps |
void |
setLabelsPreferredSize(java.awt.Dimension dim)
Set the preferred size for the left labels with the current wizard step |
void |
setNumberedStep(boolean numberedStep)
|
void |
setStepLabelsBackground(java.awt.Color color)
|
void |
setView(WizardView view)
Reset the default WizardView by this one |
void |
setViewPreferredSize(java.awt.Dimension dim)
Force a default dimension for the wizard step view |
void |
setWizardStepModel(WizardStepModel model)
Reset the model containing a set of wizard step |
void |
setWizardStepTitle(boolean wizardStepLabel)
Show a title for the wizard step. |
int |
show(java.awt.Dialog owner,
java.lang.String title)
A new dialog will be created including the wizard |
int |
show(java.awt.Frame owner,
java.lang.String title)
A new dialog will be created including the wizard |
int |
show(javax.swing.JDialog dialog,
boolean preparedDialog)
No new dialog will be created. |
int |
show(java.lang.String title)
A new dialog will be created including the wizard |
protected void |
startWizard(WizardStep step)
Start a particular wizard step, this is called by default for the first one |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int OK_ACTION
public static int CANCEL_ACTION
| Constructor Detail |
public JWizard()
| Method Detail |
public void setWizardStepModel(WizardStepModel model)
public WizardStepModel getWizardStepModel()
nullpublic void setView(WizardView view)
public WizardView getView()
nullpublic void setImage(javax.swing.Icon image)
public javax.swing.Icon getImage()
public boolean isNumberedStep()
true if each step is numbered. By default truepublic void setNumberedStep(boolean numberedStep)
numberedStep - Decide to show a number for each wizard steppublic void setWizardStepTitle(boolean wizardStepLabel)
true
public boolean isWizardStepTitle()
true if the wizard step has a major title
protected java.lang.String getLabel(java.lang.String name,
java.lang.String defaultValue)
protected void startWizard(WizardStep step)
public int show(java.awt.Frame owner,
java.lang.String title)
owner - The dialog parent ownertitle - Title of the dialog
public int show(java.awt.Dialog owner,
java.lang.String title)
owner - The dialog parent ownertitle - Title of the dialog
public int show(java.lang.String title)
title - Title of the dialog
public int show(javax.swing.JDialog dialog,
boolean preparedDialog)
dialog - A dialog that will contain the WizardpreparedDialog - Decide to include the wizard view automatically
public void setViewPreferredSize(java.awt.Dimension dim)
public java.awt.Dimension getViewPreferredSize()
public void setLabelsPreferredSize(java.awt.Dimension dim)
public java.awt.Dimension getLabelsPreferredSize()
public java.awt.Color getStepLabelsBackground()
public void setStepLabelsBackground(java.awt.Color color)
WHITEpublic WizardStepContext getWizardContext()
public void dispose()
public void addWizardListener(WizardListener listener)
public void removeWizardListener(WizardListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||