|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMultiWizardProvider
Provides wizards for the MultiWizard class.
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
.
Method Summary | |
---|---|
IWizard |
current()
Fetches the current wizard. |
void |
dispose()
Provider should dispose any objects it collected. |
String |
getName()
Returns name of this wizard. |
boolean |
hasNext()
Checks if there is next wizard. |
boolean |
hasPrevious()
Checks if there is previous wizard. |
IWizard |
next()
Fetches the next wizard. |
void |
performCancel()
Called when all opened wizards (from first wizard to current wizard) have already been cancelled. |
void |
performFinish()
Called when all wizards (from first wizard to current wizard) have already been finished. |
IWizard |
previous()
Fetches the previous wizard. |
void |
setWizard(MultiWizard wizard)
Sets the multi-wizard object instance, that'll navigate user through other wizards using this provider. |
Method Detail |
---|
void performFinish()
void performCancel()
void dispose()
MultiWizard
.
void setWizard(MultiWizard wizard)
wizard
- the wizard that'll use this provider.IWizard current()
null
only if the
provider provides no wizards.IWizard next() throws ProviderException
hasNext()
returned true
- it may throw
ProviderException
.
MultiWizard
initializes it for you. Never
null
.
NoSuchElementException
- if there is no next wizard.
ProviderException
- if next wizard instance cannot be constructed
thanks to some unexpected error. In such case, wizard stays at current
page, exception is logged and an error dialog is shown.IWizard previous()
NoSuchElementException
- if current wizard is the first
wizard.boolean hasNext()
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.String getName()
null
then the name is collected from child wizards.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |