|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Wizard
A wizard is a collection of dialog components that guide the user through a sequence of steps required to perform a particular task. This top-level interface defines the behaviour that is common to all wizards in a Spring Rich Client application.
The AbstractWizard
class provides an abstract implementation of this interface. However,
clients are also free to implement this interface directly if AbstractWizard
does not
suit their needs.
Method Summary | |
---|---|
void |
addPages()
Adds any last-minute pages to this wizard. |
void |
addWizardListener(WizardListener wizardListener)
Add a listener to this wizard |
boolean |
canFinish()
Returns whether this wizard could be finished without further user interaction. |
WizardContainer |
getContainer()
Returns the container managing the display of this wizard. |
Image |
getDefaultPageImage()
Returns the default page image for this wizard. |
String |
getId()
Returns this wizard's identifier. |
WizardPage |
getNextPage(WizardPage page)
Returns the successor of the given page. |
WizardPage |
getPage(String pageName)
Returns the wizard page with the given name belonging to this wizard. |
int |
getPageCount()
Returns the number of pages in this wizard. |
WizardPage[] |
getPages()
Returns all the pages in this wizard. |
WizardPage |
getPreviousPage(WizardPage page)
Returns the predecessor of the given page. |
WizardPage |
getStartingPage()
Returns the first page to be shown in this wizard. |
String |
getTitle()
Returns the window title string for this wizard. |
boolean |
needsPreviousAndNextButtons()
Returns whether this wizard needs Previous and Next buttons. |
boolean |
performCancel()
Performs any actions appropriate in response to the user having pressed the Cancel button, or refuse if canceling now is not permitted. |
boolean |
performFinish()
Performs any actions appropriate in response to the user having pressed the Finish button, or refuse if finishing now is not permitted. |
void |
removeWizardListener(WizardListener wizardListener)
Removes the given listener from this wizard. |
void |
setContainer(WizardContainer wizardContainer)
Sets or clears the container of this wizard. |
Method Detail |
---|
String getId()
String getTitle()
null
for no title.Image getDefaultPageImage()
This image can be used for pages which do not supply their own image.
void addPages()
This method is called by the wizard's container to add the pages.
WizardPage getStartingPage()
WizardPage getPreviousPage(WizardPage page)
page
- the page
null
if noneWizardPage getNextPage(WizardPage page)
page
- the page
null
if noneWizardPage getPage(String pageName)
pageName
- the name of the wizard page
null
if
noneint getPageCount()
WizardPage[] getPages()
WizardContainer getContainer()
void setContainer(WizardContainer wizardContainer)
wizardContainer
- the wizard container, or null
boolean needsPreviousAndNextButtons()
The result of this method is typically used by the container.
true
if Previous and Next buttons are required,
and false
if none are neededboolean canFinish()
The result of this method is typically used by the wizard container to enable or disable the Finish button.
true
if the wizard could be finished, and
false
otherwiseboolean performFinish()
true
to indicate the finish request was accepted,
and false
to indicate that the finish request was
refusedboolean performCancel()
true
to indicate the cancel request was accepted,
and false
to indicate that the cancel request was
refusedvoid addWizardListener(WizardListener wizardListener)
wizardListener
- The listener to be added.void removeWizardListener(WizardListener wizardListener)
wizardListener
- The listener to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |