Class UnchangableStringProperty
java.lang.Object
org.csstudio.opibuilder.properties.AbstractWidgetProperty<String>
org.csstudio.opibuilder.properties.StringProperty
org.csstudio.opibuilder.properties.UnchangableStringProperty
- Direct Known Subclasses:
VersionProperty
Just used to display something in the property view, which cannot be edited.
-
Field Summary
Fields inherited from class org.csstudio.opibuilder.properties.AbstractWidgetProperty
category, defaultValue, description, executionMode, prop_id, propertyValue, visibleInPropSheet, widgetModel
-
Constructor Summary
ConstructorDescriptionUnchangableStringProperty
(String prop_id, String description, WidgetPropertyCategory category, String defaultValue) String Property Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Subclass should override this method if it is configurable by rule.protected PropertyDescriptor
Create theIPropertyDescriptor
Methods inherited from class org.csstudio.opibuilder.properties.StringProperty
checkValue, getPropertyValue, readValueFromXML, toStringInRuleScript, writeToXML
Methods inherited from class org.csstudio.opibuilder.properties.AbstractWidgetProperty
addPropertyChangeListener, 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
-
Constructor Details
-
UnchangableStringProperty
public UnchangableStringProperty(String prop_id, String description, WidgetPropertyCategory category, String defaultValue) String Property Constructor. The property value type isString
. This String property is not editable in property sheet. It is used for information display purpose only.- 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.
-
-
Method Details
-
createPropertyDescriptor
Description copied from class:AbstractWidgetProperty
Create theIPropertyDescriptor
- Overrides:
createPropertyDescriptor
in classStringProperty
-
configurableByRule
public boolean configurableByRule()Description copied from class:AbstractWidgetProperty
Subclass should override this method if it is configurable by rule. If this returns true, the methodAbstractWidgetProperty.toStringInRuleScript(Object)
should be properly overridden too.- Overrides:
configurableByRule
in classStringProperty
- Returns:
- true if this property is configurable by rule.
-