|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Wizard
Wizard component.
| Method Summary | |
|---|---|
void |
addAndLinkPage(java.lang.String name,
java.awt.Component page)
Adds a page to the wizard and links it into the sequence manager's list. |
void |
addPage(java.lang.String name,
java.awt.Component page)
Adds a page to the wizard, but does not link it into the sequence manager's list. |
void |
addWizardListener(WizardListener listener)
Adds a wizard event listener. |
boolean |
canCancel()
Determines if we can cancel the wizard dialog at this point. |
void |
cancel()
Cancels the wizard. |
boolean |
canFinish()
Determines if we can finish the wizard dialog at this point. |
boolean |
canMoveBackward()
Determines if we can return to the previous page. |
boolean |
canMoveForward()
Determines if we can advance to the next page. |
void |
clearPages()
Clears the wizard pages. |
void |
close()
Closes the wizard. |
void |
displayBack()
Displays the previous page. |
void |
displayFirst()
Displays the first page in the sequence. |
void |
displayNext()
Displays the next page. |
void |
displayPage(java.lang.String name)
Shows a particular page and updates the navigator. |
void |
finish()
Finishes the wizard. |
WizardDataModel |
getDataModel()
Gets the data collection model holding the data of the pages. |
javax.swing.ImageIcon |
getDefaultBackgroundImage()
Gets the default background image. |
javax.swing.ImageIcon |
getDefaultWizardImage()
Gets the default wizard image. |
SequenceManager |
getManager()
Gets the page sequence manager. |
java.awt.Component |
getPage(java.lang.String name)
Gets a page by its name. |
java.util.Iterator |
getPageNames()
Gets the list of page names. |
java.lang.String |
getPageResourcePrefix()
Gets the optional resource prefix for wizard page resources. |
java.lang.String |
getPageResourceString(java.lang.String pageName,
java.lang.String suffix)
Gets a text resource for the specified page from the wizard resource. |
java.util.Iterator |
getPages()
Gets the list of pages. |
ResourceCollection |
getResource()
Gets the wizard resource. |
java.lang.String |
getResultPageName()
Gets the wizard result page name. |
boolean |
hasBackward()
Determines if there is a previous page. |
boolean |
hasForward()
Determines if there is a next page. |
void |
removePage(java.lang.String name)
Removes a page from the wizard and the sequence manager. |
void |
removeWizardListener(WizardListener listener)
Removes a wizard event listener. |
void |
setDataModel(WizardDataModel model)
Sets the data collection model holding the data of the pages. |
void |
setDefaultBackgroundImage(javax.swing.ImageIcon defaultBackgroundImage)
Sets the default background image. |
void |
setDefaultWizardImage(javax.swing.ImageIcon defaultWizardImage)
Sets the default wizard image. |
void |
setManager(SequenceManager manager)
Sets the page sequence manager. |
void |
setPageResourcePrefix(java.lang.String pageResourcePrefix)
Sets the optional resource prefix for wizard page resources. |
void |
setResultPage(java.lang.String resultPageName,
java.awt.Component page)
Adds a result page to the wizard. |
void |
setResultPageName(java.lang.String resultPageName)
Sets the wizard result page name. |
void |
setShowHelp(boolean showHelp)
Sets the show help. |
void |
setWizardResource(ResourceCollection wizardResourceCollection)
Sets the wizard resource. |
void |
updateNavigator()
Updates the navigation bar. |
| Method Detail |
|---|
void addAndLinkPage(java.lang.String name,
java.awt.Component page)
name - Name of the page. Use this name for any sequence
manager operations (see getManager()).page - page to add.
The page should be a subclass of WizardPage
void addPage(java.lang.String name,
java.awt.Component page)
getManager()) to
define the order the pages will appear.
name - Name of the page. Use this name for any sequence
manager operations (see getManager()).page - page to add.
The page should be a subclass of WizardPagevoid removePage(java.lang.String name)
name - Name of the pagejava.awt.Component getPage(java.lang.String name)
name - Name of the page or null for the current page
WizardPage)java.util.Iterator getPageNames()
java.util.Iterator getPages()
java.lang.String getResultPageName()
addPage(java.lang.String, java.awt.Component) method.
void setResultPageName(java.lang.String resultPageName)
addPage(java.lang.String, java.awt.Component) method.
resultPageName - The name of the result page or null for no result page
void setResultPage(java.lang.String resultPageName,
java.awt.Component page)
addPage(java.lang.String, java.awt.Component) + setResultPageName(java.lang.String)
resultPageName - The name of the result page or null for no result pagepage - Page component to add (usually a WizardPage)void clearPages()
void displayFirst()
void displayBack()
void displayNext()
void finish()
void cancel()
void close()
boolean canMoveBackward()
boolean hasBackward()
boolean canMoveForward()
boolean hasForward()
boolean canFinish()
boolean canCancel()
void displayPage(java.lang.String name)
name - Name of the page to show or null for the current onevoid updateNavigator()
setDataModel(WizardDataModel)) has changed its status and wants to update the state of the navigation
bar buttons accordingly.
void addWizardListener(WizardListener listener)
listener - Listenervoid removeWizardListener(WizardListener listener)
listener - ListenerWizardDataModel getDataModel()
void setDataModel(WizardDataModel model)
SequenceManager getManager()
void setManager(SequenceManager manager)
ResourceCollection getResource()
void setWizardResource(ResourceCollection wizardResourceCollection)
java.lang.String getPageResourcePrefix()
void setPageResourcePrefix(java.lang.String pageResourcePrefix)
void setShowHelp(boolean showHelp)
javax.swing.ImageIcon getDefaultWizardImage()
void setDefaultWizardImage(javax.swing.ImageIcon defaultWizardImage)
javax.swing.ImageIcon getDefaultBackgroundImage()
void setDefaultBackgroundImage(javax.swing.ImageIcon defaultBackgroundImage)
java.lang.String getPageResourceString(java.lang.String pageName,
java.lang.String suffix)
pageName - Name of the wizard pagesuffix - Suffix to use for the the resource item name generation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||