Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv Rectangle | |
| pack-priv Control | |
| pack-priv Image | |
| pack-priv Font | |
| pack-priv Color | |
| pack-priv int | |
| pack-priv CTabFolder | |
| pack-priv Color | |
| pack-priv String | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv String | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | CTabItem(CTabFolder
a CTabFolder which will be the parent of the new instance (cannot be null) parent, int the style of control to construct style)Constructs a new instance of this class given its parent
(which must be a |
| public | CTabItem(CTabFolder
a CTabFolder which will be the parent of the new instance (cannot be null) parent, int the style of control to construct style, int the zero-relative index to store the receiver in its parent index)Constructs a new instance of this class given its parent
(which must be a |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Overrides org. |
| public Rectangle | Returns: the receiver's bounding column rectangleReturns a rectangle describing the receiver's size and location relative to its parent. |
| public Control | Returns: the controlGets the control that is displayed in the content area of the tab item. |
| public Image | Returns: the disabled image or null
Deprecated
the disabled image is not used
Get the image displayed in the tab if the tab is disabled.
|
| public Font | Returns: the receiver's fontReturns the font that the receiver will use to paint textual information. |
| public Color | Returns: the receiver's foreground colorReturns the foreground color that the receiver will use to paint textual information. |
| public CTabFolder | |
| public Color | Returns: the receiver's selection foreground colorReturns the selection foreground color that the receiver will use to paint textual information. |
| public boolean | Returns: true if the close button should be shownReturns |
| public String | Returns: the receiver's tool tip textReturns the receiver's tool tip text, or null if it has not been set. |
| public boolean | Returns: true if the item will be rendered in the visible area of the CTabFolder. Returns false otherwise.Returns |
| public void | setControl(Control
the new control (or null) control)Sets the control that is used to fill the client area of the tab folder when the user selects the tab item. |
| public void | setDisabledImage(Image
the image to be displayed when the item is disabled or null image)
Deprecated
This image is not used
Sets the image that is displayed if the tab item is disabled.
|
| pack-priv boolean | |
| public void | |
| public void | setForeground(Color
the new color (or null) color)Sets the foreground color that the receiver will use to paint textual information for this item to the color specified by the argument, or to the default foreground color for that kind of control if the argument is null. |
| public void | setImage(Image
the image to display on the receiver (may be null) image)Overrides org. |
| public void | setSelectionForeground(Color
the new color (or null) color)Sets the selection foreground color that the receiver will use to paint textual information for this item to the color specified by the argument, or to the default selection foreground color for that kind of control if the argument is null. |
| public void | setShowClose(boolean
the new state of the close button close)Sets to |
| public void | setText(String
the tab name string)Overrides org. |
| public void | setToolTipText(String
the new tool tip text (or null) string)Sets the receiver's tool tip text to the argument, which may be null indicating that the default tool tip for the control will be shown. |
| closeImageState | back to summary |
|---|---|
| pack-priv int closeImageState | |
| closeRect | back to summary |
|---|---|
| pack-priv Rectangle closeRect | |
| control | back to summary |
|---|---|
| pack-priv Control control | |
| disabledImage | back to summary |
|---|---|
| pack-priv Image disabledImage | |
| font | back to summary |
|---|---|
| pack-priv Font font | |
| foreground | back to summary |
|---|---|
| pack-priv Color foreground | |
| height | back to summary |
|---|---|
| pack-priv int height | |
| parent | back to summary |
|---|---|
| pack-priv CTabFolder parent | |
| selectionForeground | back to summary |
|---|---|
| pack-priv Color selectionForeground | |
| shortenedText | back to summary |
|---|---|
| pack-priv String shortenedText | |
| shortenedTextWidth | back to summary |
|---|---|
| pack-priv int shortenedTextWidth | |
| showClose | back to summary |
|---|---|
| pack-priv boolean showClose | |
| showing | back to summary |
|---|---|
| pack-priv boolean showing | |
| state | back to summary |
|---|---|
| pack-priv int state | |
| toolTipText | back to summary |
|---|---|
| pack-priv String toolTipText | |
| width | back to summary |
|---|---|
| pack-priv int width | |
| x | back to summary |
|---|---|
| pack-priv int x | |
| y | back to summary |
|---|---|
| pack-priv int y | |
| CTabItem | back to summary |
|---|---|
| public CTabItem(CTabFolder parent, int style) Constructs a new instance of this class given its parent
(which must be a
The style value is either one of the style constants defined in
class
| |
| CTabItem | back to summary |
|---|---|
| public CTabItem(CTabFolder parent, int style, int index) Constructs a new instance of this class given its parent
(which must be a
The style value is either one of the style constants defined in
class
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides org. Doc from org. Disposes of the operating system resources associated with
the receiver and all its descendants. After this method has
been invoked, the receiver and all descendants will answer
Note This method is not called recursively on the descendants
of the receiver. This means that, widget implementers can not
detect when a widget is being disposed of by re-implementing
this method, but should instead listen for the
| |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Returns a rectangle describing the receiver's size and location relative to its parent.
| |
| getControl | back to summary |
|---|---|
| public Control getControl() Gets the control that is displayed in the content area of the tab item.
| |
| getDisabledImage | back to summary |
|---|---|
| public Image getDisabledImage()
Deprecated the disabled image is not used Get the image displayed in the tab if the tab is disabled.
| |
| getFont | back to summary |
|---|---|
| public Font getFont() Returns the font that the receiver will use to paint textual information.
| |
| getForeground | back to summary |
|---|---|
| public Color getForeground() Returns the foreground color that the receiver will use to paint textual information.
| |
| getParent | back to summary |
|---|---|
| public CTabFolder getParent() Returns the receiver's parent, which must be a
| |
| getSelectionForeground | back to summary |
|---|---|
| public Color getSelectionForeground() Returns the selection foreground color that the receiver will use to paint textual information.
| |
| getShowClose | back to summary |
|---|---|
| public boolean getShowClose() Returns
| |
| getToolTipText | back to summary |
|---|---|
| public String getToolTipText() Returns the receiver's tool tip text, or null if it has not been set.
| |
| isShowing | back to summary |
|---|---|
| public boolean isShowing() Returns
| |
| setControl | back to summary |
|---|---|
| public void setControl(Control control) Sets the control that is used to fill the client area of the tab folder when the user selects the tab item.
| |
| setDisabledImage | back to summary |
|---|---|
| public void setDisabledImage(Image image)
Deprecated This image is not used Sets the image that is displayed if the tab item is disabled. Null will clear the image.
| |
| setFocus | back to summary |
|---|---|
| pack-priv boolean setFocus() | |
| setFont | back to summary |
|---|---|
| public void setFont(Font font) Sets the font that the receiver will use to paint textual information for this item to the font specified by the argument, or to the default font for that kind of control if the argument is null.
| |
| setForeground | back to summary |
|---|---|
| public void setForeground(Color color) Sets the foreground color that the receiver will use to paint textual information for this item to the color specified by the argument, or to the default foreground color for that kind of control if the argument is null.
| |
| setImage | back to summary |
|---|---|
| public void setImage(Image image) Overrides org. Doc from org. Sets the receiver's image to the argument, which may be null indicating that no image should be displayed. | |
| setSelectionForeground | back to summary |
|---|---|
| public void setSelectionForeground(Color color) Sets the selection foreground color that the receiver will use to paint textual information for this item to the color specified by the argument, or to the default selection foreground color for that kind of control if the argument is null.
| |
| setShowClose | back to summary |
|---|---|
| public void setShowClose(boolean close) Sets to
| |
| setText | back to summary |
|---|---|
| public void setText(String string) Overrides org. Sets the text to display on the tab. A carriage return '\n' allows to display multi line text.
| |
| setToolTipText | back to summary |
|---|---|
| public void setToolTipText(String string) Sets the receiver's tool tip text to the argument, which may be null indicating that the default tool tip for the control will be shown. For a control that has a default tool tip, such as the Tree control on Windows, setting the tool tip text to an empty string replaces the default, causing no tool tip text to be shown. The mnemonic indicator (character '&') is not displayed in a tool tip. To display a single '&' in the tool tip, the character '&' can be escaped by doubling it in the string.
| |