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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The key to get unique propId info from other widgets.static final String
The ID of this widget model.static final String
Array Lengthstatic final String
static final String
If the array widget is layoutted in horizontal.static final String
static final String
static final String
static final String
Fields inherited from class org.csstudio.opibuilder.model.AbstractContainerModel
PROP_CHILDREN, PROP_MACROS, PROP_SELECTION
Fields 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, VERSION
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(int index, AbstractWidgetModel child) void
addChild
(AbstractWidgetModel child, boolean changeParent) add child to the end of the children list.protected void
protected void
Configure the properties of the widget.int
int
int
boolean
boolean
boolean
boolean
This is a flag to show if children operation edit policies should be installed.boolean
boolean
boolean
void
processVersionDifference
(org.osgi.framework.Version boyVersionOnFile) Make necessary adjustment for widget compatibility between different versions.void
removeChild
(AbstractWidgetModel child) void
void
setArrayLength
(int length) void
Methods 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, setMacroMap
Methods 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:AbstractContainerModel
add child to the end of the children list.- Overrides:
addChild
in classAbstractContainerModel
- Parameters:
child
- the widget to be addedchangeParent
- true if the widget's parent should be changed.
-
addChild
- Overrides:
addChild
in classAbstractContainerModel
-
removeChild
- Overrides:
removeChild
in classAbstractContainerModel
-
configureBaseProperties
protected void configureBaseProperties()- Overrides:
configureBaseProperties
in classAbstractContainerModel
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModel
Configure the properties of the widget. Subclass should add new properties in this method.- Specified by:
configureProperties
in classAbstractWidgetModel
-
getTypeID
- Specified by:
getTypeID
in 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:AbstractWidgetModel
Make necessary adjustment for widget compatibility between different versions.- Overrides:
processVersionDifference
in classAbstractWidgetModel
-
getChildren
- Overrides:
getChildren
in classAbstractContainerModel
-
getAllChildren
-
isChildrenOperationAllowable
public boolean isChildrenOperationAllowable()Description copied from class:AbstractContainerModel
This is a flag to show if children operation edit policies should be installed.- Overrides:
isChildrenOperationAllowable
in classAbstractContainerModel
- Returns:
- true if children operation allowable.
-
isBorderAlarmSensitve
public boolean isBorderAlarmSensitve()- Specified by:
isBorderAlarmSensitve
in interfaceIPVWidgetModel
-
isForeColorAlarmSensitve
public boolean isForeColorAlarmSensitve()- Specified by:
isForeColorAlarmSensitve
in interfaceIPVWidgetModel
-
isBackColorAlarmSensitve
public boolean isBackColorAlarmSensitve()- Specified by:
isBackColorAlarmSensitve
in interfaceIPVWidgetModel
-
getPVName
- Specified by:
getPVName
in interfaceIPVWidgetModel
-
isAlarmPulsing
public boolean isAlarmPulsing()- Specified by:
isAlarmPulsing
in interfaceIPVWidgetModel
-
setArrayLength
public void setArrayLength(int length) -
setDataType
-
scaleChildren
public void scaleChildren()- Overrides:
scaleChildren
in classAbstractContainerModel
-