Class UnsavableListProperty
java.lang.Object
org.csstudio.opibuilder.properties.AbstractWidgetProperty<List<?>>
org.csstudio.opibuilder.properties.UnsavableListProperty
The widget property for list. This property is only used for property change communication between model and
editpart, so it is not savable and viewable in property sheet.
-
Field Summary
Fields inherited from class org.csstudio.opibuilder.properties.AbstractWidgetProperty
category, defaultValue, description, executionMode, prop_id, propertyValue, visibleInPropSheet, widgetModel -
Constructor Summary
ConstructorsConstructorDescriptionUnsavableListProperty(String prop_id, String description, WidgetPropertyCategory category, List<?> defaultValue) String Property Constructor. -
Method Summary
Modifier and TypeMethodDescriptionList<?>checkValue(Object value) Check if the requestNewValue is convertible or legal.protected PropertyDescriptorCreate theIPropertyDescriptorbooleanIf the property should be saved to xml file.List<?>readValueFromXML(org.jdom2.Element propElement) Read the property value from a XML element.voidwriteToXML(org.jdom2.Element propElement) Write the property value into a XML element.Methods inherited from class org.csstudio.opibuilder.properties.AbstractWidgetProperty
addPropertyChangeListener, configurableByRule, firePropertyChange, getAllPropertyChangeListeners, getCategory, getDefaultValue, getDescription, getExecutionMode, getPropertyDescriptor, getPropertyID, getPropertyValue, getRawPropertyValue, isDefaultValue, isVisibleInPropSheet, onlyAcceptExpressionInRule, removeAllPropertyChangeListeners, removePropertyChangeListener, setCategory, setDefaultValue, setDescription, setExecutionMode, setPropertyValue, setPropertyValue, setPropertyValue_IgnoreOldValue, setSavable, setVisibleInPropSheet, setWidgetModel, toString, toStringInRuleScript
-
Constructor Details
-
UnsavableListProperty
public UnsavableListProperty(String prop_id, String description, WidgetPropertyCategory category, List<?> defaultValue) String Property Constructor. The property value type isList.- Parameters:
prop_id- the property id which should be unique in a widget model.description- the description of the property, which will be shown as the property name in property sheet.category- the category of the widget.defaultValue- the default value when the widget is first created. Can be NULL.
-
-
Method Details
-
checkValue
Description copied from class:AbstractWidgetPropertyCheck if the requestNewValue is convertible or legal.- Specified by:
checkValuein classAbstractWidgetProperty<List<?>>- Parameters:
value- the value to be checked.- Returns:
- The value after being checked. It might be coerced if the requestValue is illegal. return null if it is not convertible or illegal.
-
createPropertyDescriptor
Description copied from class:AbstractWidgetPropertyCreate theIPropertyDescriptor- Specified by:
createPropertyDescriptorin classAbstractWidgetProperty<List<?>>
-
writeToXML
public void writeToXML(org.jdom2.Element propElement) Description copied from class:AbstractWidgetPropertyWrite the property value into a XML element.- Specified by:
writeToXMLin classAbstractWidgetProperty<List<?>>
-
readValueFromXML
Description copied from class:AbstractWidgetPropertyRead the property value from a XML element.- Specified by:
readValueFromXMLin classAbstractWidgetProperty<List<?>>
-
isSavable
public boolean isSavable()Description copied from class:AbstractWidgetPropertyIf the property should be saved to xml file.- Overrides:
isSavablein classAbstractWidgetProperty<List<?>>
-