Class StringTableProperty
java.lang.Object
org.csstudio.opibuilder.properties.AbstractWidgetProperty<String[][]>
org.csstudio.opibuilder.properties.StringTableProperty
The property for string table.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML ELEMENT name for a column.static final StringXML ELEMENT name for a row.Fields inherited from class org.csstudio.opibuilder.properties.AbstractWidgetProperty
category, defaultValue, description, executionMode, prop_id, propertyValue, visibleInPropSheet, widgetModel -
Constructor Summary
ConstructorsConstructorDescriptionStringTableProperty(String prop_id, String description, WidgetPropertyCategory category, String[][] defaultValue, String[] titles) StringList Property Constructor.StringTableProperty(String prop_id, String description, WidgetPropertyCategory category, String[][] defaultValue, String[] titles, StringTableEditor.CellEditorType[] cellEditorTypes, Object[] cellEditorDatas) StringList Property Constructor. -
Method Summary
Modifier and TypeMethodDescriptionString[][]checkValue(Object value) Check if the requestNewValue is convertible or legal.protected PropertyDescriptorCreate theIPropertyDescriptorString[][]String[][]readValueFromXML(org.jdom2.Element propElement) Read the property value from a XML element.voidvoidwriteToXML(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_ROW
XML ELEMENT name for a row.- See Also:
-
XML_ELEMENT_COLUMN
XML ELEMENT name for a column.- See Also:
-
-
Constructor Details
-
StringTableProperty
public StringTableProperty(String prop_id, String description, WidgetPropertyCategory category, String[][] defaultValue, String[] titles) StringList Property Constructor. The property value type is 2D string array.- 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. It cannot be null.titles- the title for each column. The length of titles array is the number of columns. it can be null if the property is not visible.
-
StringTableProperty
public StringTableProperty(String prop_id, String description, WidgetPropertyCategory category, String[][] defaultValue, String[] titles, StringTableEditor.CellEditorType[] cellEditorTypes, Object[] cellEditorDatas) StringList Property Constructor. The property value type is 2D string array.- 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. It cannot be null.titles- the title for each column. The length of titles array is the number of columns. it can be null if the property is not visible.
-
-
Method Details
-
checkValue
Description copied from class:AbstractWidgetPropertyCheck if the requestNewValue is convertible or legal.- Specified by:
checkValuein classAbstractWidgetProperty<String[][]>- 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<String[][]>
-
setTitles
- Parameters:
titles- the titles for each column.
-
createPropertyDescriptor
Description copied from class:AbstractWidgetPropertyCreate theIPropertyDescriptor- Specified by:
createPropertyDescriptorin classAbstractWidgetProperty<String[][]>
-
readValueFromXML
Description copied from class:AbstractWidgetPropertyRead the property value from a XML element.- Specified by:
readValueFromXMLin classAbstractWidgetProperty<String[][]>
-
writeToXML
public void writeToXML(org.jdom2.Element propElement) Description copied from class:AbstractWidgetPropertyWrite the property value into a XML element.- Specified by:
writeToXMLin classAbstractWidgetProperty<String[][]>
-