| java.lang.Object org.eclipse.swt.widgets.Widget
Widget | abstract public class Widget (Code) | | This class is the abstract superclass of all user interface objects.
Widgets are created, disposed and issue notification to listeners
when events occur which affect them.
- Styles:
- (none)
- Events:
- Dispose
IMPORTANT: This class is intended to be subclassed only
within the SWT implementation. However, it has not been marked
final to allow those outside of the SWT development team to implement
patched versions of the class in order to get around specific
limitations in advance of when those limitations can be addressed
by the team. Any class built using subclassing to access the internals
of this class will likely fail to compile or run between releases and
may be strongly platform specific. Subclassing should not be attempted
without an intimate and detailed understanding of the workings of the
hierarchy. No support is provided for user-written classes which are
implemented as subclasses of this class.
See Also: Widget.checkSubclass |
Constructor Summary | |
| Widget() | public | Widget(Widget 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 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. |
Method Summary | |
void | _addListener(int eventType, Listener listener) | int | accessibilityProc(int nextHandler, int theEvent, int userData) | int | actionProc(int theControl, int partCode) | public void | addDisposeListener(DisposeListener listener) Adds the listener to the collection of listeners who will
be notified when the widget is disposed. | public void | addListener(int eventType, Listener listener) Adds the listener to the collection of listeners who will
be notified when an event of the given type occurs. | void | calculateVisibleRegion(int control, int visibleRgn, boolean clipChildren) | int | callPaintEventHandler(int control, int damageRgn, int visibleRgn, int theEvent, int nextHandler) | static int | checkBits(int style, int int0, int int1, int int2, int int3, int int4, int int5) | void | checkOpen() | void | checkOrientation(Widget parent) | void | checkParent(Widget parent) | protected void | checkSubclass() Checks that this class can be subclassed.
The SWT class library is intended to be subclassed
only at specific, controlled points (most notably,
Composite and Canvas when
implementing new widgets). | protected void | checkWidget() Throws an SWTException if the receiver can not
be accessed by the caller. | int | colorProc(int inControl, int inMessage, int inDrawDepth, int inDrawInColor) | int | commandProc(int nextHandler, int theEvent, int userData) | boolean | contains(int shellX, int shellY) | int | controlProc(int nextHandler, int theEvent, int userData) | int | createCIcon(Image image) | void | createHandle() | int | createIconRef(Image image) | void | createWidget() | void | deregister() | void | destroyCIcon(int iconHandle) | void | destroyWidget() | public void | dispose() Disposes of the operating system resources associated with
the receiver and all its descendents. | void | drawBackground(int control, int context) | int | drawItemProc(int browser, int item, int property, int itemState, int theRect, int gdDepth, int colorDevice) | void | drawWidget(int control, int context, int damageRgn, int visibleRgn, int theEvent) | void | error(int code) | boolean | filters(int eventType) | int | fixMnemonic(char[] buffer) | Rectangle | getControlBounds(int control) | Point | getControlSize(int control) | public Object | getData() Returns the application defined widget data associated
with the receiver, or null if it has not been set. | public Object | getData(String key) Returns the application defined property of the receiver
with the specified name, or null if it has not been set.
Applications may have associated arbitrary objects with the
receiver in this fashion. | public Display | getDisplay() Returns the Display that is associated with
the receiver. | int | getDrawCount(int control) | Rect | getInset() | String | getName() | String | getNameText() | public int | getStyle() Returns the receiver's style information.
Note that the value which is returned by this method may
not match the value which was provided to the constructor
when the receiver was created. | int | getVisibleRegion(int control, boolean clipChildren) | int | helpProc(int inControl, int inGlobalMouse, int inRequest, int outContentProvided, int ioHelpContent) | int | hitTestProc(int browser, int item, int property, int theRect, int mouseRect) | void | hookEvents() | boolean | hooks(int eventType) | void | invalWindowRgn(int window, int rgn) | void | invalidateVisibleRegion(int control) | public boolean | isDisposed() Returns true if the widget has been disposed,
and false otherwise. | boolean | isDrawing(int control) | boolean | isEnabled() | public boolean | isListening(int eventType) Returns true if there are any listeners
for the specified event type associated with the receiver,
and false otherwise. | boolean | isTrimHandle(int trimHandle) | boolean | isValidSubclass() | boolean | isValidThread() | int | itemCompareProc(int browser, int itemOne, int itemTwo, int sortProperty) | int | itemDataProc(int browser, int item, int property, int itemData, int setValue) | int | itemNotificationProc(int browser, int item, int message) | int | kEventAccessibleGetAllAttributeNames(int nextHandler, int theEvent, int userData) | int | kEventAccessibleGetChildAtPoint(int nextHandler, int theEvent, int userData) | int | kEventAccessibleGetNamedAttribute(int nextHandler, int theEvent, int userData) | int | kEventControlActivate(int nextHandler, int theEvent, int userData) | int | kEventControlApplyBackground(int nextHandler, int theEvent, int userData) | int | kEventControlBoundsChanged(int nextHandler, int theEvent, int userData) | int | kEventControlClick(int nextHandler, int theEvent, int userData) | int | kEventControlContextualMenuClick(int nextHandler, int theEvent, int userData) | int | kEventControlDeactivate(int nextHandler, int theEvent, int userData) | int | kEventControlDraw(int nextHandler, int theEvent, int userData) | int | kEventControlGetClickActivation(int nextHandler, int theEvent, int userData) | int | kEventControlGetFocusPart(int nextHandler, int theEvent, int userData) | int | kEventControlHit(int nextHandler, int theEvent, int userData) | int | kEventControlHitTest(int nextHandler, int theEvent, int userData) | int | kEventControlSetCursor(int nextHandler, int theEvent, int userData) | int | kEventControlSetFocusPart(int nextHandler, int theEvent, int userData) | int | kEventControlTrack(int nextHandler, int theEvent, int userData) | int | kEventMenuCalculateSize(int nextHandler, int theEvent, int userData) | int | kEventMenuClosed(int nextHandler, int theEvent, int userData) | int | kEventMenuCreateFrameView(int nextHandler, int theEvent, int userData) | int | kEventMenuDrawItem(int nextHandler, int theEvent, int userData) | int | kEventMenuDrawItemContent(int nextHandler, int theEvent, int userData) | int | kEventMenuGetFrameBounds(int nextHandler, int theEvent, int userData) | int | kEventMenuMeasureItemWidth(int nextHandler, int theEvent, int userData) | int | kEventMenuOpening(int nextHandler, int theEvent, int userData) | int | kEventMenuTargetItem(int nextHandler, int theEvent, int userData) | int | kEventMouseDown(int nextHandler, int theEvent, int userData) | int | kEventMouseDragged(int nextHandler, int theEvent, int userData) | int | kEventMouseMoved(int nextHandler, int theEvent, int userData) | int | kEventMouseUp(int nextHandler, int theEvent, int userData) | int | kEventMouseWheelMoved(int nextHandler, int theEvent, int userData) | int | kEventProcessCommand(int nextHandler, int theEvent, int userData) | int | kEventRawKeyDown(int nextHandler, int theEvent, int userData) | int | kEventRawKeyModifiersChanged(int nextHandler, int theEvent, int userData) | int | kEventRawKeyPressed(int nextHandler, int theEvent, int userData) | int | kEventRawKeyRepeat(int nextHandler, int theEvent, int userData) | int | kEventRawKeyUp(int nextHandler, int theEvent, int userData) | int | kEventTextInputUnicodeForKeyEvent(int nextHandler, int theEvent, int userData) | int | kEventWindowActivated(int nextHandler, int theEvent, int userData) | int | kEventWindowBoundsChanged(int nextHandler, int theEvent, int userData) | int | kEventWindowClose(int nextHandler, int theEvent, int userData) | int | kEventWindowCollapsed(int nextHandler, int theEvent, int userData) | int | kEventWindowDeactivated(int nextHandler, int theEvent, int userData) | int | kEventWindowDrawContent(int nextHandler, int theEvent, int userData) | int | kEventWindowExpanded(int nextHandler, int theEvent, int userData) | int | kEventWindowGetClickModality(int nextHandler, int theEvent, int userData) | int | kEventWindowGetRegion(int nextHandler, int theEvent, int userData) | int | kEventWindowHidden(int nextHandler, int theEvent, int userData) | int | kEventWindowHitTest(int nextHandler, int theEvent, int userData) | int | kEventWindowShown(int nextHandler, int theEvent, int userData) | int | kEventWindowUpdate(int nextHandler, int theEvent, int userData) | int | keyboardProc(int nextHandler, int theEvent, int userData) | int | menuProc(int nextHandler, int theEvent, int userData) | int | mouseProc(int nextHandler, int theEvent, int userData) | public void | notifyListeners(int eventType, Event event) Notifies all of the receiver's listeners for events
of the given type that one such event has occurred by
invoking their handleEvent() method. | void | postEvent(int eventType) | void | postEvent(int eventType, Event event) | void | redrawChildren(int control) | void | redrawChildren(int control, int rgn) | void | redrawWidget(int control, boolean children) | void | redrawWidget(int control, int x, int y, int width, int height, boolean children) | void | register() | void | release(boolean destroy) | void | releaseChildren(boolean destroy) | void | releaseHandle() | void | releaseParent() | void | releaseWidget() | public void | removeDisposeListener(DisposeListener listener) Removes the listener from the collection of listeners who will
be notified when the widget is disposed. | public void | removeListener(int eventType, Listener handler) Removes the listener from the collection of listeners who will
be notified when an event of the given type occurs. | protected void | removeListener(int eventType, SWTEventListener handler) Removes the listener from the collection of listeners who will
be notified when an event of the given type occurs.
IMPORTANT: This method is not part of the SWT
public API. | void | sendEvent(Event event) | void | sendEvent(int eventType) | void | sendEvent(int eventType, Event event) | void | sendEvent(int eventType, Event event, boolean send) | boolean | sendKeyEvent(int type, int theEvent) | boolean | sendKeyEvent(int type, Event event) | int | setBounds(int control, int x, int y, int width, int height, boolean move, boolean resize, boolean events) | public void | setData(Object data) Sets the application defined widget data associated
with the receiver to be the argument. | public void | setData(String key, Object value) Sets the application defined property of the receiver
with the specified name to the given value.
Applications may associate arbitrary objects with the
receiver in this fashion. | boolean | setInputState(Event event, int type, int chord, int modifiers) | boolean | setKeyState(Event event, int type, int theEvent) | void | setVisible(int control, boolean visible) | void | setZOrder(int control, int otheControl, boolean above) | int | textInputProc(int nextHandler, int theEvent, int userData) | RGBColor | toRGBColor(float[] color) | public String | toString() Returns a string containing a concise, human-readable
description of the receiver. | int | trackingProc(int browser, int itemID, int property, int theRect, int startPt, int modifiers) | int | windowProc(int nextHandler, int theEvent, int userData) |
CANVAS | final static int CANVAS(Code) | | |
DEFAULT_HEIGHT | final static int DEFAULT_HEIGHT(Code) | | |
DEFAULT_WIDTH | final static int DEFAULT_WIDTH(Code) | | |
DISABLED | final static int DISABLED(Code) | | |
DISPOSED | final static int DISPOSED(Code) | | |
DISPOSE_SENT | final static int DISPOSE_SENT(Code) | | |
EMPTY_RECT | final static Rect EMPTY_RECT(Code) | | |
EXPANDING | final static int EXPANDING(Code) | | |
GRAB | final static int GRAB(Code) | | |
HIDDEN | final static int HIDDEN(Code) | | |
IGNORE_WHEEL | final static int IGNORE_WHEEL(Code) | | |
KEYED_DATA | final static int KEYED_DATA(Code) | | |
LAYOUT_CHANGED | final static int LAYOUT_CHANGED(Code) | | |
LAYOUT_CHILD | final static int LAYOUT_CHILD(Code) | | |
LAYOUT_NEEDED | final static int LAYOUT_NEEDED(Code) | | |
MOVED | final static int MOVED(Code) | | |
PARENT_BACKGROUND | final static int PARENT_BACKGROUND(Code) | | |
RELEASED | final static int RELEASED(Code) | | |
RESIZED | final static int RESIZED(Code) | | |
THEME_BACKGROUND | final static int THEME_BACKGROUND(Code) | | |
eventTable | EventTable eventTable(Code) | | |
stylestate | int stylestate(Code) | | |
Widget | public Widget(Widget parent, int style)(Code) | | 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 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.
Parameters: parent - a widget which will be the parent of the new instance (cannot be null) Parameters: style - the style of widget to construct exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the parent is null
- ERROR_INVALID_ARGUMENT - if the parent is disposed
exception: SWTException - - ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
- ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
See Also: SWT See Also: Widget.checkSubclass See Also: Widget.getStyle |
_addListener | void _addListener(int eventType, Listener listener)(Code) | | |
accessibilityProc | int accessibilityProc(int nextHandler, int theEvent, int userData)(Code) | | |
actionProc | int actionProc(int theControl, int partCode)(Code) | | |
addDisposeListener | public void addDisposeListener(DisposeListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when the widget is disposed. When the widget is
disposed, the listener is notified by sending it the
widgetDisposed() message.
Parameters: listener - the listener which should be notified when the receiver is disposed exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the listener is null
exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
See Also: DisposeListener See Also: Widget.removeDisposeListener |
addListener | public void addListener(int eventType, Listener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when an event of the given type occurs. When the
event does occur in the widget, the listener is notified by
sending it the handleEvent() message. The event
type is one of the event constants defined in class SWT .
Parameters: eventType - the type of event to listen for Parameters: listener - the listener which should be notified when the event occurs exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the listener is null
exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
See Also: Listener See Also: SWT See Also: Widget.removeListener See Also: Widget.notifyListeners |
calculateVisibleRegion | void calculateVisibleRegion(int control, int visibleRgn, boolean clipChildren)(Code) | | |
callPaintEventHandler | int callPaintEventHandler(int control, int damageRgn, int visibleRgn, int theEvent, int nextHandler)(Code) | | |
checkBits | static int checkBits(int style, int int0, int int1, int int2, int int3, int int4, int int5)(Code) | | |
checkOpen | void checkOpen()(Code) | | |
checkSubclass | protected void checkSubclass()(Code) | | Checks that this class can be subclassed.
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.
exception: SWTException - - ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
|
checkWidget | protected void checkWidget()(Code) | | Throws an SWTException if the receiver can not
be accessed by the caller. This may include both checks on
the state of the receiver and more generally on the entire
execution context. This method should be called by
widget implementors to enforce the standard SWT invariants.
Currently, it is an error to invoke any method (other than
isDisposed() ) on a widget that has had its
dispose() method called. It is also an error
to call widget methods from any thread that is different
from the thread that created the widget.
In future releases of SWT, there may be more or fewer error
checks and exceptions may be thrown for different reasons.
exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
|
colorProc | int colorProc(int inControl, int inMessage, int inDrawDepth, int inDrawInColor)(Code) | | |
commandProc | int commandProc(int nextHandler, int theEvent, int userData)(Code) | | |
contains | boolean contains(int shellX, int shellY)(Code) | | |
controlProc | int controlProc(int nextHandler, int theEvent, int userData)(Code) | | |
createCIcon | int createCIcon(Image image)(Code) | | |
createHandle | void createHandle()(Code) | | |
createIconRef | int createIconRef(Image image)(Code) | | |
createWidget | void createWidget()(Code) | | |
deregister | void deregister()(Code) | | |
destroyCIcon | void destroyCIcon(int iconHandle)(Code) | | |
destroyWidget | void destroyWidget()(Code) | | |
dispose | public void dispose()(Code) | | Disposes of the operating system resources associated with
the receiver and all its descendents. After this method has
been invoked, the receiver and all descendents will answer
true when sent the message isDisposed() .
Any internal connections between the widgets in the tree will
have been removed to facilitate garbage collection.
NOTE: This method is not called recursively on the descendents
of the receiver. This means that, widget implementers can not
detect when a widget is being disposed of by re-implementing
this method, but should instead listen for the Dispose
event.
exception: SWTException - - ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
See Also: Widget.addDisposeListener See Also: Widget.removeDisposeListener See Also: Widget.checkWidget |
drawBackground | void drawBackground(int control, int context)(Code) | | |
drawItemProc | int drawItemProc(int browser, int item, int property, int itemState, int theRect, int gdDepth, int colorDevice)(Code) | | |
drawWidget | void drawWidget(int control, int context, int damageRgn, int visibleRgn, int theEvent)(Code) | | |
error | void error(int code)(Code) | | |
filters | boolean filters(int eventType)(Code) | | |
fixMnemonic | int fixMnemonic(char[] buffer)(Code) | | |
getControlBounds | Rectangle getControlBounds(int control)(Code) | | |
getControlSize | Point getControlSize(int control)(Code) | | |
getData | public Object getData()(Code) | | Returns the application defined widget data associated
with the receiver, or null if it has not been set. The
widget data is a single, unnamed field that is
stored with every widget.
Applications may put arbitrary objects in this field. If
the object stored in the widget data needs to be notified
when the widget is disposed of, it is the application's
responsibility to hook the Dispose event on the widget and
do so.
the widget data exception: SWTException - - ERROR_WIDGET_DISPOSED - when the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - when called from the wrong thread
See Also: Widget.setData(Object) |
getData | public Object getData(String key)(Code) | | Returns the application defined property of the receiver
with the specified name, or null if it has not been set.
Applications may have associated arbitrary objects with the
receiver in this fashion. If the objects stored in the
properties need to be notified when the widget is disposed
of, it is the application's responsibility to hook the
Dispose event on the widget and do so.
Parameters: key - the name of the property the value of the property or null if it has not been set exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the key is null
exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
See Also: Widget.setData(String,Object) |
getDisplay | public Display getDisplay()(Code) | | Returns the Display that is associated with
the receiver.
A widget's display is either provided when it is created
(for example, top level Shell s) or is the
same as its parent's display.
the receiver's display exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
|
getDrawCount | int getDrawCount(int control)(Code) | | |
getInset | Rect getInset()(Code) | | |
getStyle | public int getStyle()(Code) | | Returns the receiver's style information.
Note that the value which is returned by this method may
not match the value which was provided to the constructor
when the receiver was created. This can occur when the underlying
operating system does not support a particular combination of
requested styles. For example, if the platform widget used to
implement a particular SWT widget always has scroll bars, the
result of calling this method would always have the
SWT.H_SCROLL and SWT.V_SCROLL bits set.
the style bits exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
|
getVisibleRegion | int getVisibleRegion(int control, boolean clipChildren)(Code) | | |
helpProc | int helpProc(int inControl, int inGlobalMouse, int inRequest, int outContentProvided, int ioHelpContent)(Code) | | |
hitTestProc | int hitTestProc(int browser, int item, int property, int theRect, int mouseRect)(Code) | | |
hookEvents | void hookEvents()(Code) | | |
hooks | boolean hooks(int eventType)(Code) | | |
invalWindowRgn | void invalWindowRgn(int window, int rgn)(Code) | | |
invalidateVisibleRegion | void invalidateVisibleRegion(int control)(Code) | | |
isDisposed | public boolean isDisposed()(Code) | | Returns true if the widget has been disposed,
and false otherwise.
This method gets the dispose state for the widget.
When a widget has been disposed, it is an error to
invoke any other method using the widget.
true when the widget is disposed and false otherwise |
isDrawing | boolean isDrawing(int control)(Code) | | |
isEnabled | boolean isEnabled()(Code) | | |
isListening | public boolean isListening(int eventType)(Code) | | Returns true if there are any listeners
for the specified event type associated with the receiver,
and false otherwise. The event type is one of
the event constants defined in class SWT .
Parameters: eventType - the type of event true if the event is hooked exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
See Also: SWT |
isTrimHandle | boolean isTrimHandle(int trimHandle)(Code) | | |
isValidSubclass | boolean isValidSubclass()(Code) | | |
isValidThread | boolean isValidThread()(Code) | | |
itemCompareProc | int itemCompareProc(int browser, int itemOne, int itemTwo, int sortProperty)(Code) | | |
itemDataProc | int itemDataProc(int browser, int item, int property, int itemData, int setValue)(Code) | | |
itemNotificationProc | int itemNotificationProc(int browser, int item, int message)(Code) | | |
kEventAccessibleGetAllAttributeNames | int kEventAccessibleGetAllAttributeNames(int nextHandler, int theEvent, int userData)(Code) | | |
kEventAccessibleGetChildAtPoint | int kEventAccessibleGetChildAtPoint(int nextHandler, int theEvent, int userData)(Code) | | |
kEventAccessibleGetNamedAttribute | int kEventAccessibleGetNamedAttribute(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlActivate | int kEventControlActivate(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlApplyBackground | int kEventControlApplyBackground(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlBoundsChanged | int kEventControlBoundsChanged(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlClick | int kEventControlClick(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlContextualMenuClick | int kEventControlContextualMenuClick(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlDeactivate | int kEventControlDeactivate(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlDraw | int kEventControlDraw(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlGetClickActivation | int kEventControlGetClickActivation(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlGetFocusPart | int kEventControlGetFocusPart(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlHit | int kEventControlHit(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlHitTest | int kEventControlHitTest(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlSetCursor | int kEventControlSetCursor(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlSetFocusPart | int kEventControlSetFocusPart(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlTrack | int kEventControlTrack(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMenuCalculateSize | int kEventMenuCalculateSize(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMenuClosed | int kEventMenuClosed(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMenuCreateFrameView | int kEventMenuCreateFrameView(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMenuDrawItem | int kEventMenuDrawItem(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMenuDrawItemContent | int kEventMenuDrawItemContent(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMenuGetFrameBounds | int kEventMenuGetFrameBounds(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMenuMeasureItemWidth | int kEventMenuMeasureItemWidth(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMenuOpening | int kEventMenuOpening(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMenuTargetItem | int kEventMenuTargetItem(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMouseDown | int kEventMouseDown(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMouseDragged | int kEventMouseDragged(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMouseMoved | int kEventMouseMoved(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMouseUp | int kEventMouseUp(int nextHandler, int theEvent, int userData)(Code) | | |
kEventMouseWheelMoved | int kEventMouseWheelMoved(int nextHandler, int theEvent, int userData)(Code) | | |
kEventProcessCommand | int kEventProcessCommand(int nextHandler, int theEvent, int userData)(Code) | | |
kEventRawKeyDown | int kEventRawKeyDown(int nextHandler, int theEvent, int userData)(Code) | | |
kEventRawKeyModifiersChanged | int kEventRawKeyModifiersChanged(int nextHandler, int theEvent, int userData)(Code) | | |
kEventRawKeyPressed | int kEventRawKeyPressed(int nextHandler, int theEvent, int userData)(Code) | | |
kEventRawKeyRepeat | int kEventRawKeyRepeat(int nextHandler, int theEvent, int userData)(Code) | | |
kEventRawKeyUp | int kEventRawKeyUp(int nextHandler, int theEvent, int userData)(Code) | | |
kEventTextInputUnicodeForKeyEvent | int kEventTextInputUnicodeForKeyEvent(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowActivated | int kEventWindowActivated(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowBoundsChanged | int kEventWindowBoundsChanged(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowClose | int kEventWindowClose(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowCollapsed | int kEventWindowCollapsed(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowDeactivated | int kEventWindowDeactivated(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowDrawContent | int kEventWindowDrawContent(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowExpanded | int kEventWindowExpanded(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowGetClickModality | int kEventWindowGetClickModality(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowGetRegion | int kEventWindowGetRegion(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowHidden | int kEventWindowHidden(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowHitTest | int kEventWindowHitTest(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowShown | int kEventWindowShown(int nextHandler, int theEvent, int userData)(Code) | | |
kEventWindowUpdate | int kEventWindowUpdate(int nextHandler, int theEvent, int userData)(Code) | | |
keyboardProc | int keyboardProc(int nextHandler, int theEvent, int userData)(Code) | | |
menuProc | int menuProc(int nextHandler, int theEvent, int userData)(Code) | | |
mouseProc | int mouseProc(int nextHandler, int theEvent, int userData)(Code) | | |
notifyListeners | public void notifyListeners(int eventType, Event event)(Code) | | Notifies all of the receiver's listeners for events
of the given type that one such event has occurred by
invoking their handleEvent() method. The
event type is one of the event constants defined in class
SWT .
Parameters: eventType - the type of event which has occurred Parameters: event - the event data exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
See Also: SWT See Also: Widget.addListener See Also: Widget.removeListener |
postEvent | void postEvent(int eventType)(Code) | | |
postEvent | void postEvent(int eventType, Event event)(Code) | | |
redrawChildren | void redrawChildren(int control)(Code) | | |
redrawChildren | void redrawChildren(int control, int rgn)(Code) | | |
redrawWidget | void redrawWidget(int control, boolean children)(Code) | | |
redrawWidget | void redrawWidget(int control, int x, int y, int width, int height, boolean children)(Code) | | |
register | void register()(Code) | | |
release | void release(boolean destroy)(Code) | | |
releaseChildren | void releaseChildren(boolean destroy)(Code) | | |
releaseHandle | void releaseHandle()(Code) | | |
releaseParent | void releaseParent()(Code) | | |
releaseWidget | void releaseWidget()(Code) | | |
removeDisposeListener | public void removeDisposeListener(DisposeListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when the widget is disposed.
Parameters: listener - the listener which should no longer be notified when the receiver is disposed exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the listener is null
exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
See Also: DisposeListener See Also: Widget.addDisposeListener |
removeListener | public void removeListener(int eventType, Listener handler)(Code) | | Removes the listener from the collection of listeners who will
be notified when an event of the given type occurs. The event
type is one of the event constants defined in class SWT .
Parameters: eventType - the type of event to listen for Parameters: listener - the listener which should no longer be notified when the event occurs exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the listener is null
exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
See Also: Listener See Also: SWT See Also: Widget.addListener See Also: Widget.notifyListeners |
removeListener | protected void removeListener(int eventType, SWTEventListener handler)(Code) | | Removes the listener from the collection of listeners who will
be notified when an event of the given type occurs.
IMPORTANT: This method is not part of the SWT
public API. It is marked public only so that it can be shared
within the packages provided by SWT. It should never be
referenced from application code.
Parameters: eventType - the type of event to listen for Parameters: listener - the listener which should no longer be notified when the event occurs exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the listener is null
exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
See Also: Listener See Also: Widget.addListener |
sendEvent | void sendEvent(Event event)(Code) | | |
sendEvent | void sendEvent(int eventType)(Code) | | |
sendEvent | void sendEvent(int eventType, Event event)(Code) | | |
sendEvent | void sendEvent(int eventType, Event event, boolean send)(Code) | | |
sendKeyEvent | boolean sendKeyEvent(int type, int theEvent)(Code) | | |
sendKeyEvent | boolean sendKeyEvent(int type, Event event)(Code) | | |
setBounds | int setBounds(int control, int x, int y, int width, int height, boolean move, boolean resize, boolean events)(Code) | | |
setData | public void setData(Object data)(Code) | | Sets the application defined widget data associated
with the receiver to be the argument. The widget
data is a single, unnamed field that is stored
with every widget.
Applications may put arbitrary objects in this field. If
the object stored in the widget data needs to be notified
when the widget is disposed of, it is the application's
responsibility to hook the Dispose event on the widget and
do so.
Parameters: data - the widget data exception: SWTException - - ERROR_WIDGET_DISPOSED - when the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - when called from the wrong thread
See Also: Widget.getData() |
setData | public void setData(String key, Object value)(Code) | | Sets the application defined property of the receiver
with the specified name to the given value.
Applications may associate arbitrary objects with the
receiver in this fashion. If the objects stored in the
properties need to be notified when the widget is disposed
of, it is the application's responsibility to hook the
Dispose event on the widget and do so.
Parameters: key - the name of the property Parameters: value - the new value for the property exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the key is null
exception: SWTException - - ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
See Also: Widget.getData(String) |
setInputState | boolean setInputState(Event event, int type, int chord, int modifiers)(Code) | | |
setKeyState | boolean setKeyState(Event event, int type, int theEvent)(Code) | | |
setVisible | void setVisible(int control, boolean visible)(Code) | | |
setZOrder | void setZOrder(int control, int otheControl, boolean above)(Code) | | |
textInputProc | int textInputProc(int nextHandler, int theEvent, int userData)(Code) | | |
toRGBColor | RGBColor toRGBColor(float[] color)(Code) | | |
toString | public String toString()(Code) | | Returns a string containing a concise, human-readable
description of the receiver.
a string representation of the receiver |
trackingProc | int trackingProc(int browser, int itemID, int property, int theRect, int startPt, int modifiers)(Code) | | |
windowProc | int windowProc(int nextHandler, int theEvent, int userData)(Code) | | |
|
|