|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.japisoft.framework.wizard.BasicWizardStep
Facility for creating a wizard. By default this step will enabled the next
step and the previous step, if you want to change this behavior, you must
override the start method. It is advised to create your WizardStep by
overriding this class.
| Field Summary | |
protected WizardStepContext |
currentContext
|
| Constructor Summary | |
BasicWizardStep(java.lang.String name)
|
|
BasicWizardStep(java.lang.String name,
java.lang.String shortTitle,
java.lang.String longTitle,
javax.swing.Icon smallIcon,
javax.swing.Icon largeIcon,
StepView view)
|
|
BasicWizardStep(java.lang.String name,
java.lang.String shortTitle,
java.lang.String longTitle,
StepView view)
|
|
| Method Summary | |
boolean |
canStart(WizardStepContext context)
Called before the wizard step is started. |
javax.swing.Icon |
getLargeIcon()
|
java.lang.String |
getLongTitle()
|
java.lang.String |
getName()
|
java.lang.String |
getShortTitle()
|
javax.swing.Icon |
getSmallIcon()
|
StepView |
getStepView()
This is the user interface part for the wizard step |
boolean |
isEnabled()
|
protected boolean |
mustAcceptNextByDefault()
|
protected boolean |
mustAcceptPreviousByDefault()
|
void |
setAcceptNextActionByDefault(boolean acceptNext)
Decide to accept the next action automatically. |
void |
setAcceptPreviousActionByDefault(boolean acceptPrevious)
Decide to accept the previous action automatically. |
void |
setEnabled(boolean enabled)
Enabled or disable this wizard step. |
void |
setLargeIcon(javax.swing.Icon icon)
|
void |
setLongTitle(java.lang.String title)
|
void |
setShortTitle(java.lang.String title)
|
void |
setSmallIcon(javax.swing.Icon icon)
|
void |
setView(StepView component)
|
boolean |
start(WizardStepContext context)
Called when the wizard step is started, so the final user can interact with the view provided by the getView method |
void |
stop(WizardStepContext context)
Called before a new wizard step is started |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected WizardStepContext currentContext
| Constructor Detail |
public BasicWizardStep(java.lang.String name)
name - Name of this wizard
public BasicWizardStep(java.lang.String name,
java.lang.String shortTitle,
java.lang.String longTitle,
StepView view)
name - Name of this wizardshortTitle - Label for the left part, it can't be nulllongTitle - Label for the top partview - Main wizard component
public BasicWizardStep(java.lang.String name,
java.lang.String shortTitle,
java.lang.String longTitle,
javax.swing.Icon smallIcon,
javax.swing.Icon largeIcon,
StepView view)
name - Name of this wizardshortTitle - Label for the left part, it can't be nulllongTitle - Label for the top partview - Main wizard component| Method Detail |
public java.lang.String getName()
getName in interface WizardSteppublic boolean isEnabled()
isEnabled in interface WizardSteptrue if the wizard step is accessiblepublic void setEnabled(boolean enabled)
public void setShortTitle(java.lang.String title)
public java.lang.String getShortTitle()
getShortTitle in interface WizardSteppublic java.lang.String getLongTitle()
getLongTitle in interface WizardSteppublic void setLongTitle(java.lang.String title)
public StepView getStepView()
WizardStep
getStepView in interface WizardSteppublic void setView(StepView component)
public javax.swing.Icon getSmallIcon()
getSmallIcon in interface WizardSteppublic void setSmallIcon(javax.swing.Icon icon)
public javax.swing.Icon getLargeIcon()
getLargeIcon in interface WizardSteppublic void setLargeIcon(javax.swing.Icon icon)
public void setAcceptNextActionByDefault(boolean acceptNext)
true
protected boolean mustAcceptNextByDefault()
true meaning the Next button will by activatedpublic void setAcceptPreviousActionByDefault(boolean acceptPrevious)
true
protected boolean mustAcceptPreviousByDefault()
true meaning the Next button will by activatedpublic boolean canStart(WizardStepContext context)
WizardStepfalse then the
step will be canceled and the wizard will stay to the current one
canStart in interface WizardStepcontext - The wizard step context
true valuepublic boolean start(WizardStepContext context)
WizardStepgetView method
start in interface WizardStepcontext - Information about the wizard step
true when it accept to be started else the current wizard step will be skippedpublic void stop(WizardStepContext context)
WizardStep
stop in interface WizardStepcontext - Information about the wizard step
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||