Class PVValueProperty
java.lang.Object
org.csstudio.opibuilder.properties.AbstractWidgetProperty<VType>
org.csstudio.opibuilder.properties.PVValueProperty
The property which contains a IValue. This property won't be shown in property view.
-
Field Summary
Fields inherited from class org.csstudio.opibuilder.properties.AbstractWidgetProperty
category, defaultValue, description, executionMode, prop_id, propertyValue, visibleInPropSheet, widgetModel -
Constructor Summary
ConstructorsConstructorDescriptionPVValueProperty(String prop_id, VType defaultValue) The property is used to store pv values. -
Method Summary
Modifier and TypeMethodDescriptioncheckValue(Object value) Check if the requestNewValue is convertible or legal.booleanSubclass should override this method if it is configurable by rule.protected PropertyDescriptorCreate theIPropertyDescriptorbooleanSubclass should override this method if it only accept output expression.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, firePropertyChange, getAllPropertyChangeListeners, getCategory, getDefaultValue, getDescription, getExecutionMode, getPropertyDescriptor, getPropertyID, getPropertyValue, getRawPropertyValue, isDefaultValue, isSavable, isVisibleInPropSheet, removeAllPropertyChangeListeners, removePropertyChangeListener, setCategory, setDefaultValue, setDescription, setExecutionMode, setPropertyValue, setPropertyValue, setPropertyValue_IgnoreOldValue, setSavable, setVisibleInPropSheet, setWidgetModel, toString, toStringInRuleScript
-
Constructor Details
-
PVValueProperty
The property is used to store pv values. The value type isVType.- Parameters:
prop_id- the property ID.defaultValue- the default value.
-
-
Method Details
-
checkValue
Description copied from class:AbstractWidgetPropertyCheck if the requestNewValue is convertible or legal.- Specified by:
checkValuein classAbstractWidgetProperty<VType>- 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<VType>
-
writeToXML
public void writeToXML(org.jdom2.Element propElement) Description copied from class:AbstractWidgetPropertyWrite the property value into a XML element.- Specified by:
writeToXMLin classAbstractWidgetProperty<VType>
-
readValueFromXML
Description copied from class:AbstractWidgetPropertyRead the property value from a XML element.- Specified by:
readValueFromXMLin classAbstractWidgetProperty<VType>
-
configurableByRule
public boolean configurableByRule()Description copied from class:AbstractWidgetPropertySubclass should override this method if it is configurable by rule. If this returns true, the methodAbstractWidgetProperty.toStringInRuleScript(Object)should be properly overridden too.- Overrides:
configurableByRulein classAbstractWidgetProperty<VType>- Returns:
- true if this property is configurable by rule.
-
onlyAcceptExpressionInRule
public boolean onlyAcceptExpressionInRule()Description copied from class:AbstractWidgetPropertySubclass should override this method if it only accept output expression.- Overrides:
onlyAcceptExpressionInRulein classAbstractWidgetProperty<VType>- Returns:
- true if this property only accept output expression.
-