Class TabModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractContainerModel
org.csstudio.opibuilder.widgets.model.TabModel
- All Implemented Interfaces:
IAdaptable
,IPropertySource
The model for a tab widget.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The ID of this widget model.static final int
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a TabItem to the index;protected void
Configure the properties of the widget.int
int
getTabPropertyValue
(int index, TabModel.TabProperty tabProperty) Get the property value of a tabItem.int
boolean
This is a flag to show if children operation edit policies should be installed.boolean
static String
makeTabPropID
(String propIDPre, int index) void
removeTab
(int index) Remove a tab.void
setTabItemHandler
(TabModel.ITabItemHandler tabItemHandler) toAbsolutePath
(IPath path) 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, removeAllChildren, removeChild, scale, scaleChildren, 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, 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_TAB_COUNT
- See Also:
-
PROP_HORIZONTAL_TABS
- See Also:
-
PROP_ACTIVE_TAB
- See Also:
-
PROP_MINIMUM_TAB_HEIGHT
- See Also:
-
MAX_TABS_AMOUNT
public static final int MAX_TABS_AMOUNT- See Also:
-
ID
The ID of this widget model.- See Also:
-
-
Constructor Details
-
TabModel
public TabModel()
-
-
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
-
makeTabPropID
-
getTypeID
- Specified by:
getTypeID
in classAbstractWidgetModel
- Returns:
- the unique typeID of the model.
-
getTabPropertyValue
Get the property value of a tabItem.- Parameters:
index
- index of the tab item.tabProperty
- the property.- Returns:
- the value of the property.
-
getTabsAmount
public int getTabsAmount()- Returns:
- The number of tabs.
-
getMinimumTabHeight
public int getMinimumTabHeight() -
isHorizontal
public boolean isHorizontal()- Returns:
- tab position
-
getActiveTab
public int getActiveTab()- Returns:
- The defined active tab.
-
toAbsolutePath
-
addTab
Add a TabItem to the index;- Parameters:
index
-tabItem
-
-
removeTab
public void removeTab(int index) Remove a tab.- Parameters:
index
-
-
setTabItemHandler
- Parameters:
tabItemHandler
- the tabItemHandler to set
-
getTabItemHandler
- Returns:
- the tabItemHandler
-
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.
-