Class BooleanProperty
java.lang.Object
org.csstudio.opibuilder.properties.AbstractWidgetProperty<Boolean>
org.csstudio.opibuilder.properties.BooleanProperty
A boolean widget property.
- 
Field SummaryFields inherited from class org.csstudio.opibuilder.properties.AbstractWidgetPropertycategory, defaultValue, description, executionMode, prop_id, propertyValue, visibleInPropSheet, widgetModel
- 
Constructor SummaryConstructorsConstructorDescriptionBooleanProperty(String propId, String description, WidgetPropertyCategory category, boolean defaultValue) Boolean Property Constructor
- 
Method SummaryModifier 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 theIPropertyDescriptorreadValueFromXML(org.jdom2.Element propElement) Read the property value from a XML element.toStringInRuleScript(Boolean propValue) Convert to the property value string in the script generated by rule.voidwriteToXML(org.jdom2.Element propElement) Write the property value into a XML element.Methods inherited from class org.csstudio.opibuilder.properties.AbstractWidgetPropertyaddPropertyChangeListener, 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
- 
Constructor Details- 
BooleanPropertypublic BooleanProperty(String propId, String description, WidgetPropertyCategory category, boolean defaultValue) Boolean Property Constructor- Parameters:
- propId- 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.
 
 
- 
- 
Method Details- 
checkValueDescription copied from class:AbstractWidgetPropertyCheck if the requestNewValue is convertible or legal.- Specified by:
- checkValuein class- AbstractWidgetProperty<Boolean>
- 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.
 
- 
createPropertyDescriptorDescription copied from class:AbstractWidgetPropertyCreate theIPropertyDescriptor- Specified by:
- createPropertyDescriptorin class- AbstractWidgetProperty<Boolean>
 
- 
writeToXMLpublic void writeToXML(org.jdom2.Element propElement) Description copied from class:AbstractWidgetPropertyWrite the property value into a XML element.- Specified by:
- writeToXMLin class- AbstractWidgetProperty<Boolean>
 
- 
readValueFromXMLDescription copied from class:AbstractWidgetPropertyRead the property value from a XML element.- Specified by:
- readValueFromXMLin class- AbstractWidgetProperty<Boolean>
 
- 
configurableByRulepublic 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 class- AbstractWidgetProperty<Boolean>
- Returns:
- true if this property is configurable by rule.
 
- 
toStringInRuleScriptDescription copied from class:AbstractWidgetPropertyConvert to the property value string in the script generated by rule.- Overrides:
- toStringInRuleScriptin class- AbstractWidgetProperty<Boolean>
 
 
-