Package org.csstudio.opibuilder.model
Class AbstractLinkingContainerModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractContainerModel
org.csstudio.opibuilder.model.AbstractLinkingContainerModel
- All Implemented Interfaces:
IAdaptable
,IPropertySource
- Direct Known Subclasses:
LinkingContainerModel
The abstract base model for LinkingContainer widgets.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the group container widget in the OPI file, which will be loaded if it is specified.static final String
The ID of the resource property.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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Return the target resource.void
setDisplayModel
(DisplayModel displayModel) Set the display model of the loaded opi.void
setDisplayModelDisplayID
(int displayID) void
setDisplayModelExecutionMode
(ExecutionMode executionMode) void
setDisplayModelOpiRuntime
(IOPIRuntime opiRuntime) void
setDisplayModelViewer
(org.eclipse.gef.GraphicalViewer viewer) void
setOPIFilePath
(String path) Methods inherited from class org.csstudio.opibuilder.model.AbstractContainerModel
addChild, addChild, addChild, addChildren, addMacro, changeChildOrder, getAllDescendants, getChildByName, getChildren, getChildrenProperty, getEditPart, getIndexOf, getLayoutWidget, getMacroMap, getMacrosInput, getParentMacroMap, getSelectionProperty, isChildrenOperationAllowable, removeAllChildren, removeChild, scale, scaleChildren, selectWidget, selectWidgets, setMacroMap
Methods inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
addConnection, addProperty, addProperty, addPVProperty, configureProperties, 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, getTypeID, getVersion, getVersionOnFile, getWidgetType, getWidth, getWUID, getX, getY, isEnabled, isPropertySet, isVisible, processVersionDifference, 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
-
PROP_OPI_FILE
The ID of the resource property.- See Also:
-
PROP_GROUP_NAME
The name of the group container widget in the OPI file, which will be loaded if it is specified. If it is not specified, the whole OPI file will be loaded.- See Also:
-
-
Constructor Details
-
AbstractLinkingContainerModel
public AbstractLinkingContainerModel()
-
-
Method Details
-
configureBaseProperties
protected void configureBaseProperties()- Overrides:
configureBaseProperties
in classAbstractContainerModel
-
getGroupName
-
getOPIFilePath
Return the target resource.- Returns:
- The target resource.
-
setOPIFilePath
-
setDisplayModel
Set the display model of the loaded opi.- Parameters:
displayModel
-
-
getDisplayModel
- Returns:
- display model of the loaded opi. null if no opi has been loaded.
-
setDisplayModelViewer
public void setDisplayModelViewer(org.eclipse.gef.GraphicalViewer viewer) -
setDisplayModelDisplayID
public void setDisplayModelDisplayID(int displayID) -
setDisplayModelExecutionMode
-
setDisplayModelOpiRuntime
-