Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.swt.widgets
Class TabItem  view TabItem download TabItem.java

java.lang.Object
  extended byorg.eclipse.swt.widgets.Widget
      extended byorg.eclipse.swt.widgets.Item
          extended byorg.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 org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkBits, checkOrientation, checkParent, checkWidget, createHandle, destroyWidget, dispose, error, filterProc, filters, fixMnemonic, fontHeight, getData, getData, getDisplay, getName, getStyle, gtk_activate, gtk_button_press_event, gtk_button_release_event, gtk_changed, gtk_clicked, gtk_commit, gtk_configure_event, gtk_delete_event, gtk_delete_range, gtk_delete_text, gtk_enter_notify_event, gtk_event_after, gtk_event, gtk_expose_event, gtk_focus_in_event, gtk_focus_out_event, gtk_focus, gtk_hide, gtk_insert_text, gtk_key_press_event, gtk_key_release_event, gtk_leave_notify_event, gtk_map_event, gtk_motion_notify_event, gtk_popup_menu, gtk_preedit_changed, gtk_realize, gtk_row_activated, gtk_scroll_child, gtk_select, gtk_show_help, gtk_show, gtk_size_allocate, gtk_style_set, gtk_switch_page, gtk_test_collapse_row, gtk_test_expand_row, gtk_timer, gtk_toggled, gtk_unmap_event, gtk_unrealize, gtk_value_changed, gtk_visibility_notify_event, gtk_window_state_event, hooks, hoverProc, isDisposed, isListening, isValidSubclass, isValidThread, isValidWidget, menuPositionProc, mnemonicHit, mnemonicMatch, notifyListeners, pixbufCellDataProc, postEvent, postEvent, releaseResources, removeDisposeListener, removeListener, removeListener, sendEvent, sendEvent, sendEvent, sendEvent, setData, setData, setInputState, setKeyState, setOrientation, shellMapProc, textCellDataProc, timerProc, topHandle, toString, translateTraversal, treeSelectionProc, windowProc, windowProc, windowProc, windowProc
 
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 SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style 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 SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style 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:
createWidget in class Widget

deregister

void deregister()
Overrides:
deregister in class Widget

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_activate in class Widget

hookEvents

void hookEvents()
Overrides:
hookEvents in class Widget

register

void register()
Overrides:
register in class Widget

releaseChild

void releaseChild()
Overrides:
releaseChild in class Widget

releaseHandle

void releaseHandle()
Overrides:
releaseHandle in class Widget

releaseWidget

void releaseWidget()
Overrides:
releaseWidget in class Item

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.

Overrides:
setImage in class Item

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.

Overrides:
setText in class Item

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.