sk.uniba.euromath.editor.wizards.document
Class InsertListChooserWizardPage

java.lang.Object
  extended by sk.uniba.euromath.editor.wizards.BaseWizardPage
      extended by sk.uniba.euromath.editor.wizards.document.InsertListChooserWizardPage

public class InsertListChooserWizardPage
extends BaseWizardPage

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.

Author:
Martin Vysny

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

xmlAccess

protected final XMLAccess xmlAccess
The XML Access instance.


insertLists

protected final List<InsertList> insertLists
Insertlists.


textRule

protected final IValueRule textRule
User may choose to enter text contents of an element instead.


parentName

protected final String parentName
The displayable qname of the parent. It is only displayed in a window as a text - it is not used in other way.


nsManager

protected final NamespaceManager nsManager
Current namespace manager.

Constructor Detail

InsertListChooserWizardPage

public InsertListChooserWizardPage(XMLAccess xmlAccess,
                                   List<InsertList> insertLists,
                                   NamespaceManager nsManager,
                                   String parentName,
                                   IValueRule textRule,
                                   String title)
The constructor.

Parameters:
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

getWidget

public InsertListChooser getWidget()
Returns the widget.

Returns:
underlying widget.

handleCreateControl

protected Control handleCreateControl(Composite parent)
Description copied from class: BaseWizardPage

Creates the top level control for this dialog page under the given parent composite.

This method is called only once.

Specified by:
handleCreateControl in class BaseWizardPage
Parameters:
parent - the parent composite
Returns:
the control.

validatePage

protected void validatePage()
Validates the page and shows appropriate error message if necessary.


handleDispose

public void handleDispose()
Description copied from class: BaseWizardPage
Disposes the resources allocated by this dialog page. The control is disposed automatically when this method ends.

Specified by:
handleDispose in class BaseWizardPage


Copyright © 2003-2006 null. All Rights Reserved.