The item children that may be added to instances of this class
must be of type TabItem.
Control children are created and then set into a
tab item using TabItem#setControl.
Note that although this class is a subclass of Composite,
it does not make sense to set a layout on it.
Note
Only one of the styles TOP and BOTTOM may be specified.
Important Note
This class is not intended to be subclassed.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Control[] | |
| 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 static int | |
| protected void | checkSubclass()
Checks that this class can be subclassed.
|
| pack-priv long | |
| pack-priv Point | computeSizeInPixels(int wHint, int hHint, boolean changed)
Overrides org. |
| pack-priv Rectangle | computeTrimInPixels(int x, int y, int width, int height)
Overrides org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv long | |
| pack-priv Rectangle | |
| public TabItem | Returns: the item at the given indexthe index of the item to return index)Returns the item at the given, zero-relative index in the receiver. |
| public TabItem | |
| public int | |
| public TabItem[] | Returns: the items in the receiverReturns an array of |
| public TabItem[] | Returns: an array representing the selectionReturns an array of |
| public int | Returns: the index of the selected itemReturns the zero-relative index of the item which is currently selected in the receiver, or -1 if no item is selected. |
| pack-priv long | |
| pack-priv long | gtk_switch_page(long notebook, long page, int page_num)
|
| pack-priv void | |
| public int | |
| pack-priv Point | minimumSize(int wHint, int hHint, boolean flushCache)
|
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| 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 | |
| pack-priv void | setBackgroundGdkRGBA(long context, long handle, GdkRGBA rgba)
Overrides org. |
| pack-priv int | setBounds(int x, int y, int width, int height, boolean move, boolean resize)
Overrides org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | setSelection(int
the index of the item to select index)Selects the item at the given zero-relative index in the receiver. |
| pack-priv void | |
| public void | |
| public void | setSelection(TabItem[]
the array of items items)Sets the receiver's selection to be the given array of items. |
| pack-priv boolean |
| imageList | back to summary |
|---|---|
| pack-priv ImageList imageList | |
| items | back to summary |
|---|---|
| pack-priv TabItem[] items | |
| TabFolder | back to summary |
|---|---|
| public TabFolder(Composite parent, int style) Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class
| |
| _getChildren | back to summary |
|---|---|
| pack-priv Control[] _getChildren() Overrides org.
| |
| addSelectionListener | back to summary |
|---|---|
| public void addSelectionListener(SelectionListener 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
When
| |
| checkStyle | back to summary |
|---|---|
| pack-priv static int checkStyle(int style) | |
| checkSubclass | back to summary |
|---|---|
| protected void checkSubclass() Overrides org. Doc from org. Checks that this class can be subclassed.
The SWT class library is intended to be subclassed
only at specific, controlled points (most notably,
Important Note By providing an implementation of this method that allows a subclass of a class which does not normally allow subclassing to be created, the implementer agrees to be fully responsible for the fact that any such subclass will likely fail between SWT releases and will be strongly platform specific. No support is provided for user-written classes which are implemented in this fashion. The ability to subclass outside of the allowed SWT classes is intended purely to enable those not on the SWT development team to implement patches in order to get around specific limitations in advance of when those limitations can be addressed by the team. Subclassing should not be attempted without an intimate and detailed understanding of the hierarchy.
| |
| clientHandle | back to summary |
|---|---|
| pack-priv long clientHandle() Overrides org.
| |
| computeSizeInPixels | back to summary |
|---|---|
| pack-priv Point computeSizeInPixels(int wHint, int hHint, boolean changed) Overrides org.
| |
| computeTrimInPixels | back to summary |
|---|---|
| pack-priv Rectangle computeTrimInPixels(int x, int y, int width, int height) Overrides org.
| |
| createHandle | back to summary |
|---|---|
| pack-priv void createHandle(int index) Overrides org.
| |
| createItem | back to summary |
|---|---|
| pack-priv void createItem(TabItem item, int index) | |
| createWidget | back to summary |
|---|---|
| pack-priv void createWidget(int index) Overrides org.
| |
| destroyItem | back to summary |
|---|---|
| pack-priv void destroyItem(TabItem item) | |
| eventHandle | back to summary |
|---|---|
| pack-priv long eventHandle() Overrides org.
| |
| getClientAreaInPixels | back to summary |
|---|---|
| pack-priv Rectangle getClientAreaInPixels() Overrides org.
| |
| getItem | back to summary |
|---|---|
| public TabItem getItem(int index) Returns the item at the given, zero-relative index in the receiver. Throws an exception if the index is out of range.
| |
| getItem | back to summary |
|---|---|
| public TabItem getItem(Point point) Returns the tab item at the given point in the receiver or null if no such item exists. The point is in the coordinate system of the receiver.
| |
| getItemCount | back to summary |
|---|---|
| public int getItemCount() Returns the number of items contained in the receiver.
| |
| getItems | back to summary |
|---|---|
| public TabItem[] getItems() Returns an array of Note This is not the actual structure used by the receiver to maintain its list of items, so modifying the array will not affect the receiver.
| |
| getSelection | back to summary |
|---|---|
| public TabItem[] getSelection() Returns an array of Note This is not the actual structure used by the receiver to maintain its selection, so modifying the array will not affect the receiver.
| |
| getSelectionIndex | back to summary |
|---|---|
| public int getSelectionIndex() Returns the zero-relative index of the item which is currently selected in the receiver, or -1 if no item is selected.
| |
| gtk_focus | back to summary |
|---|---|
| pack-priv long gtk_focus(long widget, long directionType) Overrides org.
| |
| gtk_switch_page | back to summary |
|---|---|
| pack-priv long gtk_switch_page(long notebook, long page, int page_num) Overrides org.
| |
| hookEvents | back to summary |
|---|---|
| pack-priv void hookEvents() Overrides org.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(TabItem item) Searches the receiver's list starting at the first item (index 0) until an item is found that is equal to the argument, and returns the index of that item. If no item is found, returns -1.
| |
| minimumSize | back to summary |
|---|---|
| pack-priv Point minimumSize(int wHint, int hHint, boolean flushCache) Overrides org.
| |
| mnemonicHit | back to summary |
|---|---|
| pack-priv boolean mnemonicHit(char key) Overrides org.
| |
| mnemonicMatch | back to summary |
|---|---|
| pack-priv boolean mnemonicMatch(char key) Overrides org.
| |
| releaseChildren | back to summary |
|---|---|
| pack-priv void releaseChildren(boolean destroy) Overrides org.
| |
| releaseWidget | back to summary |
|---|---|
| pack-priv void releaseWidget() Overrides org.
| |
| removeControl | back to summary |
|---|---|
| pack-priv void removeControl(Control control) Overrides org.
| |
| removeSelectionListener | back to summary |
|---|---|
| public void removeSelectionListener(SelectionListener listener) Removes the listener from the collection of listeners who will be notified when the user changes the receiver's selection.
| |
| reskinChildren | back to summary |
|---|---|
| pack-priv void reskinChildren(int flags) Overrides org.
| |
| setBackgroundGdkRGBA | back to summary |
|---|---|
| pack-priv void setBackgroundGdkRGBA(long context, long handle, GdkRGBA rgba) Overrides org.
| |
| setBounds | back to summary |
|---|---|
| pack-priv int setBounds(int x, int y, int width, int height, boolean move, boolean resize) Overrides org.
| |
| setFontDescription | back to summary |
|---|---|
| pack-priv void setFontDescription(long font) Overrides org.
| |
| setForegroundGdkRGBA | back to summary |
|---|---|
| pack-priv void setForegroundGdkRGBA(GdkRGBA rgba) Overrides org.
| |
| setOrientation | back to summary |
|---|---|
| pack-priv void setOrientation(boolean create) Overrides org.
| |
| setSelection | back to summary |
|---|---|
| public void setSelection(int index) Selects the item at the given zero-relative index in the receiver. If the item at the index was already selected, it remains selected. The current selection is first cleared, then the new items are selected. Indices that are out of range are ignored.
| |
| setSelection | back to summary |
|---|---|
| pack-priv void setSelection(int index, boolean notify) | |
| setSelection | back to summary |
|---|---|
| public void setSelection(TabItem item) Sets the receiver's selection to the given item. The current selected is first cleared, then the new item is selected.
| |
| setSelection | back to summary |
|---|---|
| public void setSelection(TabItem[] items) Sets the receiver's selection to be the given array of items. The current selected is first cleared, then the new items are selected.
| |
| traversePage | back to summary |
|---|---|
| pack-priv boolean traversePage(final boolean next) Overrides org.
| |