Class SashContainerModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractContainerModel
org.csstudio.opibuilder.widgets.model.SashContainerModel
- All Implemented Interfaces:
IAdaptable
,IPropertySource
The model for sash container widget.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The ID of this widget model.static final String
static final String
static final String
static final String
static final String
static final String
static final String
True if the background color is transparent.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
Configure the properties of the widget.void
Flip the widget figure horizontally.void
Flip the widget figure vertically.double
int
boolean
boolean
boolean
boolean
Returns, if this widget should have a transparent background.void
rotate90
(boolean clockwise) Rotate the widget figure 90 degree.void
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, selectWidget, selectWidgets, setMacroMap
Methods 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_SASH_POSITION
- See Also:
-
PROP_SASH_STYLE
- See Also:
-
PROP_SASH_WIDTH
- See Also:
-
PROP_HORIZONTAL
- See Also:
-
PROP_PANEL1_AUTO_SCALE_CHILDREN
- See Also:
-
PROP_PANEL2_AUTO_SCALE_CHILDREN
- See Also:
-
-
Constructor Details
-
SashContainerModel
public SashContainerModel()
-
-
Method Details
-
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.
-
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
-
isHorizontal
public boolean isHorizontal()- Returns:
- boolean True, if sash is horizontal, false otherwise
-
isPanel1AutoScaleChildren
public boolean isPanel1AutoScaleChildren()- Returns:
- boolean True, if panel 1 will auto scale children when sash moved, false otherwise.
-
isPanel2AutoScaleChildren
public boolean isPanel2AutoScaleChildren()- Returns:
- boolean True, if panel 2 will auto scale children when sash moved, false otherwise.
-
getSashStyle
-
getSashWidth
public int getSashWidth() -
getSashPosition
public double getSashPosition() -
flipVertically
public void flipVertically()Description copied from class:AbstractWidgetModel
Flip the widget figure vertically.- Overrides:
flipVertically
in classAbstractWidgetModel
-
flipHorizontally
public void flipHorizontally()Description copied from class:AbstractWidgetModel
Flip the widget figure horizontally.- Overrides:
flipHorizontally
in classAbstractWidgetModel
-
rotate90
public void rotate90(boolean clockwise) Description copied from class:AbstractWidgetModel
Rotate the widget figure 90 degree.- Overrides:
rotate90
in classAbstractWidgetModel
- Parameters:
clockwise
- true if rotate clockwise. false if counterclockwise.
-
scaleChildren
public void scaleChildren()- Overrides:
scaleChildren
in classAbstractContainerModel
-