|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sage.swt.client.customization.EnumPropertyEditor
public class EnumPropertyEditor
Base class for a property editor for properties with enumerated values.
| Constructor Summary | |
|---|---|
EnumPropertyEditor(DesignerLanguageResources.WidgetPropertyContent content,
java.lang.String tagName,
SelectableItemList enumList)
Constructs an abstract property editor with the given selectable item list containing each enumerated value's string representation and data. |
|
| Method Summary | |
|---|---|
java.lang.Object |
convertStringToValue(java.lang.String s)
Converts the string representation of the property's value to the actual value. |
java.lang.String |
convertValueToString(java.lang.Object value)
Converts the property's value to the string representation of that value. |
java.lang.String |
getDisplayName()
Gets the property's display name (such as "Read-Only"). |
java.lang.String |
getTagName()
Gets the property's tag name (such as "readOnly"). |
PropertyEditorWidget |
getWidget(Property property,
SwtWidget swtWidget,
SwtErrorStack errorStack)
Gets the property editor widget that will allow you to edit the properties for the specified property on the specified SWT widget (swtWidget). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumPropertyEditor(DesignerLanguageResources.WidgetPropertyContent content,
java.lang.String tagName,
SelectableItemList enumList)
content - the Designer content for the propertytagName - the tag name for the propertyenumList - The selectable item list containing each enumerated value's
string representation and data.| Method Detail |
|---|
public java.lang.String getDisplayName()
getDisplayName in interface PropertyEditorpublic java.lang.String getTagName()
getTagName in interface PropertyEditorpublic java.lang.Object convertStringToValue(java.lang.String s)
convertStringToValue in interface PropertyEditors - The string representation of the property's value.
public java.lang.String convertValueToString(java.lang.Object value)
convertValueToString in interface PropertyEditorvalue - The property's value.
public PropertyEditorWidget getWidget(Property property,
SwtWidget swtWidget,
SwtErrorStack errorStack)
getWidget in interface PropertyEditorproperty - The property whose value will be edited.swtWidget - The SWT widget whose property will be edited.errorStack - The UI designer's SWT error stack.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||