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

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

public class CreateAttributeListWizardPage
extends BaseWizardPage

Manages the process of creating new attributes into newly created element. Attributes themselves are not created, their names and values are returned instead.

Author:
Martin Vysny

Field Summary
 NamespaceManager currentManager
          the current manager.
 List<AttributeListRule> listRules
          the list of lists of attribute.
 String parentName
          the name of the parent element.
 XMLAccess xmlAccess
          The document instance.
 
Fields inherited from class sk.uniba.euromath.editor.wizards.BaseWizardPage
name
 
Constructor Summary
CreateAttributeListWizardPage(List<AttributeListRule> listRules, String parentName, XMLAccess xmlAccess, NamespaceManager currentManager)
          Constructor.
 
Method Summary
 CreateAttributeList getWidget()
          Returns the widget.
 Control handleCreateControl(Composite parent)
           Creates the top level control for this dialog page under the given parent composite.
protected  void handleDispose()
          Disposes the resources allocated by this dialog page.
protected  boolean 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

listRules

public final List<AttributeListRule> listRules
the list of lists of attribute. Exactly one list will be chosen.


parentName

public final String parentName
the name of the parent element. Used only to display the name on the shell.


xmlAccess

public final XMLAccess xmlAccess
The document instance.


currentManager

public final NamespaceManager currentManager
the current manager. It won't get modified.

Constructor Detail

CreateAttributeListWizardPage

public CreateAttributeListWizardPage(List<AttributeListRule> listRules,
                                     String parentName,
                                     XMLAccess xmlAccess,
                                     NamespaceManager currentManager)
Constructor.

Parameters:
listRules - the list of lists of attribute. Exactly one list will be chosen.
parentName - the name of the parent element. Used only to display the name on the shell.
xmlAccess - the xml document instance.
currentManager - the current manager. It won't get modified.
Method Detail

getWidget

public CreateAttributeList getWidget()
Returns the widget.

Returns:
underlying widget.

handleCreateControl

public 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 boolean validatePage()
Validates the page and shows appropriate error message if necessary.

Returns:
true if page is OK.

handleDispose

protected 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.