|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IWizard
Interface for a wizard. A wizard maintains a list of wizard pages, stacked on top of each other in card layout fashion.
The hasNext() will be queried only in case that the active
wizard can finish - this is because next wizard may depend on the contents of
active wizard.
Initially the object is be positioned over first wizard (current()
returns first wizard). If the provider does not contain any wizards then it
may return null.
When the WizardDialog closes, the pages are disposed
automatically, but the wizard is not and must be disposed manually. Thus,
undisposed wizard may contain disposed pages.
| Method Summary | |
|---|---|
boolean |
canFinish()
Returns whether this wizard could be finished without further user interaction. |
BaseWizardPage |
current()
Fetches the current page. |
void |
dispose()
Disposes of this wizard. |
String |
getName()
Returns name of this wizard. |
RGB |
getTitleBarColor()
Returns the title bar color for this wizard. |
boolean |
hasNext()
Checks if there is next page. |
boolean |
hasPrevious()
Checks if there is previous page. |
BaseWizardPage |
next()
Fetches the next page. |
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. |
BaseWizardPage |
previous()
Fetches the previous page. |
| Method Detail |
|---|
void dispose()
RGB getTitleBarColor()
null if default should be
used.boolean performCancel()
true to indicate the cancel request was accepted,
and false to indicate that the cancel request was refusedboolean performFinish()
true to indicate the finish request was accepted,
and false to indicate that the finish request was refusedBaseWizardPage current()
null only if the provider
provides no pages.
BaseWizardPage next()
throws ProviderException
hasNext()
returned true - it may throw
ProviderException.
MultiWizard initializes it for you. Never
null.
NoSuchElementException - if there is no next page.
ProviderException - if next page instance cannot be constructed
because of to some unexpected error. In such case, wizard stays at
current page, exception is logged and an error dialog is shown.BaseWizardPage previous()
NoSuchElementException - if current page is the first
wizard.boolean hasNext()
false
if current page contains errors.
true if there is next wizard or false
if next() will fail.boolean hasPrevious()
true if there is previous wizard or
false if previous() will fail.boolean 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 otherwiseString getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||