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

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

protected class FillNewElementWizardProvider.CreateAttributesWS
extends Object
implements FillNewElementWizardProvider.WizardStep

Step that allows user to create attributes in newly created element.

Author:
Martin Vysny

Field Summary
protected  List<AttributeListRule> attrRules
          Rules for possible new attributes, as required by the schema.
protected  Element e
          the new element.
protected  NamespaceManager nsManager
          current namespace manager.
protected  NewElementRule rule
          rule for this new element.
protected  CreateAttributeListWizard wizard
          The wizard instance.
 
Constructor Summary
protected FillNewElementWizardProvider.CreateAttributesWS(NewElementRule rule, Element e, NamespaceManager nsManager)
          Constructor.
 
Method Summary
 Element getContextElement()
          Returns element where this step creates contents.
 CreateAttributeListWizard 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.


attrRules

protected final List<AttributeListRule> attrRules
Rules for possible new attributes, as required by the schema.


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 CreateAttributeListWizard wizard
The wizard instance.

Constructor Detail

FillNewElementWizardProvider.CreateAttributesWS

protected FillNewElementWizardProvider.CreateAttributesWS(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 CreateAttributeListWizard 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.