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
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe ID of this widget model.static final intstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 TypeMethodDescriptionvoidAdd a TabItem to the index;protected voidConfigure the properties of the widget.intintgetTabPropertyValue(int index, TabModel.TabProperty tabProperty) Get the property value of a tabItem.intbooleanThis is a flag to show if children operation edit policies should be installed.booleanstatic StringmakeTabPropID(String propIDPre, int index) voidremoveTab(int index) Remove a tab.voidsetTabItemHandler(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, setMacroMapMethods 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:AbstractWidgetModelConfigure the properties of the widget. Subclass should add new properties in this method.- Specified by:
configurePropertiesin classAbstractWidgetModel
-
makeTabPropID
-
getTypeID
- Specified by:
getTypeIDin 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:AbstractContainerModelThis is a flag to show if children operation edit policies should be installed.- Overrides:
isChildrenOperationAllowablein classAbstractContainerModel- Returns:
- true if children operation allowable.
-