Class PointListProperty
java.lang.Object
org.csstudio.opibuilder.properties.AbstractWidgetProperty<org.eclipse.draw2d.geometry.PointList>
org.csstudio.opibuilder.properties.PointListProperty
public class PointListProperty
extends AbstractWidgetProperty<org.eclipse.draw2d.geometry.PointList>
The property for script.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
XML ATTRIBUTE nameX
.static final String
XML ATTRIBUTE nameY
.static final String
XML ELEMENT namePOINT
.Fields inherited from class org.csstudio.opibuilder.properties.AbstractWidgetProperty
category, defaultValue, description, executionMode, prop_id, propertyValue, visibleInPropSheet, widgetModel
-
Constructor Summary
ConstructorDescriptionPointListProperty
(String prop_id, String description, WidgetPropertyCategory category, org.eclipse.draw2d.geometry.PointList defaultValue) PointList Property Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.draw2d.geometry.PointList
checkValue
(Object value) Check if the requestNewValue is convertible or legal.protected PropertyDescriptor
Create theIPropertyDescriptor
org.eclipse.draw2d.geometry.PointList
readValueFromXML
(org.jdom2.Element propElement) Read the property value from a XML element.void
writeToXML
(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, isSavable, isVisibleInPropSheet, onlyAcceptExpressionInRule, removeAllPropertyChangeListeners, removePropertyChangeListener, setCategory, setDefaultValue, setDescription, setExecutionMode, setPropertyValue, setPropertyValue, setPropertyValue_IgnoreOldValue, setSavable, setVisibleInPropSheet, setWidgetModel, toString, toStringInRuleScript
-
Field Details
-
XML_ELEMENT_POINT
XML ELEMENT namePOINT
.- See Also:
-
XML_ATTRIBUTE_X
XML ATTRIBUTE nameX
.- See Also:
-
XML_ATTRIBUTE_Y
XML ATTRIBUTE nameY
.- See Also:
-
-
Constructor Details
-
PointListProperty
public PointListProperty(String prop_id, String description, WidgetPropertyCategory category, org.eclipse.draw2d.geometry.PointList defaultValue) PointList Property Constructor. The property value type isPointList
.- 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. cannot be null.
-
-
Method Details
-
checkValue
Description copied from class:AbstractWidgetProperty
Check if the requestNewValue is convertible or legal.- Specified by:
checkValue
in classAbstractWidgetProperty<org.eclipse.draw2d.geometry.PointList>
- 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:AbstractWidgetProperty
Create theIPropertyDescriptor
- Specified by:
createPropertyDescriptor
in classAbstractWidgetProperty<org.eclipse.draw2d.geometry.PointList>
-
readValueFromXML
public org.eclipse.draw2d.geometry.PointList readValueFromXML(org.jdom2.Element propElement) Description copied from class:AbstractWidgetProperty
Read the property value from a XML element.- Specified by:
readValueFromXML
in classAbstractWidgetProperty<org.eclipse.draw2d.geometry.PointList>
-
writeToXML
public void writeToXML(org.jdom2.Element propElement) Description copied from class:AbstractWidgetProperty
Write the property value into a XML element.- Specified by:
writeToXML
in classAbstractWidgetProperty<org.eclipse.draw2d.geometry.PointList>
-