|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.wizards.BaseWizardPage sk.uniba.euromath.editor.wizards.document.InsertListChooserWizardPage
public class InsertListChooserWizardPage
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.
Field Summary | |
---|---|
protected List<InsertList> |
insertLists
Insertlists. |
protected NamespaceManager |
nsManager
Current namespace manager. |
protected String |
parentName
The displayable qname of the parent. |
protected IValueRule |
textRule
User may choose to enter text contents of an element instead. |
protected XMLAccess |
xmlAccess
The XML Access instance. |
Fields inherited from class sk.uniba.euromath.editor.wizards.BaseWizardPage |
---|
name |
Constructor Summary | |
---|---|
InsertListChooserWizardPage(XMLAccess xmlAccess,
List<InsertList> insertLists,
NamespaceManager nsManager,
String parentName,
IValueRule textRule,
String title)
The constructor. |
Method Summary | |
---|---|
InsertListChooser |
getWidget()
Returns the widget. |
protected Control |
handleCreateControl(Composite parent)
Creates the top level control for this dialog page under the given parent composite. |
void |
handleDispose()
Disposes the resources allocated by this dialog page. |
protected void |
validatePage()
Validates the page and shows appropriate error message if necessary. |
Methods inherited from class sk.uniba.euromath.editor.wizards.BaseWizardPage |
---|
getContext, hasErrors, setMessages, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final XMLAccess xmlAccess
protected final List<InsertList> insertLists
protected final IValueRule textRule
protected final String parentName
protected final NamespaceManager nsManager
Constructor Detail |
---|
public InsertListChooserWizardPage(XMLAccess xmlAccess, List<InsertList> insertLists, NamespaceManager nsManager, String parentName, IValueRule textRule, String title)
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.title
- optional title. If null
then default one is
used.Method Detail |
---|
public InsertListChooser getWidget()
protected Control handleCreateControl(Composite parent)
BaseWizardPage
Creates the top level control for this dialog page under the given parent composite.
This method is called only once.
handleCreateControl
in class BaseWizardPage
parent
- the parent composite
protected void validatePage()
public void handleDispose()
BaseWizardPage
handleDispose
in class BaseWizardPage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |