The item children that may be added to instances of this class
must be of type CTabItem.
Control children are created and then set into a
tab item using CTabItem#setControl.
Note that although this class is a subclass of Composite,
it does not make sense to set a layout on it.
Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv Rectangle[] | |
| public static RGB | borderInsideRGB
Color of innermost line of drop shadow border. |
| public static RGB | borderMiddleRGB
Color of middle line of drop shadow border. |
| public static RGB | borderOutsideRGB
Color of outermost line of drop shadow border. |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv Image | |
| pack-priv ToolItem | |
| pack-priv ToolBar | |
| pack-priv boolean | |
| pack-priv int[] | |
| pack-priv Image[] | |
| pack-priv Rectangle[] | |
| pack-priv Control[] | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv int | firstIndex
index of the left most visible tab. |
| pack-priv int | |
| pack-priv CTabFolder2Listener[] | |
| pack-priv static final int | |
| pack-priv Color[] | |
| pack-priv int[] | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv Rectangle | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv CTabItem[] | |
| pack-priv Listener | |
| public int | marginHeight
marginHeight specifies the number of points of vertical margin that will be placed along the top and bottom edges of the form. |
| public int | marginWidth
marginWidth specifies the number of points of horizontal margin that will be placed along the left and right edges of the form. |
| pack-priv Image | |
| pack-priv boolean | |
| pack-priv ToolItem | |
| public int | MIN_TAB_WIDTH
A multiple of the tab height that specifies the minimum width to which a tab will be compressed before scrolling arrows are used to navigate the tabs. |
| pack-priv int | |
| pack-priv Image | |
| pack-priv boolean | |
| pack-priv ToolItem | |
| pack-priv ToolBar | |
| pack-priv boolean | |
| pack-priv Font | |
| pack-priv Point | |
| pack-priv boolean | |
| pack-priv int[] | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv CTabFolderRenderer | |
| pack-priv int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv Color | |
| pack-priv Image | |
| pack-priv Color | |
| pack-priv Color[] | |
| pack-priv int[] | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv Menu | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv static final int | |
| pack-priv int | |
| pack-priv CTabFolderListener[] | |
| pack-priv Control | |
| pack-priv int | |
| pack-priv static final int | |
| pack-priv int | |
| pack-priv Runnable | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | CTabFolder(Composite
a widget which will be the parent of the new instance (cannot be null) parent, int the style of widget to construct style)Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv char | |
| pack-priv String | |
| pack-priv void | |
| public void | addCTabFolder2Listener(CTabFolder2Listener
the listener which should be notified listener)Adds the listener to the collection of listeners who will be notified when a tab item is closed, minimized, maximized, restored, or to show the list of items that are not currently visible. |
| public void | addCTabFolderListener(CTabFolderListener
the listener which should be notified listener)
Deprecated
use addCTabFolder2Listener(CTabFolder2Listener)
Adds the listener to the collection of listeners who will
be notified when a tab item is closed.
|
| public void | addSelectionListener(SelectionListener
the listener which should be notified when the user changes the receiver's selection listener)Adds the listener to the collection of listeners who will
be notified when the user changes the receiver's selection, by sending
it one of the messages defined in the |
| pack-priv void | addTabControl(Control
the control to be displayed in the top right corner or null control, int valid combinations are:
flags)
Set a control that can appear to the left or to the right of the folder tabs. |
| pack-priv void | |
| pack-priv static int | |
| pack-priv Rectangle[] | |
| public Rectangle | computeTrim(int
the desired x coordinate of the client area x, int the desired y coordinate of the client area y, int the desired width of the client area width, int the desired height of the client area height)
Given a desired client area for the receiver
(as described by the arguments), returns the bounding
rectangle which would be required to produce that client
area.
|
| pack-priv Image | |
| pack-priv void | |
| pack-priv void | |
| public boolean | Returns: the receiver's border visibility stateReturns |
| pack-priv ToolBar | |
| pack-priv int | Returns: the chevron countGet the number of hidden items or the number which is to be drawn in the chevon item. |
| pack-priv boolean | Returns: the visibility of the chevron buttonReturns |
| public Rectangle | getClientArea()
Returns a rectangle which describes the area of the
receiver which is capable of displaying data (that is,
not covered by the "trimmings").
|
| pack-priv int | |
| pack-priv int | |
| public boolean | Returns: true if the selected tab is rendered as
highlighted.Returns |
| public CTabItem | Returns: the item at the specified indexthe index of the tab item index)Return the tab that is located at the specified index. |
| public CTabItem | |
| public int | |
| public CTabItem[] | |
| pack-priv int | |
| public boolean | |
| public boolean | Returns: the visibility of the maximized buttonReturns |
| public boolean | |
| public boolean | Returns: the visibility of the minimized buttonReturns |
| public int | Returns: number of characters that will appear in a fully compressed tabReturns the number of characters that will appear in a fully compressed tab. |
| public boolean | Returns: the receiver's header's visibility stateReturns |
| public CTabFolderRenderer | |
| pack-priv int | |
| public boolean | Returns: true if an image appears in selected tabsReturns |
| public CTabItem | Returns: the selected tab item, or null if none has been selectedReturn the selected tab item, or null if there is no selection. |
| public Color | Returns: the selection background color of the receiverReturns the receiver's selection background color. |
| public Color | Returns: the selection foreground color of the receiverReturns the receiver's selection foreground color. |
| public int | Returns: the index of the selected tab item or -1Return the index of the selected tab item, or -1 if there is no selection. |
| public boolean | Returns: true if the CTabFolder is rendered with a simple shapeReturns |
| public boolean | Returns: true if the CTabFolder only displays the selected tab and false if the CTabFolder displays multiple tabsReturns |
| public int | getStyle()
Overrides org. |
| public int | |
| public int | |
| public Control | Returns: the control in the top right corner of the tab folder or nullReturns the control in the top right corner of the tab folder. |
| public int | Returns: the alignment of the top right control which is eitherSWT.RIGHT or SWT.FILLReturns the alignment of the top right control. |
| public boolean | Returns: true if the close button appears on unselected tabsReturns |
| public boolean | Returns: true if an image appears in unselected tabsReturns |
| pack-priv int | |
| public int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | removeCTabFolder2Listener(CTabFolder2Listener
the listener which should no longer be notified listener)Removes the listener. |
| public void | removeCTabFolderListener(CTabFolderListener
the listener which should no longer be notified listener)
Deprecated
see removeCTabFolderCloseListener(CTabFolderListener)
Removes the listener.
|
| public void | removeSelectionListener(SelectionListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the user changes the receiver's selection. |
| pack-priv void | removeTabControl(Control
the control to be removed control)Removes the control from the list of tab controls. |
| pack-priv void | |
| public void | reskin(int
the flags specifying how to reskin flags)Overrides org. |
| pack-priv void | |
| public void | setBackground(Color
the new color (or null) color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
| public void | setBackground(Color[]
an array of Color that specifies the colors to appear in the gradient
in order of appearance left to right. The value colors, int[] null clears the
background gradient. The value null can be used inside the array of
Color to specify the background color.an array of integers between 0 and 100 specifying the percent of the width
of the widget at which the color should change. The size of the percents)percents
array must be one less than the size of the colors array.Specify a gradient of colors to be drawn in the background of the unselected tabs. |
| public void | setBackground(Color[]
an array of Color that specifies the colors to appear in the gradient
in order of appearance left to right. The value colors, int[] null clears the
background gradient. The value null can be used inside the array of
Color to specify the background color.an array of integers between 0 and 100 specifying the percent of the width
of the widget at which the color should change. The size of the percents, boolean percents
array must be one less than the size of the colors array.indicate the direction of the gradient. vertical)True is vertical and false is horizontal.Specify a gradient of colors to be drawn in the background of the unselected tab. |
| public void | setBackgroundImage(Image
the new image (or null) image)Overrides org. |
| public void | setBorderVisible(boolean
true if the border should be displayed show)Toggle the visibility of the border |
| pack-priv void | |
| pack-priv void | setChevronVisible(boolean visible)
Sets whether a chevron is shown when there are more items to be displayed. |
| public boolean | setFocus()
Overrides org. |
| public void | setFont(Font
the new font (or null) font)Overrides org. |
| public void | setForeground(Color
the new color (or null) color)
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
| public void | setHighlightEnabled(boolean
true if the selected tab should be highlighted,
false otherwise.Sets whether the selected tab is rendered as highlighted. |
| public void | setInsertMark(CTabItem
the item with which the mark is associated or null item, boolean true if the mark should be displayed after the specified item after)Display an insert marker before or after the specified tab item. |
| public void | setInsertMark(int
the index of the item with which the mark is associated or -1 index, boolean true if the mark should be displayed after the specified item after)Display an insert marker before or after the specified tab item. |
| pack-priv boolean | |
| pack-priv void | setItemOrder(int[]
an array containing the new indices for all items indices)Reorder the items of the receiver. |
| pack-priv boolean | |
| public void | setLayout(Layout
the receiver's new layout or null layout)Overrides org. |
| public void | |
| public void | setMaximizeVisible(boolean
the new visibility state visible)Marks the receiver's maximize button as visible if the argument is |
| public void | |
| public void | setMinimizeVisible(boolean
the new visibility state visible)Marks the receiver's minimize button as visible if the argument is |
| public void | setMinimumCharacters(int
the minimum number of characters that will be displayed in a fully compressed tab count)Sets the minimum number of characters that will be displayed in a fully compressed tab. |
| public void | setMRUVisible(boolean
the new visibility state show)When there is not enough horizontal space to show all the tabs, by default, tabs are shown sequentially from left to right in order of their index. |
| public void | setRenderer(CTabFolderRenderer
a new renderer renderer)Sets the renderer which is associated with the receiver to be the argument which may be null. |
| public void | setSelectedImageVisible(boolean
true makes the image appearSpecify whether the image appears on selected tabs. |
| public void | setSelection(CTabItem
the tab item to be selected item)Set the selection to the tab at the specified item. |
| public void | setSelection(int
the index of the tab item to be selected index)Set the selection to the tab at the specified index. |
| pack-priv void | |
| public void | setSelectionBackground(Color
the new color (or null) color)Sets the receiver's selection background color to the color specified by the argument, or to the default system color for the control if the argument is null. |
| public void | setSelectionBackground(Color[]
an array of Color that specifies the colors to appear in the gradient
in order of appearance left to right. The value colors, int[] null clears the
background gradient. The value null can be used inside the array of
Color to specify the background color.an array of integers between 0 and 100 specifying the percent of the width
of the widget at which the color should change. The size of the percents array must be one
less than the size of the colors array. percents)Specify a gradient of colours to be draw in the background of the selected tab. |
| public void | setSelectionBackground(Color[]
an array of Color that specifies the colors to appear in the gradient
in order of appearance left to right. The value colors, int[] null clears the
background gradient. The value null can be used inside the array of
Color to specify the background color.an array of integers between 0 and 100 specifying the percent of the width
of the widget at which the color should change. The size of the percents array must be one
less than the size of the colors array. percents, boolean indicate the direction of the gradient. True is vertical and false is horizontal. vertical)Specify a gradient of colours to be draw in the background of the selected tab. |
| public void | setSelectionBackground(Image
the image to be drawn in the background image)Set the image to be drawn in the background of the selected tab. |
| public void | setSelectionBarThickness(int
the desired thickness. Must be positive and lower than thickness)CTabFolderRenderer#ITEM_TOP_MARGIN (that is either 0 1 or 2 at the moment),for correct results.
Set to 0 to not draw a highlight bar.Sets the thickness of the highlight bar on the selected tab. |
| public void | setSelectionForeground(Color
the color of the text displayed in the selected tab color)Set the foreground color of the selected tab. |
| pack-priv void | |
| public void | setSimple(boolean
true if the CTabFolder should render itself in a simple, traditional styleSets the shape that the CTabFolder will use to render itself. |
| public void | setSingle(boolean
true if only the selected tab should be displayed otherwise, multiple tabs will be shown.Sets the number of tabs that the CTabFolder should display |
| public void | setTabHeight(int
the point value of the height or -1 height)Specify a fixed height for the tab items. |
| public void | setTabPosition(int
SWT.TOP for tabs along the top or SWT.BOTTOM for tabs along the bottomSpecify whether the tabs should appear along the top of the folder or along the bottom of the folder. |
| public void | setTopRight(Control
the control to be displayed in the top right corner or null control)Set the control that appears in the top right corner of the tab folder. |
| public void | setTopRight(Control
the control to be displayed in the top right corner or null control, int SWT.RIGHT or SWT.FILL or SWT.RIGHT | SWT.WRAPSet the control that appears in the top right corner of the tab folder. |
| public void | setUnselectedCloseVisible(boolean
true makes the close button appearSpecify whether the close button appears when the user hovers over an unselected tabs. |
| public void | setUnselectedImageVisible(boolean
true makes the image appearSpecify whether the image appears on unselected tabs. |
| pack-priv boolean | |
| public void | |
| pack-priv void | |
| public void | |
| pack-priv String | |
| pack-priv void | |
| pack-priv void | |
| private void | updateChevronImage(boolean
true if the update is required for changed
appearance of the chevron. In this case the image is not
created if it does not already exist and is updated even
if the drawn number (chevonCount) has not changed.Update the cached chevron image. |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | |
| private void | |
| private void | |
| pack-priv boolean |