|
Modelers | |||||||||
| 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.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection
org.topcased.modeler.editor.properties.sections.AbstractTextPropertySection
public abstract class AbstractTextPropertySection
An abstract implementation of a section with a text field.
| Field Summary | |
|---|---|
protected TextChangeHelper |
listener
A helper to listen for events that indicate that a text field has been changed. |
protected org.eclipse.swt.widgets.Text |
text
The text control for the section. |
| 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 | |
|---|---|
AbstractTextPropertySection()
|
|
| Method Summary | |
|---|---|
void |
createControls(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage tabbedPropertySheetPage)
|
protected abstract EAttribute |
getFeature()
Get the feature for the text field for the section. |
protected abstract java.lang.String |
getFeatureAsText()
Get the value of the feature as text for the text field for the section. |
protected abstract java.lang.Object |
getFeatureValue(java.lang.String newText)
Get the new value of the feature for the text field for the section. |
protected abstract java.lang.String |
getLabelText()
Get the label for the text field for the section. |
protected int |
getStyle()
Get the style of the text widget. |
protected void |
handleTextModified()
Handle the text modified event. |
protected abstract boolean |
isEqual(java.lang.String newText)
Determine if the provided string value is an equal representation of the current setting of the text property. |
void |
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 |
| Field Detail |
|---|
protected org.eclipse.swt.widgets.Text text
protected TextChangeHelper listener
| Constructor Detail |
|---|
public AbstractTextPropertySection()
| Method Detail |
|---|
public void createControls(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage tabbedPropertySheetPage)
createControls in interface org.eclipse.ui.views.properties.tabbed.ISectioncreateControls in class AbstractModelerPropertySectionAbstractModelerPropertySection.createControls(org.eclipse.swt.widgets.Composite,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)protected void handleTextModified()
public void refresh()
refresh in interface org.eclipse.ui.views.properties.tabbed.ISectionrefresh in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySectionAbstractPropertySection.refresh()protected int getStyle()
protected abstract boolean isEqual(java.lang.String newText)
newText - the new string value.
true if the new string value is equal to the
current property setting.protected abstract EAttribute getFeature()
protected abstract java.lang.String getFeatureAsText()
protected abstract java.lang.Object getFeatureValue(java.lang.String newText)
newText - the new value of the feature as a string.
protected abstract java.lang.String getLabelText()
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.