sk.uniba.euromath.editor.wizards.document
Interface FillNewElementWizardProvider.WizardStep

All Known Implementing Classes:
FillNewElementWizardProvider.CreateAttributesWS, FillNewElementWizardProvider.CreateElementContentsWS
Enclosing class:
FillNewElementWizardProvider

protected static interface FillNewElementWizardProvider.WizardStep

Represents one step in wizard.

Author:
Martin Vysny

Method Summary
 Element getContextElement()
          Returns element where this step creates contents.
 IWizard getWizard()
          Returns wizard that allows user to enter data required for this step to be finished succesfully.
 boolean hasNextSteps()
          Checks whether moveToNextStep() will return non-empty list.
 List<FillNewElementWizardProvider.AbstractStepFactory> moveToNextStep()
          Finishes this step and moves to the next step.
 void rollbackFromNextStep()
          May be called after call to moveToNextStep() if user wishes to rollback next step and return to this one.
 

Method Detail

getWizard

IWizard getWizard()
Returns wizard that allows user to enter data required for this step to be finished succesfully.

Returns:
wizard instance. Each call to this method should return same instance of wizard.

getContextElement

Element getContextElement()
Returns element where this step creates contents.

Returns:
the element whose attributes or children are being created by this step.

hasNextSteps

boolean hasNextSteps()
Checks whether moveToNextStep() will return non-empty list. It does not finish this step. May be called multiple times. getWizard().canFinish() is granted to be true, and getWizard() has already been invoked.

Returns:
true if there are still more steps.

moveToNextStep

List<FillNewElementWizardProvider.AbstractStepFactory> moveToNextStep()
Finishes this step and moves to the next step. getWizard().canFinish() is granted to be true, and getWizard() has already been invoked.

Returns:
next step, or empty array if no more steps are required. Never null.

rollbackFromNextStep

void rollbackFromNextStep()
May be called after call to moveToNextStep() if user wishes to rollback next step and return to this one.



Copyright © 2003-2006 null. All Rights Reserved.