Modelers

org.topcased.modeler.editor.properties.sections
Class AbstractIntegerPropertySection

java.lang.Object
  extended by org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
      extended by org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection
          extended by org.topcased.modeler.editor.properties.sections.AbstractTextPropertySection
              extended by org.topcased.modeler.editor.properties.sections.AbstractIntegerPropertySection
All Implemented Interfaces:
org.eclipse.ui.views.properties.tabbed.ISection

public abstract class AbstractIntegerPropertySection
extends AbstractTextPropertySection

An abstract implementation of a section for a field with a String property value. Creation 5 avr. 2006


Field Summary
 
Fields inherited from class org.topcased.modeler.editor.properties.sections.AbstractTextPropertySection
listener, text
 
Fields inherited from class org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection
eObject, eObjectList, propertySheetPage, selectedEditPart
 
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
STANDARD_LABEL_WIDTH
 
Constructor Summary
AbstractIntegerPropertySection()
           
 
Method Summary
protected  java.lang.String getFeatureAsText()
          Get the value of the feature as text for the text field for the section.
protected abstract  java.lang.Integer getFeatureInteger()
          Get the text value of the feature for the text field for the section.
protected  java.lang.Object getFeatureValue(java.lang.String newText)
          Get the new value of the feature for the text field for the section.
protected  boolean isEqual(java.lang.String newText)
          Determine if the provided string value is an equal representation of the current setting of the text property.
 
Methods inherited from class org.topcased.modeler.editor.properties.sections.AbstractTextPropertySection
createControls, getFeature, getLabelText, getStyle, handleTextModified, refresh
 
Methods inherited from class org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection
getChoices, getStandardLabelWidth, setInput
 
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
aboutToBeHidden, aboutToBeShown, dispose, getMinimumHeight, getPart, getSelection, getWidgetFactory, shouldUseExtraSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIntegerPropertySection

public AbstractIntegerPropertySection()
Method Detail

isEqual

protected boolean isEqual(java.lang.String newText)
Description copied from class: AbstractTextPropertySection
Determine if the provided string value is an equal representation of the current setting of the text property.

Specified by:
isEqual in class AbstractTextPropertySection
Parameters:
newText - the new string value.
Returns:
true if the new string value is equal to the current property setting.
See Also:
AbstractTextPropertySection.isEqual(java.lang.String)

getFeatureAsText

protected java.lang.String getFeatureAsText()
Description copied from class: AbstractTextPropertySection
Get the value of the feature as text for the text field for the section.

Specified by:
getFeatureAsText in class AbstractTextPropertySection
Returns:
the value of the feature as text.
See Also:
AbstractTextPropertySection.getFeatureAsText()

getFeatureInteger

protected abstract java.lang.Integer getFeatureInteger()
Get the text value of the feature for the text field for the section.

Returns:
the text value of the feature.

getFeatureValue

protected java.lang.Object getFeatureValue(java.lang.String newText)
Description copied from class: AbstractTextPropertySection
Get the new value of the feature for the text field for the section.

Specified by:
getFeatureValue in class AbstractTextPropertySection
Parameters:
newText - the new value of the feature as a string.
Returns:
the new value of the feature.
See Also:
AbstractTextPropertySection.getFeatureValue(java.lang.String)

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.