|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.views.properties.tabbed.AbstractPropertySection
org.eclipse.emf.ecoretools.tabbedproperties.sections.AbstractTabbedPropertySection
org.eclipse.emf.ecoretools.tabbedproperties.sections.AbstractTextPropertySection
org.eclipse.emf.ecoretools.tabbedproperties.sections.AbstractIntegerPropertySection
public abstract class AbstractIntegerPropertySection
An abstract implementation of a section for a field with a String property value. Creation 5 apr. 2006 Updated 7 aug. 2006
| Field Summary | |
|---|---|
static java.lang.String |
ABS_NUMERICS_PATTERN
Predefined string pattern value for numerics and absolute with '-' : -25 |
static java.util.regex.Pattern |
INTEGER_PATTERN
The Pattern used to check an Integer value |
| Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
|---|
STANDARD_LABEL_WIDTH |
| Constructor Summary | |
|---|---|
AbstractIntegerPropertySection()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getFeatureAsString()
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 |
getNewFeatureValue(java.lang.String newText)
Get the new value of the feature from the text field of the section. |
protected java.lang.Object |
getOldFeatureValue()
Returns the feature value from the model as an object type. |
protected boolean |
isTextValid()
Check whether the text entered is valid or not. |
protected void |
verifyField(org.eclipse.swt.widgets.Event e)
Subclasses may provide their own checker on the text that is entered by the user and update the 'doit' flag of the Event in consequence. |
| Methods inherited from class org.eclipse.emf.ecoretools.tabbedproperties.sections.AbstractTextPropertySection |
|---|
createControls, createWidgets, focusIn, focusOut, getListener, getNameLabel, getStyle, getText, handleTextModified, hookListeners, refresh, setSectionData |
| Methods inherited from class org.eclipse.emf.ecoretools.tabbedproperties.sections.AbstractTabbedPropertySection |
|---|
aboutToBeHidden, aboutToBeShown, addListener, clearDecorators, createCommand, getActivePage, getEditingDomain, getEObject, getEObjectList, getFeature, getLabelText, getMainComposite, getMessageManager, getModelListener, getSectionComposite, getStandardLabelWidth, getStatusLineManager, handleModelChanged, isReadOnly, makeContributions, removeListener, setDecorator, setErrorDecorator, setErrorMessage, setInfoDecorator, setInput, setMessage, setWarningDecorator |
| Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
|---|
dispose, getMinimumHeight, getPart, getSelection, getWidgetFactory, shouldUseExtraSpace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ABS_NUMERICS_PATTERN
public static final java.util.regex.Pattern INTEGER_PATTERN
| Constructor Detail |
|---|
public AbstractIntegerPropertySection()
| Method Detail |
|---|
protected void verifyField(org.eclipse.swt.widgets.Event e)
AbstractTextPropertySection
verifyField in class AbstractTextPropertySectione - the Event that is sent when the Text is modifiedAbstractTextPropertySection.verifyField(Event)protected java.lang.String getFeatureAsString()
AbstractTextPropertySection
getFeatureAsString in class AbstractTextPropertySectionAbstractTextPropertySection.getFeatureAsString()protected java.lang.Object getOldFeatureValue()
AbstractTextPropertySection
getOldFeatureValue in class AbstractTextPropertySectionAbstractTextPropertySection.getOldFeatureValue()protected java.lang.Object getNewFeatureValue(java.lang.String newText)
AbstractTextPropertySection
getNewFeatureValue in class AbstractTextPropertySectionnewText - the new value of the feature as a string.
AbstractTextPropertySection.getNewFeatureValue(java.lang.String)protected boolean isTextValid()
AbstractTextPropertySection
isTextValid in class AbstractTextPropertySectionAbstractTextPropertySection.isTextValid()protected abstract java.lang.Integer getFeatureInteger()
|
Copyright 2007 Anyware Technologies. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||