sk.uniba.euromath.editor.wizards.document
Class FillNewElementWizardProvider.CreateElementContentsWS

java.lang.Object
  extended by sk.uniba.euromath.editor.wizards.document.FillNewElementWizardProvider.CreateElementContentsWS
All Implemented Interfaces:
FillNewElementWizardProvider.WizardStep
Enclosing class:
FillNewElementWizardProvider

protected class FillNewElementWizardProvider.CreateElementContentsWS
extends Object
implements FillNewElementWizardProvider.WizardStep

Creates new elements or text nodes in new element. This element should already contain attributes, to select correct rule amongst similar rules.

Author:
Martin Vysny

Field Summary
protected  Element e
          the new element.
protected  List<InsertList> insertLists
          User may select between these insertlists.
protected  NamespaceManager nsManager
          current namespace manager.
protected  NewElementRule rule
          rule for this new element.
protected  InsertListChooserWizard wizard
          The wizard instance.
 
Constructor Summary
protected FillNewElementWizardProvider.CreateElementContentsWS(NewElementRule rule, Element e, NamespaceManager nsManager)
          Constructor.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rule

protected final NewElementRule rule
rule for this new element.


e

protected final Element e
the new element. Must not contain any elements nor attributes.


nsManager

protected final NamespaceManager nsManager
current namespace manager. won't get modified.


wizard

protected InsertListChooserWizard wizard
The wizard instance.


insertLists

protected List<InsertList> insertLists
User may select between these insertlists.

Constructor Detail

FillNewElementWizardProvider.CreateElementContentsWS

protected FillNewElementWizardProvider.CreateElementContentsWS(NewElementRule rule,
                                                               Element e,
                                                               NamespaceManager nsManager)
Constructor.

Parameters:
rule - rule for this new element.
e - the new element. Must not contain any elements nor attributes.
nsManager - current namespace manager. won't get modified.
Method Detail

getWizard

public IWizard getWizard()
Description copied from interface: FillNewElementWizardProvider.WizardStep
Returns wizard that allows user to enter data required for this step to be finished succesfully.

Specified by:
getWizard in interface FillNewElementWizardProvider.WizardStep
Returns:
wizard instance. Each call to this method should return same instance of wizard.

getContextElement

public Element getContextElement()
Description copied from interface: FillNewElementWizardProvider.WizardStep
Returns element where this step creates contents.

Specified by:
getContextElement in interface FillNewElementWizardProvider.WizardStep
Returns:
the element whose attributes or children are being created by this step.

hasNextSteps

public boolean hasNextSteps()
Description copied from interface: FillNewElementWizardProvider.WizardStep
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.

Specified by:
hasNextSteps in interface FillNewElementWizardProvider.WizardStep
Returns:
true if there are still more steps.

moveToNextStep

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

Specified by:
moveToNextStep in interface FillNewElementWizardProvider.WizardStep
Returns:
next step, or empty array if no more steps are required. Never null.

rollbackFromNextStep

public void rollbackFromNextStep()
Description copied from interface: FillNewElementWizardProvider.WizardStep
May be called after call to moveToNextStep() if user wishes to rollback next step and return to this one.

Specified by:
rollbackFromNextStep in interface FillNewElementWizardProvider.WizardStep


Copyright © 2003-2006 null. All Rights Reserved.