Class GroupingContainerModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractContainerModel
org.csstudio.opibuilder.widgets.model.GroupingContainerModel
- All Implemented Interfaces:
IAdaptable,IPropertySource
The model for grouping container widget.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe ID of this widget model.static final StringForward background and foreground color properties change to children.static final StringTrue if children widgets are not selectable.static final StringTrue if scrollbar is visible when children widgets are out of range.static final StringTrue if the background color is transparent.Fields 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, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConfigure the properties of the widget.voidFlip the widget figure horizontally.voidFlip the widget figure vertically.booleanbooleanisLocked()booleanbooleanReturns, if this widget should have a transparent background.voidrotate90(boolean clockwise) Rotate the widget figure 90 degree.Methods inherited from class org.csstudio.opibuilder.model.AbstractContainerModel
addChild, addChild, addChild, addChildren, addMacro, changeChildOrder, configureBaseProperties, getAllDescendants, getChildByName, getChildren, getChildrenProperty, getEditPart, getIndexOf, getLayoutWidget, getMacroMap, getMacrosInput, getParentMacroMap, getSelectionProperty, isChildrenOperationAllowable, removeAllChildren, removeChild, scale, scaleChildren, selectWidget, selectWidgets, setMacroMapMethods inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
addConnection, addProperty, addProperty, addPVProperty, doScale, flipHorizontally, 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, processVersionDifference, removeProperty, removePVProperty, resetPropertyValue, 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:
-
PROP_TRANSPARENT
True if the background color is transparent.- See Also:
-
PROP_LOCK_CHILDREN
True if children widgets are not selectable.- See Also:
-
PROP_SHOW_SCROLLBAR
True if scrollbar is visible when children widgets are out of range.- See Also:
-
PROP_FORWARD_COLORS
Forward background and foreground color properties change to children.- See Also:
-
-
Constructor Details
-
GroupingContainerModel
public GroupingContainerModel()
-
-
Method Details
-
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.
-
isTransparent
public boolean isTransparent()Returns, if this widget should have a transparent background.- Returns:
- boolean True, if it should have a transparent background, false otherwise
-
isLocked
public boolean isLocked()- Returns:
- boolean True, if the children should be locked, false otherwise
-
isShowScrollbar
public boolean isShowScrollbar()- Returns:
- boolean True, if scrollbar should be shown when necessary, false otherwise.
-
isForwardColors
public boolean isForwardColors() -
flipVertically
public void flipVertically()Description copied from class:AbstractWidgetModelFlip the widget figure vertically.- Overrides:
flipVerticallyin classAbstractWidgetModel
-
flipHorizontally
public void flipHorizontally()Description copied from class:AbstractWidgetModelFlip the widget figure horizontally.- Overrides:
flipHorizontallyin classAbstractWidgetModel
-
rotate90
public void rotate90(boolean clockwise) Description copied from class:AbstractWidgetModelRotate the widget figure 90 degree.- Overrides:
rotate90in classAbstractWidgetModel- Parameters:
clockwise- true if rotate clockwise. false if counterclockwise.
-