|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.wizards.document.InsertListChooserWizard
public class InsertListChooserWizard
Allows the user to choose between multiple insertlists, and to choose the name of each element. These user settings are returned. Alternatively, user may choose to enter some text if it is permitted by the rule.
If required, then new prefixes are queried aswell.
Field Summary | |
---|---|
protected NamespaceManager |
currentManager
Current namespace manager. |
InsertListChooserWizardPage |
ilcPage
First wizard page. |
protected String |
title
The title. |
Constructor Summary | |
---|---|
InsertListChooserWizard(XMLAccess xmlAccess,
List<InsertList> insertLists,
NamespaceManager nsManager,
String parentName,
IValueRule textRule,
String name)
The constructor. |
Method Summary | |
---|---|
boolean |
canFinish()
Returns whether this wizard could be finished without further user interaction. |
BaseWizardPage |
current()
Fetches the current page. |
void |
dispose()
Disposes of this wizard. |
String |
getName()
Returns name of this wizard. |
List<QName> |
getNames()
Returns qnames of new elements, with appropriate prefixes when needed. |
NewPrefixesQueryWizardPage |
getNpqPage()
Returns second wizard page. |
RGB |
getTitleBarColor()
Returns the title bar color for this wizard. |
boolean |
hasNext()
Checks if there is next page. |
boolean |
hasPrevious()
Checks if there is previous page. |
NamespaceManager |
newNsManager()
Creates new namespace manager, with new namespace-prefix mappings. |
BaseWizardPage |
next()
Fetches the next page. |
boolean |
performCancel()
Performs any actions appropriate in response to the user having pressed the Cancel button, or refuse if canceling now is not permitted. |
boolean |
performFinish()
Performs any actions appropriate in response to the user having pressed the Finish button, or refuse if finishing now is not permitted. |
BaseWizardPage |
previous()
Fetches the previous page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final InsertListChooserWizardPage ilcPage
null
.
protected final NamespaceManager currentManager
protected final String title
Constructor Detail |
---|
public InsertListChooserWizard(XMLAccess xmlAccess, List<InsertList> insertLists, NamespaceManager nsManager, String parentName, IValueRule textRule, String name)
xmlAccess
- the XML Access instance.insertLists
- the list of choosable insertlists.nsManager
- the map of namespace>prefix mapping. It will not get
modified. If null
then manager from xmlAccess
will be used.parentName
- the displayable qname of the parent. It is only
displayed in a window as a text - it is not used in other way.textRule
- if not null
then it is possible to choose
a text value also. This value must comply this rule.name
- the wizard title. Each page will receive this title.Method Detail |
---|
public NewPrefixesQueryWizardPage getNpqPage()
null
when wizard is on the
first page.
public NamespaceManager newNsManager()
IllegalArgumentException
- if the page contains errors thus some
prefixes cannot be registered.
IllegalStateException
- if the page contains errors thus some
prefixes cannot be registered.public boolean canFinish()
IWizard
The result of this method is typically used by the wizard container to enable or disable the Finish button.
canFinish
in interface IWizard
true
if the wizard could be finished, and
false
otherwisepublic void dispose()
IWizard
dispose
in interface IWizard
public boolean hasNext()
IWizard
false
if current page contains errors.
hasNext
in interface IWizard
true
if there is next wizard or false
if next()
will fail.public boolean hasPrevious()
IWizard
hasPrevious
in interface IWizard
true
if there is previous wizard or
false
if previous()
will fail.public BaseWizardPage next()
IWizard
hasNext()
returned true
- it may throw
ProviderException
.
next
in interface IWizard
MultiWizard
initializes it for you. Never
null
.public BaseWizardPage previous()
IWizard
previous
in interface IWizard
public boolean performCancel()
IWizard
performCancel
in interface IWizard
true
to indicate the cancel request was accepted,
and false
to indicate that the cancel request was refusedpublic boolean performFinish()
IWizard
performFinish
in interface IWizard
true
to indicate the finish request was accepted,
and false
to indicate that the finish request was refusedpublic List<QName> getNames()
null
.public BaseWizardPage current()
IWizard
current
in interface IWizard
null
only if the provider
provides no pages.public String getName()
IWizard
getName
in interface IWizard
public RGB getTitleBarColor()
IWizard
getTitleBarColor
in interface IWizard
null
if default should be
used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |