|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.editor.wizards.document.FillNewElementWizardProvider
public class FillNewElementWizardProvider
Fills given element with new content. The element is expected to be freshly created and thus must not contain any children nodes nor attributes.
| Nested Class Summary | |
|---|---|
protected class |
FillNewElementWizardProvider.AbstractStepFactory
Produces new steps. |
protected class |
FillNewElementWizardProvider.CreateAttributesWS
Step that allows user to create attributes in newly created element. |
protected class |
FillNewElementWizardProvider.CreateElementContentsWS
Creates new elements or text nodes in new element. |
protected static interface |
FillNewElementWizardProvider.WizardStep
Represents one step in wizard. |
| Field Summary | |
|---|---|
protected FillNewElementWizardProvider.AbstractStepFactory |
firstFactory
The first factory. |
protected String |
name
The provider name. |
protected NamespaceManager |
startupManager
Namespace manager provided at construction time. |
protected List<FillNewElementWizardProvider.AbstractStepFactory> |
stepFactories
All wizard step factories. |
protected List<FillNewElementWizardProvider.WizardStep> |
visitedSteps
List of steps that have been already visited. |
protected XMLAccess |
xmlAccess
The document instance. |
| Constructor Summary | |
|---|---|
FillNewElementWizardProvider(Element element,
NewElementRule rule,
XMLAccess xmlAccess,
NamespaceManager nsMan,
String name)
Creates instance of the wizard. |
|
| Method Summary | |
|---|---|
IWizard |
current()
Fetches the current wizard. |
void |
dispose()
Provider should dispose any objects it collected. |
String |
getName()
Returns name of this wizard. |
protected FillNewElementWizardProvider.AbstractStepFactory |
getNextStep(NewElementRule rule,
Element e)
Determines which step is to be taken next. |
boolean |
hasNext()
Checks if there is next wizard. |
boolean |
hasPrevious()
Checks if there is previous wizard. |
NamespaceManager |
newNsManager()
Determines and returns active namespace manager. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String name
protected final XMLAccess xmlAccess
protected final List<FillNewElementWizardProvider.AbstractStepFactory> stepFactories
protected final List<FillNewElementWizardProvider.WizardStep> visitedSteps
next() and is
currently interacting with user. This list is consistent with the
stepFactories: i-th factory has produced i-th step.
protected final FillNewElementWizardProvider.AbstractStepFactory firstFactory
null - in this case no element
content needs to be created and this provider provides no wizards. If not
null and stepFactories has at least one
item, then stepFactories.get(0)==firstFactory.
protected final NamespaceManager startupManager
| Constructor Detail |
|---|
public FillNewElementWizardProvider(Element element,
NewElementRule rule,
XMLAccess xmlAccess,
NamespaceManager nsMan,
String name)
element - the element to be filled. The element is expected to be
freshly created and thus must not contain any children nodes nor
attributes.rule - the rule for contents of the element.xmlAccess - the document instance.nsMan - actual namespace manager. It won't get modified. If
null then xmlAccess current namespace
manager is taken.name - the name of the activity provided by this provider. If
null then default name is used.| Method Detail |
|---|
protected FillNewElementWizardProvider.AbstractStepFactory getNextStep(NewElementRule rule,
Element e)
rule - rule for element e.e - the element. It may already have attributes created.
null if there are no
required elements and/or attributes in given rule.public void performCancel()
IMultiWizardProvider
performCancel in interface IMultiWizardProviderpublic void performFinish()
IMultiWizardProvider
performFinish in interface IMultiWizardProviderpublic IWizard current()
IMultiWizardProvider
current in interface IMultiWizardProvidernull only if the
provider provides no wizards.public boolean hasNext()
IMultiWizardProvider
hasNext in interface IMultiWizardProvidertrue if there is next wizard or false
if next() will fail.public boolean hasPrevious()
IMultiWizardProvider
hasPrevious in interface IMultiWizardProvidertrue if there is previous wizard or
false if previous() will fail.public IWizard next()
IMultiWizardProviderhasNext() returned true - it may throw
ProviderException.
next in interface IMultiWizardProviderMultiWizard initializes it for you. Never
null.public NamespaceManager newNsManager()
public IWizard previous()
IMultiWizardProvider
previous in interface IMultiWizardProviderpublic void dispose()
IMultiWizardProviderMultiWizard.
dispose in interface IMultiWizardProviderpublic void setWizard(MultiWizard wizard)
IMultiWizardProvider
setWizard in interface IMultiWizardProviderwizard - the wizard that'll use this provider.public String getName()
IMultiWizardProvider
getName in interface IMultiWizardProvidernull then the name is collected from child wizards.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||