Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage Class Reference

this class realize the main wizard page. a lot to generalize (performComponentRole() etc.) More...

List of all members.

Classes

class  AttributeSelectionListener
 the selection listener for the attributes. More...

Public Member Functions

boolean canFlipToNextPage ()
void checkReferenceConstraints ()
 checks if all references are defined. e.g. a port must have an interface reference!
void createControl (Composite parent)
 EditableViewMainWizardPage (String pageName, Role myRole, String title, String startstring, String description, EditableViewWizard myWizard, Vector< String > usedidentifiers, boolean done)
 the constructor.
String getActualidentifier ()
LinkedHashMap< String, Button > getButtonspecifications ()
LinkedHashMap< String, Combo > getNeededattributescombos ()
boolean isNofinishallowed ()
void performFinish ()
 handles the special information for the element to add after the finish button was pressed.
void setNofinishallowed (boolean nofinishallowed)
void updateUserInfos ()
 updates the user info via the setMessage("...") method.

Protected Member Functions

void validateInput (Text text)
 Validates the input.

Protected Attributes

Vector< String > alreadyUsedIdentifiers = null
 vector to save all used identifier (needed e.g. for the feature creation).
boolean blockattributeselection = false
 to prevent loops inside the attribute selection class
LinkedHashMap< String, Button > buttonspecifications = null
 map to collect all buttons according to their importance.
CLabel hint = null
 the referencepage hint
Text text = null
 the text field for the identifier of the element.

Private Member Functions

boolean checkIfThereIsAnEditablePage ()
 Checks if there is an editable page.
boolean checkNeededAttributeConstraints (String id)
 checks if the attribute are avaiable for the role. e.g. a port can't defined with an inout direction attribute.
void handleNeededAttributes (Composite parent)
 builds up the needed attributes automatically.
void handleOptionalButton (Button button)
void handleSpecifications (Composite parent)
 builds up the attribute specifications.
void initializeValidator ()
 initialize the validator for the input name.

Private Attributes

String actualidentifier = null
 the actualidentifier.
Group identgroup = null
 the first group, where the identifier text field is displayed.
LinkedHashMap< String, Combo > neededattributescombos = null
 the needed attributes combos, string is the attribute name
boolean nofinishallowed = false
 referenceconstraints
Group specpanel = null
 the second group, where the attributes are displayed.
String startstring = null
 the start string for the text field.
Group thirdpanel = null
 the third group, where the datatypes are displayed.
IInputValidator validator
 The input validator, or null if none.

Detailed Description

this class realize the main wizard page. a lot to generalize (performComponentRole() etc.)

Author:
skaegebein
Version:
0.8.0
Since:
0.8.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.EditableViewMainWizardPage ( String  pageName,
Role  myRole,
String  title,
String  startstring,
String  description,
EditableViewWizard  myWizard,
Vector< String >  usedidentifiers,
boolean  done 
)

the constructor.

Parameters:
pageName 
myRole 
title 
startstring 
description 
myWizard 
usedidentifiers 
done 

Member Function Documentation

boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.canFlipToNextPage (  ) 

The WizardPage implementation of this IWizardPage method returns true if this page is complete (isPageComplete) and there is a next page to flip to. Subclasses may override (extend or reimplement).

See also:
getNextPage
isPageComplete()
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.checkIfThereIsAnEditablePage (  )  [private]

Checks if there is an editable page.

Returns:
Return values:
true if there is a editable page
false if there is no editable page
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.checkNeededAttributeConstraints ( String  id  )  [private]

checks if the attribute are avaiable for the role. e.g. a port can't defined with an inout direction attribute.

Parameters:
id 
Returns:
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.checkReferenceConstraints (  ) 

checks if all references are defined. e.g. a port must have an interface reference!

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.createControl ( Composite  parent  ) 
String de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.getActualidentifier (  ) 
Returns:
the actualidentifier
LinkedHashMap<String, Button> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.getButtonspecifications (  ) 
Returns:
the buttonspecifications
LinkedHashMap<String, Combo> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.getNeededattributescombos (  ) 
Returns:
the neededattributescombos
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.handleNeededAttributes ( Composite  parent  )  [private]

builds up the needed attributes automatically.

Parameters:
parent 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.handleOptionalButton ( Button  button  )  [private]
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.handleSpecifications ( Composite  parent  )  [private]

builds up the attribute specifications.

Parameters:
parent 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.initializeValidator (  )  [private]

initialize the validator for the input name.

boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.isNofinishallowed (  ) 
Returns:
the nofinishallowed
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.performFinish (  ) 

handles the special information for the element to add after the finish button was pressed.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.setNofinishallowed ( boolean  nofinishallowed  ) 
Parameters:
nofinishallowed the nofinishallowed to set
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.updateUserInfos (  ) 

updates the user info via the setMessage("...") method.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.validateInput ( Text  text  )  [protected]

Validates the input.


Member Data Documentation

the actualidentifier.

vector to save all used identifier (needed e.g. for the feature creation).

to prevent loops inside the attribute selection class

map to collect all buttons according to their importance.

the referencepage hint

the first group, where the identifier text field is displayed.

the needed attributes combos, string is the attribute name

referenceconstraints

the second group, where the attributes are displayed.

the start string for the text field.

the text field for the identifier of the element.

the third group, where the datatypes are displayed.

The input validator, or null if none.