The item children that may be added to instances of this class
must be of type ToolItem.
Note that although this class is a subclass of Composite,
it does not make sense to add Control children to it,
or set a layout on it.
Note
Only one of the styles HORIZONTAL and VERTICAL may be specified.
Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv String | |
| pack-priv ToolItem | |
| pack-priv boolean | |
| pack-priv ImageList | |
| pack-priv static Callback | |
| pack-priv ToolItem[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ToolItem[] | |
| pack-priv ToolItem[] | |
| pack-priv int | |
| pack-priv static int | |
| protected void | checkSubclass()
Checks that this class can be subclassed.
|
| pack-priv Point | computeSizeInPixels(int wHint, int hHint, boolean changed)
Overrides org. |
| pack-priv Widget | |
| pack-priv Widget[] | |
| pack-priv void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv boolean | |
| public ToolItem | 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 ToolItem | |
| public int | |
| pack-priv ToolItem | |
| public ToolItem[] | Returns: the items in the receiverReturns an array of |
| public int | |
| pack-priv long | |
| pack-priv long | gtk_key_press_event(long widget, long eventPtr)
Overrides org. |
| pack-priv boolean | |
| public int | |
| pack-priv long | |
| pack-priv static long | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| 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 | setForegroundGdkRGBA(long handle, GdkRGBA rgba)
Overrides org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| 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.
|
| cssBackground | back to summary |
|---|---|
| pack-priv String cssBackground | |
| cssForeground | back to summary |
|---|---|
| pack-priv String cssForeground | |
| currentFocusItem | back to summary |
|---|---|
| pack-priv ToolItem currentFocusItem | |
| hasChildFocus | back to summary |
|---|---|
| pack-priv boolean hasChildFocus | |
| imageList | back to summary |
|---|---|
| pack-priv ImageList imageList | |
| menuItemSelectedFunc | back to summary |
|---|---|
| pack-priv static Callback menuItemSelectedFunc | |
| tabItemList | back to summary |
|---|---|
| pack-priv ToolItem[] tabItemList | |
| ToolBar | back to summary |
|---|---|
| public ToolBar(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
| |
| _getItems | back to summary |
|---|---|
| pack-priv ToolItem[] _getItems() | |
| _getTabItemList | back to summary |
|---|---|
| pack-priv ToolItem[] _getTabItemList() | |
| applyThemeBackground | back to summary |
|---|---|
| pack-priv int applyThemeBackground() Overrides org.
| |
| 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.
| |
| computeSizeInPixels | back to summary |
|---|---|
| pack-priv Point computeSizeInPixels(int wHint, int hHint, boolean changed) Overrides org.
| |
| computeTabGroup | back to summary |
|---|---|
| pack-priv Widget computeTabGroup() Overrides org.
| |
| computeTabList | back to summary |
|---|---|
| pack-priv Widget[] computeTabList() Overrides org.
| |
| createHandle | back to summary |
|---|---|
| pack-priv void createHandle(int index) Overrides org.
| |
| enterExitHandle | back to summary |
|---|---|
| pack-priv long enterExitHandle() Overrides org.
| |
| eventHandle | back to summary |
|---|---|
| pack-priv long eventHandle() Overrides org.
| |
| forceFocus | back to summary |
|---|---|
| pack-priv boolean forceFocus(long focusHandle) Overrides org.
| |
| getItem | back to summary |
|---|---|
| public ToolItem 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 ToolItem getItem(Point point) Returns the 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.
| |
| getItemInPixels | back to summary |
|---|---|
| pack-priv ToolItem getItemInPixels(Point point) | |
| getItems | back to summary |
|---|---|
| public ToolItem[] 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.
| |
| getRowCount | back to summary |
|---|---|
| public int getRowCount() Returns the number of rows in the receiver. When
the receiver has the
| |
| gtk_focus | back to summary |
|---|---|
| pack-priv long gtk_focus(long widget, long directionType) Overrides org.
| |
| gtk_key_press_event | back to summary |
|---|---|
| pack-priv long gtk_key_press_event(long widget, long eventPtr) Overrides org.
| |
| hasFocus | back to summary |
|---|---|
| pack-priv boolean hasFocus() Overrides org.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(ToolItem 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.
| |
| menuItemSelected | back to summary |
|---|---|
| pack-priv long menuItemSelected(long widget, ToolItem item) | |
| MenuItemSelectedProc | back to summary |
|---|---|
| pack-priv static long MenuItemSelectedProc(long widget, long user_data) | |
| mnemonicHit | back to summary |
|---|---|
| pack-priv boolean mnemonicHit(char key) Overrides org.
| |
| mnemonicMatch | back to summary |
|---|---|
| pack-priv boolean mnemonicMatch(char key) Overrides org.
| |
| relayout | back to summary |
|---|---|
| pack-priv void relayout() | |
| 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.
| |
| 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(long handle, GdkRGBA rgba) 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.
| |
| setParentBackground | back to summary |
|---|---|
| pack-priv void setParentBackground() Overrides org.
| |
| setTabItemList | back to summary |
|---|---|
| pack-priv void setTabItemList(ToolItem[] tabList) | |
| setToolTipText | back to summary |
|---|---|
| public void setToolTipText(String string) Overrides org. Doc from org. 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. Note This operation is a hint and behavior is platform specific, on Windows for CJK-style mnemonics of the form " (&C)" at the end of the tooltip text are not shown in tooltip. | |