|
|||||||||
| Home >> All >> org >> eclipse >> swt >> [ widgets overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.swt.widgets
Class TabItem

java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Item
org.eclipse.swt.widgets.TabItem
- public class TabItem
- extends Item
Instances of this class represent a selectable user interface object corresponding to a tab for a page in a tab folder.
- Styles:
- (none)
- Events:
- (none)
IMPORTANT: This class is not intended to be subclassed.
| Field Summary | |
(package private) Control |
control
|
(package private) long |
imageHandle
|
(package private) long |
labelHandle
|
(package private) long |
pageHandle
|
(package private) TabFolder |
parent
|
(package private) java.lang.String |
toolTipText
|
| Fields inherited from class org.eclipse.swt.widgets.Item |
image, text |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
ACTIVATE, BUTTON_PRESS_EVENT, BUTTON_RELEASE_EVENT, CANVAS, CHANGED, CLICKED, COMMIT, CONFIGURE_EVENT, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DELETE_EVENT, DELETE_RANGE, DELETE_TEXT, DISABLED, display, DISPOSED, ENTER_NOTIFY_EVENT, EVENT, EVENT_AFTER, eventTable, EXPOSE_EVENT, FOCUS, FOCUS_IN_EVENT, FOCUS_OUT_EVENT, handle, HANDLE, HIDE, INSERT_TEXT, KEY_PRESS_EVENT, KEY_RELEASE_EVENT, KEYED_DATA, LEAVE_NOTIFY_EVENT, MAP_EVENT, MENU, MNEMONIC_ACTIVATE, MOTION_NOTIFY_EVENT, OBSCURED, POPUP_MENU, PREEDIT_CHANGED, REALIZE, ROW_ACTIVATED, SCROLL_CHILD, SELECT, SHOW, SHOW_HELP, SIZE_ALLOCATE, state, style, STYLE_SET, SWITCH_PAGE, TEST_COLLAPSE_ROW, TEST_EXPAND_ROW, TOGGLED, UNMAP_EVENT, UNREALIZE, VALUE_CHANGED, VISIBILITY_NOTIFY_EVENT, WINDOW_STATE_EVENT |
| Constructor Summary | |
TabItem(TabFolder parent,
int style)
Constructs a new instance of this class given its parent (which must be a TabFolder) and a style value
describing its behavior and appearance. |
|
TabItem(TabFolder parent,
int style,
int index)
Constructs a new instance of this class given its parent (which must be a TabFolder), a style value
describing its behavior and appearance, and the index
at which to place it in the items maintained by its parent. |
|
| Method Summary | |
(package private) void |
createWidget(int index)
|
(package private) void |
deregister()
|
Control |
getControl()
Returns the control that is used to fill the client area of the tab folder when the user selects the tab item. |
TabFolder |
getParent()
Returns the receiver's parent, which must be a TabFolder. |
java.lang.String |
getToolTipText()
Returns the receiver's tool tip text, or null if it has not been set. |
(package private) long |
gtk_mnemonic_activate(long widget,
long arg1)
|
(package private) void |
hookEvents()
|
(package private) void |
register()
|
(package private) void |
releaseChild()
|
(package private) void |
releaseHandle()
|
(package private) void |
releaseWidget()
|
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. |
(package private) void |
setFontDescription(long font)
|
(package private) void |
setForegroundColor(org.eclipse.swt.internal.gtk.GdkColor color)
|
void |
setImage(org.eclipse.swt.graphics.Image image)
Sets the receiver's image to the argument, which may be null indicating that no image should be displayed. |
void |
setText(java.lang.String string)
Sets the receiver's text. |
void |
setToolTipText(java.lang.String string)
Sets the receiver's tool tip text to the argument, which may be null indicating that no tool tip text should be shown. |
| Methods inherited from class org.eclipse.swt.widgets.Item |
checkSubclass, getImage, getNameText, getText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
labelHandle
long labelHandle
imageHandle
long imageHandle
pageHandle
long pageHandle
control
Control control
parent
TabFolder parent
toolTipText
java.lang.String toolTipText
| Constructor Detail |
TabItem
public TabItem(TabFolder parent, int style)
- Constructs a new instance of this class given its parent
(which must be a
TabFolder) and a style value describing its behavior and appearance. The item is added to the end of the items maintained by its parent.The style value is either one of the style constants defined in class
SWTwhich is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using theint"|" operator) two or more of thoseSWTstyle constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.
TabItem
public TabItem(TabFolder parent, int style, int index)
- Constructs a new instance of this class given its parent
(which must be a
TabFolder), a style value describing its behavior and appearance, and the index at which to place it in the items maintained by its parent.The style value is either one of the style constants defined in class
SWTwhich is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using theint"|" operator) two or more of thoseSWTstyle constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.
| Method Detail |
createWidget
void createWidget(int index)
- Overrides:
createWidgetin classWidget
deregister
void deregister()
- Overrides:
deregisterin classWidget
getControl
public Control getControl()
- Returns the control that is used to fill the client area of
the tab folder when the user selects the tab item. If no
control has been set, return
null.
getParent
public TabFolder getParent()
- Returns the receiver's parent, which must be a
TabFolder.
getToolTipText
public java.lang.String getToolTipText()
- Returns the receiver's tool tip text, or null if it has
not been set.
gtk_mnemonic_activate
long gtk_mnemonic_activate(long widget,
long arg1)
- Overrides:
gtk_mnemonic_activatein classWidget
hookEvents
void hookEvents()
- Overrides:
hookEventsin classWidget
register
void register()
releaseChild
void releaseChild()
- Overrides:
releaseChildin classWidget
releaseHandle
void releaseHandle()
- Overrides:
releaseHandlein classWidget
releaseWidget
void releaseWidget()
- Overrides:
releaseWidgetin classItem
setControl
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.
setFontDescription
void setFontDescription(long font)
setForegroundColor
void setForegroundColor(org.eclipse.swt.internal.gtk.GdkColor color)
setImage
public void setImage(org.eclipse.swt.graphics.Image image)
- Description copied from class:
Item - Sets the receiver's image to the argument, which may be
null indicating that no image should be displayed.
setText
public void setText(java.lang.String string)
- Sets the receiver's text. The string may include
the mnemonic character.
Mnemonics are indicated by an '&' that causes the next character to be the mnemonic. When the user presses a key sequence that matches the mnemonic, a selection event occurs. On most platforms, the mnemonic appears underlined but may be emphasised in a platform specific manner. The mnemonic indicator character '&' can be escaped by doubling it in the string, causing a single '&' to be displayed.
setToolTipText
public void setToolTipText(java.lang.String string)
- Sets the receiver's tool tip text to the argument, which
may be null indicating that no tool tip text should be shown.
|
|||||||||
| Home >> All >> org >> eclipse >> swt >> [ widgets overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC