Class ArrayModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractContainerModel
org.csstudio.opibuilder.widgets.model.ArrayModel
- All Implemented Interfaces:
IPVWidgetModel,IAdaptable,IPropertySource
The model for array widget.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe key to get unique propId info from other widgets.static final StringThe ID of this widget model.static final StringArray Lengthstatic final Stringstatic final StringIf the array widget is layoutted in horizontal.static final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.csstudio.opibuilder.model.AbstractContainerModel
PROP_CHILDREN, PROP_MACROS, PROP_SELECTIONFields inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
PROP_ACTIONS, PROP_BORDER_COLOR, PROP_BORDER_STYLE, PROP_BORDER_WIDTH, PROP_COLOR_BACKGROUND, PROP_COLOR_FOREGROUND, PROP_ENABLED, PROP_FONT, PROP_HEIGHT, PROP_NAME, PROP_RULES, PROP_SCALE_OPTIONS, PROP_SCRIPTS, PROP_SRC_CONNECTIONS, PROP_TGT_CONNECTIONS, PROP_TOOLTIP, PROP_VISIBLE, PROP_WIDGET_TYPE, PROP_WIDGET_UID, PROP_WIDTH, PROP_XPOS, PROP_YPOS, VERSIONFields inherited from interface org.csstudio.opibuilder.model.IPVWidgetModel
PROP_ALARM_PULSING, PROP_BACKCOLOR_ALARMSENSITIVE, PROP_BORDER_ALARMSENSITIVE, PROP_FORECOLOR_ALARMSENSITIVE, PROP_PVNAME, PROP_PVVALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(int index, AbstractWidgetModel child) voidaddChild(AbstractWidgetModel child, boolean changeParent) add child to the end of the children list.protected voidprotected voidConfigure the properties of the widget.intintintbooleanbooleanbooleanbooleanThis is a flag to show if children operation edit policies should be installed.booleanbooleanbooleanvoidprocessVersionDifference(org.osgi.framework.Version boyVersionOnFile) Make necessary adjustment for widget compatibility between different versions.voidremoveChild(AbstractWidgetModel child) voidvoidsetArrayLength(int length) voidMethods inherited from class org.csstudio.opibuilder.model.AbstractContainerModel
addChild, addChildren, addMacro, changeChildOrder, getAllDescendants, getChildByName, getChildrenProperty, getEditPart, getIndexOf, getLayoutWidget, getMacroMap, getMacrosInput, getParentMacroMap, getSelectionProperty, removeAllChildren, scale, selectWidget, selectWidgets, setMacroMapMethods inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
addConnection, addProperty, addProperty, addPVProperty, doScale, flipHorizontally, flipHorizontally, flipVertically, flipVertically, generateNewWUID, getActionsInput, getAdapter, getAllPropertyIDs, getBackgroundColor, getBorderColor, getBorderStyle, getBorderWidth, getBounds, getCastedPropertyValue, getEditableValue, getExecutionMode, getFont, getForegroundColor, getHeight, getIndex, getLocation, getName, getNestedDepth, getOriginLocation, getOriginSize, getParent, getProperty, getPropertyDescriptors, getPropertyValue, getPVMap, getRawPropertyValue, getRawTooltip, getRGBFromColorProperty, getRootDisplayModel, getRootDisplayModel, getRulesInput, getRuntimePropertyList, getScaledSize, getScaleOptions, getScriptsInput, getSize, getSourceConnections, getSWTColorFromColorProperty, getTargetConnections, getTooltip, getType, getVersion, getVersionOnFile, getWidgetType, getWidth, getWUID, getX, getY, isEnabled, isPropertySet, isVisible, removeProperty, removePVProperty, resetPropertyValue, rotate90, rotate90, scaleConnections, setBackgroundColor, setBorderColor, setBorderStyle, setBorderWidth, setBounds, setBounds, setEnabled, setExecutionMode, setForegroundColor, setHeight, setLocation, setLocation, setName, setParent, setPropertyDescription, setPropertyValue, setPropertyValue, setPropertyVisible, setPropertyVisibleAndSavable, setScaleOptions, setSize, setSize, setTooltip, setVersionOnFile, setWidth, setX, setY
-
Field Details
-
ID
The ID of this widget model.- See Also:
-
ARRAY_UNIQUEPROP_ID
The key to get unique propId info from other widgets.- See Also:
-
PROP_ARRAY_LENGTH
Array Length- See Also:
-
PROP_HORIZONTAL
If the array widget is layoutted in horizontal.- See Also:
-
PROP_SHOW_SPINNER
- See Also:
-
PROP_SHOW_SCROLLBAR
- See Also:
-
PROP_SPINNER_WIDTH
- See Also:
-
PROP_VISIBLE_ELEMENTS_COUNT
- See Also:
-
PROP_DATA_TYPE
- See Also:
-
-
Constructor Details
-
ArrayModel
public ArrayModel()
-
-
Method Details
-
getDelegate
-
addChild
Description copied from class:AbstractContainerModeladd child to the end of the children list.- Overrides:
addChildin classAbstractContainerModel- Parameters:
child- the widget to be addedchangeParent- true if the widget's parent should be changed.
-
addChild
- Overrides:
addChildin classAbstractContainerModel
-
removeChild
- Overrides:
removeChildin classAbstractContainerModel
-
configureBaseProperties
protected void configureBaseProperties()- Overrides:
configureBasePropertiesin classAbstractContainerModel
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModelConfigure the properties of the widget. Subclass should add new properties in this method.- Specified by:
configurePropertiesin classAbstractWidgetModel
-
getTypeID
- Specified by:
getTypeIDin classAbstractWidgetModel- Returns:
- the unique typeID of the model.
-
getArrayLength
public int getArrayLength() -
getSpinnerWidth
public int getSpinnerWidth() -
getVisibleElementsCount
public int getVisibleElementsCount() -
isHorizontal
public boolean isHorizontal() -
isShowSpinner
public boolean isShowSpinner() -
isShowScrollbar
-
getDataType
-
processVersionDifference
public void processVersionDifference(org.osgi.framework.Version boyVersionOnFile) Description copied from class:AbstractWidgetModelMake necessary adjustment for widget compatibility between different versions.- Overrides:
processVersionDifferencein classAbstractWidgetModel
-
getChildren
- Overrides:
getChildrenin classAbstractContainerModel
-
getAllChildren
-
isChildrenOperationAllowable
public boolean isChildrenOperationAllowable()Description copied from class:AbstractContainerModelThis is a flag to show if children operation edit policies should be installed.- Overrides:
isChildrenOperationAllowablein classAbstractContainerModel- Returns:
- true if children operation allowable.
-
isBorderAlarmSensitve
public boolean isBorderAlarmSensitve()- Specified by:
isBorderAlarmSensitvein interfaceIPVWidgetModel
-
isForeColorAlarmSensitve
public boolean isForeColorAlarmSensitve()- Specified by:
isForeColorAlarmSensitvein interfaceIPVWidgetModel
-
isBackColorAlarmSensitve
public boolean isBackColorAlarmSensitve()- Specified by:
isBackColorAlarmSensitvein interfaceIPVWidgetModel
-
getPVName
- Specified by:
getPVNamein interfaceIPVWidgetModel
-
isAlarmPulsing
public boolean isAlarmPulsing()- Specified by:
isAlarmPulsingin interfaceIPVWidgetModel
-
setArrayLength
public void setArrayLength(int length) -
setDataType
-
scaleChildren
public void scaleChildren()- Overrides:
scaleChildrenin classAbstractContainerModel
-