|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.eclipse.swt.widgets.Widget
|
+--org.eclipse.swt.widgets.Control
|
+--org.eclipse.swt.widgets.Scrollable
|
+--org.eclipse.swt.widgets.Composite
|
+--org.eclipse.swt.widgets.ToolBar
Safe:
| Field Summary | |
(package private) static int |
DEFAULT_HEIGHT
|
(package private) static int |
DEFAULT_WIDTH
|
(package private) ImageList |
disabledImageList
|
(package private) ImageList |
hotImageList
|
(package private) boolean |
ignoreResize
|
(package private) ImageList |
imageList
|
(package private) ToolItem[] |
items
|
(package private) int |
lastFocusId
|
(package private) static org.eclipse.swt.internal.win32.TCHAR |
ToolBarClass
|
(package private) static int |
ToolBarProc
|
| Fields inherited from class org.eclipse.swt.widgets.Composite |
font, layout, lpwp, tabList |
| Fields inherited from class org.eclipse.swt.widgets.Scrollable |
horizontalBar, verticalBar |
| Fields inherited from class org.eclipse.swt.widgets.Control |
ACCENTS, accessible, background, drawCount, foreground, handle, hCursor, layoutData, menu, parent, toolTipText |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
CANVAS, COMCTL32_MAJOR, COMCTL32_MINOR, data, DISABLED, DISPOSED, eventTable, HIDDEN, keys, MAJOR, MINOR, Mnemonic, state, style, values |
| Constructor Summary | |
ToolBar(Composite parent,
int style)
Enabled: Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
|
| Method Summary | |
(package private) int |
callWindowProc(int msg,
int wParam,
int lParam)
|
(package private) static int |
checkStyle(int style)
|
protected void |
checkSubclass()
Checks that this class can be subclassed. |
Point |
computeSize(int wHint,
int hHint,
boolean changed)
Enabled: |
Rectangle |
computeTrim(int x,
int y,
int width,
int height)
Enabled: |
(package private) void |
createHandle()
|
(package private) void |
createItem(ToolItem item,
int index)
|
(package private) void |
createWidget()
|
(package private) int |
defaultBackground()
|
(package private) void |
destroyItem(ToolItem item)
|
(package private) ImageList |
getDisabledImageList()
|
(package private) ImageList |
getHotImageList()
|
(package private) ImageList |
getImageList()
|
ToolItem |
getItem(int index)
Enabled: Returns the item at the given, zero-relative index in the receiver. |
ToolItem |
getItem(Point point)
Enabled: Returns the item at the given point in the receiver or null if no such item exists. |
int |
getItemCount()
Enabled: Returns the number of items contained in the receiver. |
ToolItem[] |
getItems()
Enabled: Returns an array of TabItems which are the items
in the receiver. |
int |
getRowCount()
Enabled: Returns the number of rows in the receiver. |
int |
indexOf(ToolItem item)
Enabled: 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. |
(package private) void |
layoutItems()
|
(package private) boolean |
mnemonicHit(char ch)
|
(package private) boolean |
mnemonicMatch(char ch)
|
(package private) void |
releaseWidget()
|
(package private) void |
setBounds(int x,
int y,
int width,
int height,
int flags)
|
(package private) void |
setDefaultFont()
|
(package private) void |
setDisabledImageList(ImageList imageList)
|
(package private) void |
setHotImageList(ImageList imageList)
|
(package private) void |
setImageList(ImageList imageList)
|
(package private) boolean |
setTabItemFocus()
|
(package private) String |
toolTipText(org.eclipse.swt.internal.win32.NMTTDISPINFO hdr)
|
(package private) int |
widgetStyle()
|
(package private) org.eclipse.swt.internal.win32.TCHAR |
windowClass()
|
(package private) int |
windowProc()
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_COMMAND(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_GETDLGCODE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_KEYDOWN(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_KILLFOCUS(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_NOTIFY(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SETFOCUS(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SIZE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_WINDOWPOSCHANGING(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
wmCommandChild(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
wmNotifyChild(int wParam,
int lParam)
|
| Methods inherited from class org.eclipse.swt.widgets.Composite |
_getChildren, _getTabList, computeTabList, getChildren, getChildrenCount, getLayout, getTabList, hooksKeys, layout, layout, minimumSize, moveAbove, moveBelow, releaseChildren, resizeChildren, resizeChildren, setFocus, setLayout, setResizeChildren, setTabGroupFocus, setTabList, translateMnemonic, updateFont, WM_ERASEBKGND, WM_GETFONT, WM_LBUTTONDOWN, WM_PAINT, WM_SETFONT, WM_SYSCOLORCHANGE, WM_SYSCOMMAND |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
createScrollBar, getClientArea, getHorizontalBar, getVerticalBar, widgetExtStyle, WM_HSCROLL, WM_MOUSEWHEEL, WM_VSCROLL, wmScroll |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkBits, checkParent, checkWidget, dispose, error, filters, getData, getData, getName, getNameText, getStyle, hooks, isListening, isValidSubclass, isValidThread, mbcsToWcs, mbcsToWcs, notifyListeners, postEvent, postEvent, releaseChild, releaseResources, removeDisposeListener, removeListener, removeListener, sendEvent, sendEvent, sendEvent, sendEvent, setData, setData, setInputState, setKeyState, toString, wcsToMbcs, wcsToMbcs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
int lastFocusId
ToolItem[] items
boolean ignoreResize
ImageList imageList
ImageList disabledImageList
ImageList hotImageList
static final int ToolBarProc
static final org.eclipse.swt.internal.win32.TCHAR ToolBarClass
static final int DEFAULT_WIDTH
static final int DEFAULT_HEIGHT
| Constructor Detail |
public ToolBar(Composite parent,
int style)
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.
parent - a composite control which will be the parent of the new instance (cannot be null)style - the style of control to constructSWT.FLAT,
SWT.WRAP,
SWT.RIGHT,
SWT.HORIZONTAL,
SWT.SHADOW_OUT,
SWT.VERTICAL,
Widget.checkSubclass(),
Widget.getStyle()| Method Detail |
int callWindowProc(int msg,
int wParam,
int lParam)
callWindowProc in class Scrollablestatic int checkStyle(int style)
protected void checkSubclass()
Widget
The SWT class library is intended to be subclassed
only at specific, controlled points (most notably,
Composite and Canvas when
implementing new widgets). This method enforces this
rule unless it is overridden.
IMPORTANT: 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.
checkSubclass in class Composite
public Point computeSize(int wHint,
int hHint,
boolean changed)
computeSize in class CompositewHint - the width hint (can be SWT.DEFAULT)hHint - the height hint (can be SWT.DEFAULT)changed - true if the control's contents have changed, and false otherwise
Layout,
Control.getBorderWidth(),
Control.getBounds(),
Control.getSize(),
Control.pack(),
"computeTrim, getClientArea for controls that implement them"
public Rectangle computeTrim(int x,
int y,
int width,
int height)
computeTrim in class ScrollableScrollable.getClientArea()void createHandle()
createHandle in class Composite
void createItem(ToolItem item,
int index)
void createWidget()
createWidget in class Scrollableint defaultBackground()
defaultBackground in class Controlvoid destroyItem(ToolItem item)
ImageList getDisabledImageList()
ImageList getHotImageList()
ImageList getImageList()
public ToolItem getItem(int index)
index - the index of the item to return
public ToolItem getItem(Point point)
point - the point used to locate the item
public int getItemCount()
public ToolItem[] getItems()
TabItems which are the items
in the receiver.
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.
public int getRowCount()
WRAP style, the
number of rows can be greater than one. Otherwise,
the number of rows is always one.
public int indexOf(ToolItem item)
item - the search item
void layoutItems()
boolean mnemonicHit(char ch)
mnemonicHit in class Controlboolean mnemonicMatch(char ch)
mnemonicMatch in class Controlvoid releaseWidget()
releaseWidget in class Composite
void setBounds(int x,
int y,
int width,
int height,
int flags)
setBounds in class Controlvoid setDefaultFont()
setDefaultFont in class Controlvoid setDisabledImageList(ImageList imageList)
void setHotImageList(ImageList imageList)
void setImageList(ImageList imageList)
boolean setTabItemFocus()
setTabItemFocus in class CompositeString toolTipText(org.eclipse.swt.internal.win32.NMTTDISPINFO hdr)
toolTipText in class Compositeint widgetStyle()
widgetStyle in class Compositeorg.eclipse.swt.internal.win32.TCHAR windowClass()
windowClass in class Scrollableint windowProc()
windowProc in class Scrollable
org.eclipse.swt.internal.win32.LRESULT WM_GETDLGCODE(int wParam,
int lParam)
WM_GETDLGCODE in class Composite
org.eclipse.swt.internal.win32.LRESULT WM_COMMAND(int wParam,
int lParam)
WM_COMMAND in class Control
org.eclipse.swt.internal.win32.LRESULT WM_KEYDOWN(int wParam,
int lParam)
WM_KEYDOWN in class Control
org.eclipse.swt.internal.win32.LRESULT WM_KILLFOCUS(int wParam,
int lParam)
WM_KILLFOCUS in class Control
org.eclipse.swt.internal.win32.LRESULT WM_NOTIFY(int wParam,
int lParam)
WM_NOTIFY in class Composite
org.eclipse.swt.internal.win32.LRESULT WM_SETFOCUS(int wParam,
int lParam)
WM_SETFOCUS in class Control
org.eclipse.swt.internal.win32.LRESULT WM_SIZE(int wParam,
int lParam)
WM_SIZE in class Composite
org.eclipse.swt.internal.win32.LRESULT WM_WINDOWPOSCHANGING(int wParam,
int lParam)
WM_WINDOWPOSCHANGING in class Control
org.eclipse.swt.internal.win32.LRESULT wmCommandChild(int wParam,
int lParam)
wmCommandChild in class Control
org.eclipse.swt.internal.win32.LRESULT wmNotifyChild(int wParam,
int lParam)
wmNotifyChild in class Control
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||