Class TabEditPart
java.lang.Object
org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.csstudio.opibuilder.editparts.AbstractBaseEditPart
org.csstudio.opibuilder.editparts.AbstractContainerEditpart
org.csstudio.opibuilder.widgets.editparts.TabEditPart
- All Implemented Interfaces:
IAdaptable
,org.eclipse.gef.EditPart
,org.eclipse.gef.GraphicalEditPart
,org.eclipse.gef.NodeEditPart
,org.eclipse.gef.RequestConstants
The editpart of tab widget.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.csstudio.opibuilder.editparts.AbstractBaseEditPart
AbstractBaseEditPart.BaseEditPartActionFilter
Nested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart.AccessibleGraphicalEditPart, org.eclipse.gef.editparts.AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider
Nested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractEditPart.EditPolicyIterator
-
Field Summary
Fields inherited from class org.csstudio.opibuilder.editparts.AbstractBaseEditPart
anchorMap, propertyListenerMap
Fields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
figure, sourceConnections, targetConnections
Fields inherited from class org.eclipse.gef.editparts.AbstractEditPart
children, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAG
Fields inherited from interface org.eclipse.gef.EditPart
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
Fields inherited from interface org.eclipse.gef.RequestConstants
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
void
addTab()
void
Add a TabItem to the index;protected final org.eclipse.gef.EditPart
createChild
(Object model) protected void
static GroupingContainerModel
void
protected org.eclipse.draw2d.IFigure
Create and initialize the widget figure with the property values in model.int
Get the index of the active tab.org.eclipse.draw2d.IFigure
getGroupingContainer
(int index) getTabItem
(int tabIndex) int
org.eclipse.draw2d.Label
getTabLabel
(int index) protected void
Register the property change handlers.void
void
removeTab
(int index) void
setActiveTabIndex
(int index) Show tab in this index.Methods inherited from class org.csstudio.opibuilder.editparts.AbstractContainerEditpart
addChild, addChildToBottom, addChildToRight, getAdapter, getAllRuntimePVNames, getChild, getLayoutWidget, getModelChildren, getValue, getWidget, layout, performAutosize, refreshChildren, registerBasePropertyChangeHandlers, removeAllChildren, removeChild, removeChild, removeChildByName, setModel, setValue
Methods inherited from class org.csstudio.opibuilder.editparts.AbstractBaseEditPart
addToConnectionHandler, calculateBorder, createConnectionHandler, createFigure, doActivate, doDeActivate, doRefreshVisuals, executeAction, fillAnchorMap, getAllPVs, getAnchorMap, getClosestAnchorAt, getConnectionHandler, getDisplayDisposeListener, getExecutionMode, getExternalObject, getHookedActions, getMacroValue, getModelSourceConnections, getModelTargetConnections, getName, getPropertyValue, getPVByName, getSite, getSourceConnectionAnchor, getSourceConnectionAnchor, getTargetConnectionAnchor, getTargetConnectionAnchor, getTerminalNameFromAnchor, getVar, hookMouseClickAction, initFigure, isSelectable, refreshVisuals, removeAllPropertyChangeHandlers, removeFromConnectionHandler, setEnabled, setExecutionMode, setExternalObject, setFigureBorder, setHeight, setPropertyChangeHandler, setPropertyValue, setPropertyValue, setSelectable, setSite, setValueInUIThread, setVar, setVisible, setWidth, setX, setY, toString
Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
addChildVisual, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getChildren, getDragTracker, getFigure, getLayer, getSourceConnections, getTargetConnections, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeNodeListener, removeNotify, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, unregisterVisuals
Methods inherited from class org.eclipse.gef.editparts.AbstractEditPart
activateEditPolicies, addChild, addEditPartListener, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getCommand, getEditPolicy, getEditPolicyIterable, getEditPolicyIterator, getEventListeners, getEventListenersIterable, getFlag, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, performRequest, register, registerAccessibility, registerModel, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest, unregister, unregisterAccessibility, unregisterModel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.gef.EditPart
addEditPartListener, addNotify, eraseSourceFeedback, eraseTargetFeedback, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
Methods inherited from interface org.eclipse.gef.GraphicalEditPart
addNodeListener, getChildren, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
-
Constructor Details
-
TabEditPart
public TabEditPart()
-
-
Method Details
-
createGroupingContainer
-
activate
public void activate()- Specified by:
activate
in interfaceorg.eclipse.gef.EditPart
- Overrides:
activate
in classAbstractBaseEditPart
-
addTab
public void addTab() -
addTab
Add a TabItem to the index;- Parameters:
index
-tabItem
-
-
createChild
- Overrides:
createChild
in classorg.eclipse.gef.editparts.AbstractEditPart
-
createEditPolicies
protected void createEditPolicies()- Overrides:
createEditPolicies
in classAbstractContainerEditpart
-
deactivate
public void deactivate()- Specified by:
deactivate
in interfaceorg.eclipse.gef.EditPart
- Overrides:
deactivate
in classAbstractContainerEditpart
-
doCreateFigure
protected org.eclipse.draw2d.IFigure doCreateFigure()Description copied from class:AbstractBaseEditPart
Create and initialize the widget figure with the property values in model.- Specified by:
doCreateFigure
in classAbstractBaseEditPart
- Returns:
- the widget figure
-
getActiveTabIndex
public int getActiveTabIndex()Get the index of the active tab.- Returns:
- the index of the active tab. Index starts from 0.
-
getContentPane
public org.eclipse.draw2d.IFigure getContentPane()- Specified by:
getContentPane
in interfaceorg.eclipse.gef.GraphicalEditPart
- Overrides:
getContentPane
in classorg.eclipse.gef.editparts.AbstractGraphicalEditPart
-
getGroupingContainer
-
getTabItem
-
getTabItemCount
public int getTabItemCount() -
getTabLabel
public org.eclipse.draw2d.Label getTabLabel(int index) -
getWidgetModel
- Overrides:
getWidgetModel
in classAbstractContainerEditpart
-
registerPropertyChangeHandlers
protected void registerPropertyChangeHandlers()Description copied from class:AbstractBaseEditPart
Register the property change handlers. Subclass should register its property change handlers in this method.- Specified by:
registerPropertyChangeHandlers
in classAbstractBaseEditPart
-
removeTab
public void removeTab() -
removeTab
public void removeTab(int index) -
setActiveTabIndex
public void setActiveTabIndex(int index) Show tab in this index.- Parameters:
index
- the index of the tab to be shown. Index starts from 0.
-