Package org.csstudio.swt.widgets.figures
Class TabFigure
java.lang.Object
org.eclipse.draw2d.Figure
org.csstudio.swt.widgets.figures.TabFigure
- All Implemented Interfaces:
Introspectable
,org.eclipse.draw2d.IFigure
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Definition of listeners that react on active tab index changed.Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure
org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch, org.eclipse.draw2d.Figure.ReverseFigureChildrenIterator
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
org.eclipse.draw2d.IFigure.NoInsets
-
Field Summary
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addTabListener
(TabFigure.ITabListener listener) void
dispose()
Dispose image resources.int
org.eclipse.draw2d.IFigure
int
org.eclipse.draw2d.Label
getTabLabel
(int index) int
int
protected void
layout()
protected void
paintClientArea
(org.eclipse.draw2d.Graphics graphics) void
void
removeTab
(int index) void
setActiveTabIndex
(int activeTabIndex) void
setHorizontal
(boolean horizontal) void
setIconPath
(int index, IPath path, IJobErrorHandler errorHandler) void
setMinimumTabHeight
(int minimumTabHeight) void
setTabColor
(int index, Color color) void
setTabEnabled
(int index, boolean enabled) Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getChildrenRevIterable, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getListenersIterable, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, optimizeClip, paint, paintBorder, paintChildren, paintFigure, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
Constructor Details
-
TabFigure
public TabFigure()
-
-
Method Details
-
addTab
-
addTab
-
addTabListener
-
getActiveTabIndex
public int getActiveTabIndex() -
getBeanInfo
- Specified by:
getBeanInfo
in interfaceIntrospectable
- Throws:
IntrospectionException
-
getContentPane
public org.eclipse.draw2d.IFigure getContentPane() -
getTabAmount
public int getTabAmount() -
getTabLabel
public org.eclipse.draw2d.Label getTabLabel(int index) -
getTabLabelHeight
public int getTabLabelHeight() -
getTabLabelWidth
public int getTabLabelWidth() -
layout
protected void layout()- Overrides:
layout
in classorg.eclipse.draw2d.Figure
-
paintClientArea
protected void paintClientArea(org.eclipse.draw2d.Graphics graphics) - Overrides:
paintClientArea
in classorg.eclipse.draw2d.Figure
-
removeTab
public void removeTab() -
removeTab
public void removeTab(int index) -
setActiveTabIndex
public void setActiveTabIndex(int activeTabIndex) -
setIconPath
-
dispose
public void dispose()Dispose image resources. -
setTabColor
-
setTabEnabled
public void setTabEnabled(int index, boolean enabled) -
setHorizontal
public void setHorizontal(boolean horizontal) -
setMinimumTabHeight
public void setMinimumTabHeight(int minimumTabHeight)
-