-
Notifications
You must be signed in to change notification settings - Fork 5
Attribute Value Handling
.
External interface declared in PmAttr
Methods: T getValue()
and void setValue(T value)
Methods: String getValueAsString()
and void setValueAsString(String text)
The string representation is often used to for view controls that support only string values.
String getValueLocalized()
A localized (human readable) value string output is sometimes useful.
PmAttrBoolean and PmAttrEnum<T_ENUM> provide implementations that localize the current value.
All other attribute classes just provide the same string as provided by getValueAsString().
See the wiki page Localizaton for more information.
PmDataInput: void resetPmValues()
Resets all editable attribute values of the PM subtree to the value provided by PmAttrBase.getDefaultValue().
For basic types PmAttrBoolean PmAttrDouble PmAttrEnum PmAttrInteger PmAttrList PmAttrLong PmAttrString PmAttrDate
For user defined types PmAttrImpl
Attributes that convert the backing item value type to an external PM type: PmAttrPmList PmAttrPmRef
- Attribute value options
- Visibility
- Enabling
- Value and changed state change events
- Changed state handling
- Validation
- Localization
Declaration of a simple attribute
PmAttrString s = new P