Class RulesProperty
java.lang.Object
org.csstudio.opibuilder.properties.AbstractWidgetProperty<RulesInput>
org.csstudio.opibuilder.properties.RulesProperty
The property for rules.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML ATTRIBUTE nameBOOLEXP.static final StringXML ATTRIBUTE nameNAME.static final StringXML ATTRIBUTE nameOUTPUTEXPRESSION.static final StringXML ATTRIBUTE namePROPID.static final Stringstatic final StringXML ELEMENT nameEXPRESSION.static final StringXML Element namePV.static final StringXML ELEMENT nameRULE.static final StringXML ELEMENT nameVALUE.Fields inherited from class org.csstudio.opibuilder.properties.AbstractWidgetProperty
category, defaultValue, description, executionMode, prop_id, propertyValue, visibleInPropSheet, widgetModel -
Constructor Summary
ConstructorsConstructorDescriptionRulesProperty(String prop_id, String description, WidgetPropertyCategory category) Rules Property Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncheckValue(Object value) Check if the requestNewValue is convertible or legal.protected PropertyDescriptorCreate theIPropertyDescriptorreadValueFromXML(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, getRawPropertyValue, isDefaultValue, isSavable, isVisibleInPropSheet, onlyAcceptExpressionInRule, removeAllPropertyChangeListeners, removePropertyChangeListener, setCategory, setDefaultValue, setDescription, setExecutionMode, setPropertyValue, setPropertyValue, setPropertyValue_IgnoreOldValue, setSavable, setVisibleInPropSheet, setWidgetModel, toString, toStringInRuleScript
-
Field Details
-
XML_ELEMENT_RULE
XML ELEMENT nameRULE.- See Also:
-
XML_ATTRIBUTE_NAME
XML ATTRIBUTE nameNAME.- See Also:
-
XML_ATTRIBUTE_PROPID
XML ATTRIBUTE namePROPID.- See Also:
-
XML_ATTRIBUTE_OUTPUTEXPRESSION
XML ATTRIBUTE nameOUTPUTEXPRESSION.- See Also:
-
XML_ELEMENT_EXPRESSION
XML ELEMENT nameEXPRESSION.- See Also:
-
XML_ATTRIBUTE_BOOLEXP
XML ATTRIBUTE nameBOOLEXP.- See Also:
-
XML_ELEMENT_VALUE
XML ELEMENT nameVALUE.- See Also:
-
XML_ELEMENT_PV
XML Element namePV.- See Also:
-
XML_ATTRIBUTE_TRIGGER
- See Also:
-
-
Constructor Details
-
RulesProperty
Rules Property Constructor. The property value type isRulesInput.- 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.
-
-
Method Details
-
checkValue
Description copied from class:AbstractWidgetPropertyCheck if the requestNewValue is convertible or legal.- Specified by:
checkValuein classAbstractWidgetProperty<RulesInput>- 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.
-
getPropertyValue
- Overrides:
getPropertyValuein classAbstractWidgetProperty<RulesInput>
-
createPropertyDescriptor
Description copied from class:AbstractWidgetPropertyCreate theIPropertyDescriptor- Specified by:
createPropertyDescriptorin classAbstractWidgetProperty<RulesInput>
-
readValueFromXML
Description copied from class:AbstractWidgetPropertyRead the property value from a XML element.- Specified by:
readValueFromXMLin classAbstractWidgetProperty<RulesInput>- Throws:
Exception
-
writeToXML
public void writeToXML(org.jdom2.Element propElement) Description copied from class:AbstractWidgetPropertyWrite the property value into a XML element.- Specified by:
writeToXMLin classAbstractWidgetProperty<RulesInput>
-