| java.lang.Object org.eclipse.swt.widgets.Widget org.eclipse.swt.widgets.Control
All known Subclasses: org.eclipse.swt.widgets.ProgressBar, org.eclipse.swt.widgets.Link, org.eclipse.swt.widgets.Sash, org.eclipse.swt.widgets.Slider, org.eclipse.swt.widgets.Label, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Button, org.eclipse.swt.widgets.Scale,
Control | abstract public class Control extends Widget implements Drawable(Code) | | Control is the abstract superclass of all windowed user interface classes.
- Styles:
- BORDER
- LEFT_TO_RIGHT, RIGHT_TO_LEFT
- Events:
- DragDetect, FocusIn, FocusOut, Help, KeyDown, KeyUp, MenuDetect, MouseDoubleClick, MouseDown, MouseEnter,
MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Traverse
Only one of LEFT_TO_RIGHT or RIGHT_TO_LEFT may be specified.
IMPORTANT: This class is intended to be subclassed only
within the SWT implementation.
|
Constructor Summary | |
| Control() | public | Control(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 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 | |
int | actionProc(int theControl, int partCode) | public void | addControlListener(ControlListener listener) Adds the listener to the collection of listeners who will
be notified when the control is moved or resized, by sending
it one of the messages defined in the ControlListener
interface. | public void | addDragDetectListener(DragDetectListener listener) Adds the listener to the collection of listeners who will
be notified when a drag gesture occurs, by sending it
one of the messages defined in the DragDetectListener
interface. | public void | addFocusListener(FocusListener listener) Adds the listener to the collection of listeners who will
be notified when the control gains or loses focus, by sending
it one of the messages defined in the FocusListener
interface. | public void | addHelpListener(HelpListener listener) Adds the listener to the collection of listeners who will
be notified when help events are generated for the control,
by sending it one of the messages defined in the
HelpListener interface. | public void | addKeyListener(KeyListener listener) Adds the listener to the collection of listeners who will
be notified when keys are pressed and released on the system keyboard, by sending
it one of the messages defined in the KeyListener
interface.
When a key listener is added to a control, the control
will take part in widget traversal. | public void | addMenuDetectListener(MenuDetectListener listener) Adds the listener to the collection of listeners who will
be notified when the platform-specific context menu trigger
has occurred, by sending it one of the messages defined in
the MenuDetectListener interface. | public void | addMouseListener(MouseListener listener) Adds the listener to the collection of listeners who will
be notified when mouse buttons are pressed and released, by sending
it one of the messages defined in the MouseListener
interface. | public void | addMouseMoveListener(MouseMoveListener listener) Adds the listener to the collection of listeners who will
be notified when the mouse moves, by sending it one of the
messages defined in the MouseMoveListener
interface. | public void | addMouseTrackListener(MouseTrackListener listener) Adds the listener to the collection of listeners who will
be notified when the mouse passes or hovers over controls, by sending
it one of the messages defined in the MouseTrackListener
interface. | public void | addMouseWheelListener(MouseWheelListener listener) Adds the listener to the collection of listeners who will
be notified when the mouse wheel is scrolled, by sending
it one of the messages defined in the
MouseWheelListener interface. | public void | addPaintListener(PaintListener listener) Adds the listener to the collection of listeners who will
be notified when the receiver needs to be painted, by sending it
one of the messages defined in the PaintListener
interface. | public void | addTraverseListener(TraverseListener listener) Adds the listener to the collection of listeners who will
be notified when traversal events occur, by sending it
one of the messages defined in the TraverseListener
interface. | int | callFocusEventHandler(int nextHandler, int theEvent) | void | checkBackground() | void | checkBuffered() | int | colorProc(int inControl, int inMessage, int inDrawDepth, int inDrawInColor) | public Point | computeSize(int wHint, int hHint) Returns the preferred size of the receiver.
The preferred size of a control is the size that it would
best be displayed at. | public Point | computeSize(int wHint, int hHint, boolean changed) Returns the preferred size of the receiver.
The preferred size of a control is the size that it would
best be displayed at. | Control | computeTabGroup() | Control[] | computeTabList() | Control | computeTabRoot() | void | createWidget() | Color | defaultBackground() | Font | defaultFont() | Color | defaultForeground() | int | defaultThemeFont() | void | deregister() | void | destroyWidget() | public boolean | dragDetect(Event event) Detects a drag and drop gesture. | public boolean | dragDetect(MouseEvent event) Detects a drag and drop gesture. | boolean | dragDetect(int button, int count, int stateMask, int x, int y) | boolean | dragDetect(int x, int y, boolean filter, boolean[] consume) | void | drawFocus(int control, int context, boolean hasFocus, boolean hasBorder, Rect inset) | boolean | drawFocusRing() | boolean | drawGripper(int x, int y, int width, int height, boolean vertical) | void | drawWidget(int control, int context, int damageRgn, int visibleRgn, int theEvent) | void | enableWidget(boolean enabled) | boolean | equals(float[] color1, float[] color2) | void | fillBackground(int control, int context, Rectangle bounds) | Control | findBackgroundControl() | Cursor | findCursor() | Menu[] | findMenus(Control control) | void | fixChildren(Shell newShell, Shell oldShell, Decorations newDecorations, Decorations oldDecorations, Menu[] menus) | void | fixFocus(Control focusControl) | int | focusHandle() | int | focusPart() | public boolean | forceFocus() Forces the receiver to have the keyboard focus, causing
all keyboard events to be delivered to it. | public Accessible | getAccessible() Returns the accessible object for the receiver. | public Color | getBackground() Returns the receiver's background color. | Color | getBackgroundColor() | public Image | getBackgroundImage() Returns the receiver's background image. | public int | getBorderWidth() Returns the receiver's border width. | public Rectangle | getBounds() Returns a rectangle describing the receiver's size and location
relative to its parent (or its display if its parent is null),
unless the receiver is a shell. | public Cursor | getCursor() Returns the receiver's cursor, or null if it has not been set. | public boolean | getDragDetect() Returns true if the receiver is detecting
drag gestures, and false otherwise. | int | getDrawCount(int control) | public boolean | getEnabled() Returns true if the receiver is enabled, and
false otherwise. | public Font | getFont() Returns the font that the receiver will use to paint textual information. | public Color | getForeground() Returns the foreground color that the receiver will use to draw. | Color | getForegroundColor() | public Object | getLayoutData() Returns layout data which is associated with the receiver. | public Point | getLocation() Returns a point describing the receiver's location relative
to its parent (or its display if its parent is null), unless
the receiver is a shell. | public Menu | getMenu() Returns the receiver's pop up menu if it has one, or null
if it does not. | int | getMininumHeight() | public Monitor | getMonitor() Returns the receiver's monitor. | public Composite | getParent() Returns the receiver's parent, which must be a Composite
or null when the receiver is a shell that was created with null or
a display for a parent. | float[] | getParentBackground() | Control[] | getPath() | public Shell | getShell() Returns the receiver's shell. | public Point | getSize() Returns a point describing the receiver's size. | float | getThemeAlpha() | public String | getToolTipText() Returns the receiver's tool tip text, or null if it has
not been set. | public boolean | getVisible() Returns true if the receiver is visible, and
false otherwise. | int | getVisibleRegion(int control, boolean clipChildren) | boolean | hasBorder() | boolean | hasFocus() | int | helpProc(int inControl, int inGlobalMouse, int inRequest, int outContentProvided, int ioHelpContent) | void | hookEvents() | public void | internal_dispose_GC(int context, GCData data) Invokes platform specific functionality to dispose a GC handle.
IMPORTANT: This method is not part of the public
API for Control . | public int | internal_new_GC(GCData data) Invokes platform specific functionality to allocate a new GC handle.
IMPORTANT: This method is not part of the public
API for Control . | void | invalWindowRgn(int window, int rgn) | void | invalidateChildrenVisibleRegion(int control) | void | invalidateVisibleRegion(int control) | public boolean | isEnabled() Returns true if the receiver is enabled and all
ancestors up to and including the receiver's nearest ancestor
shell are enabled. | boolean | isEnabledCursor() | boolean | isEnabledModal() | boolean | isFocusAncestor(Control control) | public boolean | isFocusControl() Returns true if the receiver has the user-interface
focus, and false otherwise. | public boolean | isReparentable() | boolean | isShowing() | boolean | isTabGroup() | boolean | isTabItem() | public boolean | isVisible() Returns true if the receiver is visible and all
ancestors up to and including the receiver's nearest ancestor
shell are visible. | int | kEventAccessibleGetAllAttributeNames(int nextHandler, int theEvent, int userData) | int | kEventAccessibleGetChildAtPoint(int nextHandler, int theEvent, int userData) | int | kEventAccessibleGetFocusedChild(int nextHandler, int theEvent, int userData) | int | kEventAccessibleGetNamedAttribute(int nextHandler, int theEvent, int userData) | int | kEventControlContextualMenuClick(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 | 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 | kEventTextInputUnicodeForKeyEvent(int nextHandler, int theEvent, int userData) | int | kEventUnicodeKeyPressed(int nextHandler, int theEvent, int userData) | void | markLayout(boolean changed, boolean all) | Decorations | menuShell() | public void | moveAbove(Control control) Moves the receiver above the specified control in the
drawing order. | public void | moveBelow(Control control) Moves the receiver below the specified control in the
drawing order. | Accessible | new_Accessible(Control control) | public void | pack() Causes the receiver to be resized to its preferred size. | public void | pack(boolean changed) Causes the receiver to be resized to its preferred size.
For a composite, this involves computing the preferred size
from its layout, if there is one.
If the changed flag is true , it indicates that the receiver's
contents have changed, therefore any caches that a layout manager
containing the control may have been keeping need to be flushed. | public void | redraw() Causes the entire bounds of the receiver to be marked
as needing to be redrawn. | void | redraw(boolean children) | public void | redraw(int x, int y, int width, int height, boolean all) Causes the rectangular area of the receiver specified by
the arguments to be marked as needing to be redrawn. | void | register() | void | releaseHandle() | void | releaseParent() | void | releaseWidget() | public void | removeControlListener(ControlListener listener) Removes the listener from the collection of listeners who will
be notified when the control is moved or resized. | public void | removeDragDetectListener(DragDetectListener listener) Removes the listener from the collection of listeners who will
be notified when a drag gesture occurs. | public void | removeFocusListener(FocusListener listener) Removes the listener from the collection of listeners who will
be notified when the control gains or loses focus. | public void | removeHelpListener(HelpListener listener) Removes the listener from the collection of listeners who will
be notified when the help events are generated for the control. | public void | removeKeyListener(KeyListener listener) Removes the listener from the collection of listeners who will
be notified when keys are pressed and released on the system keyboard. | public void | removeMenuDetectListener(MenuDetectListener listener) Removes the listener from the collection of listeners who will
be notified when the platform-specific context menu trigger has
occurred. | public void | removeMouseListener(MouseListener listener) Removes the listener from the collection of listeners who will
be notified when mouse buttons are pressed and released. | public void | removeMouseMoveListener(MouseMoveListener listener) Removes the listener from the collection of listeners who will
be notified when the mouse moves. | public void | removeMouseTrackListener(MouseTrackListener listener) Removes the listener from the collection of listeners who will
be notified when the mouse passes or hovers over controls. | public void | removeMouseWheelListener(MouseWheelListener listener) Removes the listener from the collection of listeners who will
be notified when the mouse wheel is scrolled. | public void | removePaintListener(PaintListener listener) Removes the listener from the collection of listeners who will
be notified when the receiver needs to be painted. | public void | removeTraverseListener(TraverseListener listener) Removes the listener from the collection of listeners who will
be notified when traversal events occur. | void | resetVisibleRegion(int control) | boolean | sendDragEvent(int button, int stateMask, int x, int y) | boolean | sendDragEvent(int button, int chord, int modifiers, int x, int y) | void | sendFocusEvent(int type, boolean post) | boolean | sendMouseEvent(int type, short button, int count, int detail, boolean send, int theEvent) | boolean | sendMouseEvent(int type, short button, int count, boolean send, int chord, short x, short y, int modifiers) | boolean | sendMouseEvent(int type, short button, int count, int detail, boolean send, int chord, short x, short y, int modifiers) | boolean | sendMouseWheel(short wheelAxis, int wheelDelta) | void | sendTrackEvents() | void | setBackground() | public void | setBackground(Color color) Sets the receiver's background color to the color specified
by the argument, or to the default system color for the control
if the argument is null. | void | setBackground(float[] color) | void | setBackground(int control, float[] color) | public void | setBackgroundImage(Image image) Sets the receiver's background image to the image specified
by the argument, or to the default system color for the control
if the argument is null. | public void | setBounds(int x, int y, int width, int height) Sets the receiver's size and location to the rectangular
area specified by the arguments. | int | setBounds(int x, int y, int width, int height, boolean move, boolean resize, boolean events) | public void | setBounds(Rectangle rect) Sets the receiver's size and location to the rectangular
area specified by the argument. | public void | setCapture(boolean capture) If the argument is true , causes the receiver to have
all mouse events delivered to it until the method is called with
false as the argument. | public void | setCursor(Cursor cursor) Sets the receiver's cursor to the cursor specified by the
argument, or to the default cursor for that kind of control
if the argument is null. | void | setDefaultFont() | public void | setDragDetect(boolean dragDetect) Sets the receiver's drag detect state. | public void | setEnabled(boolean enabled) Enables the receiver if the argument is true ,
and disables it otherwise. | public boolean | setFocus() Causes the receiver to have the keyboard focus,
such that all keyboard events will be delivered to it. | public void | setFont(Font font) Sets the font that the receiver will use to paint textual information
to the font specified by the argument, or to the default font for that
kind of control if the argument is null. | void | setFontStyle(Font font) | void | setFontStyle(int control, Font font) | public void | setForeground(Color color) Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null. | void | setForeground(float[] color) | void | setForeground(int control, float[] color) | public void | setLayoutData(Object layoutData) Sets the layout data associated with the receiver to the argument. | public void | setLocation(int x, int y) Sets the receiver's location to the point specified by
the arguments which are relative to the receiver's
parent (or its display if its parent is null), unless
the receiver is a shell. | public void | setLocation(Point location) Sets the receiver's location to the point specified by
the arguments which are relative to the receiver's
parent (or its display if its parent is null), unless
the receiver is a shell. | public void | setMenu(Menu menu) Sets the receiver's pop up menu to the argument.
All controls may optionally have a pop up
menu that is displayed when the user requests one for
the control. | public boolean | setParent(Composite parent) Changes the parent of the widget to be the one provided if
the underlying operating system supports this feature.
Returns true if the parent is successfully changed.
Parameters: parent - the new parent for the control. | boolean | setRadioSelection(boolean value) | public void | setRedraw(boolean redraw) If the argument is false , causes subsequent drawing
operations in the receiver to be ignored. | public void | setSize(int width, int height) Sets the receiver's size to the point specified by the arguments. | public void | setSize(Point size) Sets the receiver's size to the point specified by the argument. | boolean | setTabGroupFocus() | boolean | setTabItemFocus() | public void | setToolTipText(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. | public void | setVisible(boolean visible) Marks the receiver as visible if the argument is true ,
and marks it invisible otherwise. | void | setZOrder() | void | setZOrder(Control control, boolean above) | void | sort(int[] items) | Point | textExtent(int ptr, int wHint) | Point | textExtent(char[] chars, int wHint) | public Point | toControl(int x, int y) Returns a point which is the result of converting the
argument, which is specified in display relative coordinates,
to coordinates relative to the receiver. | public Point | toControl(Point point) Returns a point which is the result of converting the
argument, which is specified in display relative coordinates,
to coordinates relative to the receiver. | public Point | toDisplay(int x, int y) Returns a point which is the result of converting the
argument, which is specified in coordinates relative to
the receiver, to display relative coordinates. | public Point | toDisplay(Point point) Returns a point which is the result of converting the
argument, which is specified in coordinates relative to
the receiver, to display relative coordinates. | int | topHandle() | boolean | translateTraversal(int key, int theEvent, boolean[] consume) | int | traversalCode(int key, int theEvent) | public boolean | traverse(int traversal) Based on the argument, perform one of the expected platform
traversal action. | boolean | traverse(Event event) | boolean | traverseEscape() | boolean | traverseGroup(boolean next) | boolean | traverseItem(boolean next) | boolean | traverseMnemonic(char key) | boolean | traverseMnemonic(Event event) | boolean | traversePage(boolean next) | boolean | traverseReturn() | public void | update() Forces all outstanding paint requests for the widget
to be processed before this method returns. | void | update(boolean all) | void | updateBackgroundMode() | void | updateLayout(boolean all) |
RESET_VISIBLE_REGION | final static String RESET_VISIBLE_REGION(Code) | | |
drawCountvisibleRgn | int drawCountvisibleRgn(Code) | | |
foregroundbackground | float[] foregroundbackground(Code) | | |
handle | public int handle(Code) | | the handle to the OS resource
(Warning: This field is platform dependent)
IMPORTANT: This field 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 is not available on all
platforms and should never be accessed from application code.
|
Control | public Control(Composite 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 composite control which will be the parent of the new instance (cannot be null) Parameters: style - the style of control to construct exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the parent is null
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.BORDER See Also: Widget.checkSubclass See Also: Widget.getStyle |
actionProc | int actionProc(int theControl, int partCode)(Code) | | |
addControlListener | public void addControlListener(ControlListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when the control is moved or resized, by sending
it one of the messages defined in the ControlListener
interface.
Parameters: listener - the listener which should be notified 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: ControlListener See Also: Control.removeControlListener |
addDragDetectListener | public void addDragDetectListener(DragDetectListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when a drag gesture occurs, by sending it
one of the messages defined in the DragDetectListener
interface.
Parameters: listener - the listener which should be notified 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: DragDetectListener See Also: Control.removeDragDetectListener since: 3.3 |
addFocusListener | public void addFocusListener(FocusListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when the control gains or loses focus, by sending
it one of the messages defined in the FocusListener
interface.
Parameters: listener - the listener which should be notified 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: FocusListener See Also: Control.removeFocusListener |
addHelpListener | public void addHelpListener(HelpListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when help events are generated for the control,
by sending it one of the messages defined in the
HelpListener interface.
Parameters: listener - the listener which should be notified 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: HelpListener See Also: Control.removeHelpListener |
addKeyListener | public void addKeyListener(KeyListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when keys are pressed and released on the system keyboard, by sending
it one of the messages defined in the KeyListener
interface.
When a key listener is added to a control, the control
will take part in widget traversal. By default, all
traversal keys (such as the tab key and so on) are
delivered to the control. In order for a control to take
part in traversal, it should listen for traversal events.
Otherwise, the user can traverse into a control but not
out. Note that native controls such as table and tree
implement key traversal in the operating system. It is
not necessary to add traversal listeners for these controls,
unless you want to override the default traversal.
Parameters: listener - the listener which should be notified 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: KeyListener See Also: Control.removeKeyListener |
addMenuDetectListener | public void addMenuDetectListener(MenuDetectListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when the platform-specific context menu trigger
has occurred, by sending it one of the messages defined in
the MenuDetectListener interface.
Parameters: listener - the listener which should be notified 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: MenuDetectListener See Also: Control.removeMenuDetectListener since: 3.3 |
addMouseListener | public void addMouseListener(MouseListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when mouse buttons are pressed and released, by sending
it one of the messages defined in the MouseListener
interface.
Parameters: listener - the listener which should be notified 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: MouseListener See Also: Control.removeMouseListener |
addMouseMoveListener | public void addMouseMoveListener(MouseMoveListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when the mouse moves, by sending it one of the
messages defined in the MouseMoveListener
interface.
Parameters: listener - the listener which should be notified 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: MouseMoveListener See Also: Control.removeMouseMoveListener |
addMouseTrackListener | public void addMouseTrackListener(MouseTrackListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when the mouse passes or hovers over controls, by sending
it one of the messages defined in the MouseTrackListener
interface.
Parameters: listener - the listener which should be notified 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: MouseTrackListener See Also: Control.removeMouseTrackListener |
addMouseWheelListener | public void addMouseWheelListener(MouseWheelListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when the mouse wheel is scrolled, by sending
it one of the messages defined in the
MouseWheelListener interface.
Parameters: listener - the listener which should be notified 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: MouseWheelListener See Also: Control.removeMouseWheelListener since: 3.3 |
addPaintListener | public void addPaintListener(PaintListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when the receiver needs to be painted, by sending it
one of the messages defined in the PaintListener
interface.
Parameters: listener - the listener which should be notified 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: PaintListener See Also: Control.removePaintListener |
addTraverseListener | public void addTraverseListener(TraverseListener listener)(Code) | | Adds the listener to the collection of listeners who will
be notified when traversal events occur, by sending it
one of the messages defined in the TraverseListener
interface.
Parameters: listener - the listener which should be notified 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: TraverseListener See Also: Control.removeTraverseListener |
callFocusEventHandler | int callFocusEventHandler(int nextHandler, int theEvent)(Code) | | |
checkBackground | void checkBackground()(Code) | | |
checkBuffered | void checkBuffered()(Code) | | |
colorProc | int colorProc(int inControl, int inMessage, int inDrawDepth, int inDrawInColor)(Code) | | |
computeSize | public Point computeSize(int wHint, int hHint)(Code) | | Returns the preferred size of the receiver.
The preferred size of a control is the size that it would
best be displayed at. The width hint and height hint arguments
allow the caller to ask a control questions such as "Given a particular
width, how high does the control need to be to show all of the contents?"
To indicate that the caller does not wish to constrain a particular
dimension, the constant SWT.DEFAULT is passed for the hint.
Parameters: wHint - the width hint (can be SWT.DEFAULT ) Parameters: hHint - the height hint (can be SWT.DEFAULT ) the preferred size of the control 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: Layout See Also: Control.getBorderWidth See Also: Control.getBounds See Also: Control.getSize See Also: Control.pack(boolean) See Also: "computeTrim, getClientArea for controls that implement them" |
computeSize | public Point computeSize(int wHint, int hHint, boolean changed)(Code) | | Returns the preferred size of the receiver.
The preferred size of a control is the size that it would
best be displayed at. The width hint and height hint arguments
allow the caller to ask a control questions such as "Given a particular
width, how high does the control need to be to show all of the contents?"
To indicate that the caller does not wish to constrain a particular
dimension, the constant SWT.DEFAULT is passed for the hint.
If the changed flag is true , it indicates that the receiver's
contents have changed, therefore any caches that a layout manager
containing the control may have been keeping need to be flushed. When the
control is resized, the changed flag will be false , so layout
manager caches can be retained.
Parameters: wHint - the width hint (can be SWT.DEFAULT ) Parameters: hHint - the height hint (can be SWT.DEFAULT ) Parameters: changed - true if the control's contents have changed, and false otherwise the preferred size of the control. 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: Layout See Also: Control.getBorderWidth See Also: Control.getBounds See Also: Control.getSize See Also: Control.pack(boolean) See Also: "computeTrim, getClientArea for controls that implement them" |
createWidget | void createWidget()(Code) | | |
defaultThemeFont | int defaultThemeFont()(Code) | | |
deregister | void deregister()(Code) | | |
destroyWidget | void destroyWidget()(Code) | | |
dragDetect | public boolean dragDetect(Event event)(Code) | | Detects a drag and drop gesture. This method is used
to detect a drag gesture when called from within a mouse
down listener.
By default, a drag is detected when the gesture
occurs anywhere within the client area of a control.
Some controls, such as tables and trees, override this
behavior. In addition to the operating system specific
drag gesture, they require the mouse to be inside an
item. Custom widget writers can use setDragDetect
to disable the default detection, listen for mouse down,
and then call dragDetect() from within the
listener to conditionally detect a drag.
Parameters: event - the mouse down event true if the gesture occurred, and false otherwise. exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT when the event 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: DragDetectListener See Also: Control.addDragDetectListener See Also: Control.getDragDetect See Also: Control.setDragDetect since: 3.3 |
dragDetect | public boolean dragDetect(MouseEvent event)(Code) | | Detects a drag and drop gesture. This method is used
to detect a drag gesture when called from within a mouse
down listener.
By default, a drag is detected when the gesture
occurs anywhere within the client area of a control.
Some controls, such as tables and trees, override this
behavior. In addition to the operating system specific
drag gesture, they require the mouse to be inside an
item. Custom widget writers can use setDragDetect
to disable the default detection, listen for mouse down,
and then call dragDetect() from within the
listener to conditionally detect a drag.
Parameters: event - the mouse down event true if the gesture occurred, and false otherwise. exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT when the event 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: DragDetectListener See Also: Control.addDragDetectListener See Also: Control.getDragDetect See Also: Control.setDragDetect since: 3.3 |
dragDetect | boolean dragDetect(int button, int count, int stateMask, int x, int y)(Code) | | |
dragDetect | boolean dragDetect(int x, int y, boolean filter, boolean[] consume)(Code) | | |
drawFocus | void drawFocus(int control, int context, boolean hasFocus, boolean hasBorder, Rect inset)(Code) | | |
drawFocusRing | boolean drawFocusRing()(Code) | | |
drawGripper | boolean drawGripper(int x, int y, int width, int height, boolean vertical)(Code) | | |
drawWidget | void drawWidget(int control, int context, int damageRgn, int visibleRgn, int theEvent)(Code) | | |
enableWidget | void enableWidget(boolean enabled)(Code) | | |
equals | boolean equals(float[] color1, float[] color2)(Code) | | |
fillBackground | void fillBackground(int control, int context, Rectangle bounds)(Code) | | |
focusHandle | int focusHandle()(Code) | | |
focusPart | int focusPart()(Code) | | |
forceFocus | public boolean forceFocus()(Code) | | Forces the receiver to have the keyboard focus, causing
all keyboard events to be delivered to it.
true if the control got focus, and false if it was unable to. 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: Control.setFocus |
getBackground | public Color getBackground()(Code) | | Returns the receiver's background color.
the background color 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
|
getBackgroundImage | public Image getBackgroundImage()(Code) | | Returns the receiver's background image.
the background image 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
since: 3.2 |
getBorderWidth | public int getBorderWidth()(Code) | | Returns the receiver's border width.
the border width 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
|
getBounds | public Rectangle getBounds()(Code) | | Returns a rectangle describing the receiver's size and location
relative to its parent (or its display if its parent is null),
unless the receiver is a shell. In this case, the location is
relative to the display.
the receiver's bounding rectangle 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
|
getCursor | public Cursor getCursor()(Code) | | Returns the receiver's cursor, or null if it has not been set.
When the mouse pointer passes over a control its appearance
is changed to match the control's cursor.
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
since: 3.3 |
getDragDetect | public boolean getDragDetect()(Code) | | Returns true if the receiver is detecting
drag gestures, and false otherwise.
the receiver's drag detect state 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
since: 3.3 |
getDrawCount | int getDrawCount(int control)(Code) | | |
getEnabled | public boolean getEnabled()(Code) | | Returns true if the receiver is enabled, and
false otherwise. A disabled control is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
the receiver's enabled state 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: Control.isEnabled |
getFont | public Font getFont()(Code) | | Returns the font that the receiver will use to paint textual information.
the receiver's font 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
|
getForeground | public Color getForeground()(Code) | | Returns the foreground color that the receiver will use to draw.
the receiver's foreground color 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
|
getLayoutData | public Object getLayoutData()(Code) | | Returns layout data which is associated with the receiver.
the receiver's layout 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
|
getLocation | public Point getLocation()(Code) | | Returns a point describing the receiver's location relative
to its parent (or its display if its parent is null), unless
the receiver is a shell. In this case, the point is
relative to the display.
the receiver's location 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
|
getMenu | public Menu getMenu()(Code) | | Returns the receiver's pop up menu if it has one, or null
if it does not. All controls may optionally have a pop up
menu that is displayed when the user requests one for
the control. The sequence of key strokes, button presses
and/or button releases that are used to request a pop up
menu is platform specific.
the receiver's menu 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
|
getMininumHeight | int getMininumHeight()(Code) | | |
getMonitor | public Monitor getMonitor()(Code) | | Returns the receiver's monitor.
the receiver's monitor since: 3.0 |
getParent | public Composite getParent()(Code) | | Returns the receiver's parent, which must be a Composite
or null when the receiver is a shell that was created with null or
a display for a parent.
the receiver's parent 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
|
getParentBackground | float[] getParentBackground()(Code) | | |
getShell | public Shell getShell()(Code) | | Returns the receiver's shell. For all controls other than
shells, this simply returns the control's nearest ancestor
shell. Shells return themselves, even if they are children
of other shells.
the receiver's shell 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: Control.getParent |
getSize | public Point getSize()(Code) | | Returns a point describing the receiver's size. The
x coordinate of the result is the width of the receiver.
The y coordinate of the result is the height of the
receiver.
the receiver's size 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
|
getThemeAlpha | float getThemeAlpha()(Code) | | |
getToolTipText | public String getToolTipText()(Code) | | Returns the receiver's tool tip text, or null if it has
not been set.
the receiver's tool tip text 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
|
getVisible | public boolean getVisible()(Code) | | Returns true if the receiver is visible, and
false otherwise.
If one of the receiver's ancestors is not visible or some
other condition makes the receiver not visible, this method
may still indicate that it is considered visible even though
it may not actually be showing.
the receiver's visibility state 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) | | |
hasBorder | boolean hasBorder()(Code) | | |
hasFocus | boolean hasFocus()(Code) | | |
helpProc | int helpProc(int inControl, int inGlobalMouse, int inRequest, int outContentProvided, int ioHelpContent)(Code) | | |
hookEvents | void hookEvents()(Code) | | |
internal_dispose_GC | public void internal_dispose_GC(int context, GCData data)(Code) | | Invokes platform specific functionality to dispose a GC handle.
IMPORTANT: This method is not part of the public
API for Control . It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
Parameters: hDC - the platform specific GC handle Parameters: data - the platform specific GC data |
internal_new_GC | public int internal_new_GC(GCData data)(Code) | | Invokes platform specific functionality to allocate a new GC handle.
IMPORTANT: This method is not part of the public
API for Control . It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
Parameters: data - the platform specific GC data the platform specific GC handle |
invalWindowRgn | void invalWindowRgn(int window, int rgn)(Code) | | |
invalidateChildrenVisibleRegion | void invalidateChildrenVisibleRegion(int control)(Code) | | |
invalidateVisibleRegion | void invalidateVisibleRegion(int control)(Code) | | |
isEnabled | public boolean isEnabled()(Code) | | Returns true if the receiver is enabled and all
ancestors up to and including the receiver's nearest ancestor
shell are enabled. Otherwise, false is returned.
A disabled control is typically not selectable from the user
interface and draws with an inactive or "grayed" look.
the receiver's enabled state 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: Control.getEnabled |
isEnabledCursor | boolean isEnabledCursor()(Code) | | |
isEnabledModal | boolean isEnabledModal()(Code) | | |
isFocusControl | public boolean isFocusControl()(Code) | | Returns true if the receiver has the user-interface
focus, and false otherwise.
the receiver's focus state 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
|
isReparentable | public boolean isReparentable()(Code) | | Returns true if the underlying operating
system supports this reparenting, otherwise false
true if the widget can be reparented, otherwise false 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
|
isShowing | boolean isShowing()(Code) | | |
isTabGroup | boolean isTabGroup()(Code) | | |
isTabItem | boolean isTabItem()(Code) | | |
isVisible | public boolean isVisible()(Code) | | Returns true if the receiver is visible and all
ancestors up to and including the receiver's nearest ancestor
shell are visible. Otherwise, false is returned.
the receiver's visibility state 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: Control.getVisible |
kEventAccessibleGetAllAttributeNames | int kEventAccessibleGetAllAttributeNames(int nextHandler, int theEvent, int userData)(Code) | | |
kEventAccessibleGetChildAtPoint | int kEventAccessibleGetChildAtPoint(int nextHandler, int theEvent, int userData)(Code) | | |
kEventAccessibleGetFocusedChild | int kEventAccessibleGetFocusedChild(int nextHandler, int theEvent, int userData)(Code) | | |
kEventAccessibleGetNamedAttribute | int kEventAccessibleGetNamedAttribute(int nextHandler, int theEvent, int userData)(Code) | | |
kEventControlContextualMenuClick | int kEventControlContextualMenuClick(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) | | |
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) | | |
kEventTextInputUnicodeForKeyEvent | int kEventTextInputUnicodeForKeyEvent(int nextHandler, int theEvent, int userData)(Code) | | |
kEventUnicodeKeyPressed | int kEventUnicodeKeyPressed(int nextHandler, int theEvent, int userData)(Code) | | |
markLayout | void markLayout(boolean changed, boolean all)(Code) | | |
moveAbove | public void moveAbove(Control control)(Code) | | Moves the receiver above the specified control in the
drawing order. If the argument is null, then the receiver
is moved to the top of the drawing order. The control at
the top of the drawing order will not be covered by other
controls even if they occupy intersecting areas.
Parameters: control - the sibling control (or null) exception: IllegalArgumentException - - ERROR_INVALID_ARGUMENT - if the control has been disposed
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: Control.moveBelow See Also: Composite.getChildren |
moveBelow | public void moveBelow(Control control)(Code) | | Moves the receiver below the specified control in the
drawing order. If the argument is null, then the receiver
is moved to the bottom of the drawing order. The control at
the bottom of the drawing order will be covered by all other
controls which occupy intersecting areas.
Parameters: control - the sibling control (or null) exception: IllegalArgumentException - - ERROR_INVALID_ARGUMENT - if the control has been disposed
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: Control.moveAbove See Also: Composite.getChildren |
pack | public void pack()(Code) | | Causes the receiver to be resized to its preferred size.
For a composite, this involves computing the preferred size
from its layout, if there is one.
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: Control.computeSize(int,int,boolean) |
pack | public void pack(boolean changed)(Code) | | Causes the receiver to be resized to its preferred size.
For a composite, this involves computing the preferred size
from its layout, if there is one.
If the changed flag is true , it indicates that the receiver's
contents have changed, therefore any caches that a layout manager
containing the control may have been keeping need to be flushed. When the
control is resized, the changed flag will be false , so layout
manager caches can be retained.
Parameters: changed - whether or not the receiver's contents have changed 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: Control.computeSize(int,int,boolean) |
redraw | void redraw(boolean children)(Code) | | |
redraw | public void redraw(int x, int y, int width, int height, boolean all)(Code) | | Causes the rectangular area of the receiver specified by
the arguments to be marked as needing to be redrawn.
The next time a paint request is processed, that area of
the receiver will be painted, including the background.
If the all flag is true , any
children of the receiver which intersect with the specified
area will also paint their intersecting areas. If the
all flag is false , the children
will not be painted.
Parameters: x - the x coordinate of the area to draw Parameters: y - the y coordinate of the area to draw Parameters: width - the width of the area to draw Parameters: height - the height of the area to draw Parameters: all - true if children should redraw, and false otherwise 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: Control.update() See Also: PaintListener See Also: SWT.Paint See Also: SWT.NO_BACKGROUND See Also: SWT.NO_REDRAW_RESIZE See Also: SWT.NO_MERGE_PAINTS See Also: SWT.DOUBLE_BUFFERED |
register | void register()(Code) | | |
releaseHandle | void releaseHandle()(Code) | | |
releaseParent | void releaseParent()(Code) | | |
releaseWidget | void releaseWidget()(Code) | | |
removeControlListener | public void removeControlListener(ControlListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when the control is moved or resized.
Parameters: listener - the listener which should no longer be notified 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: ControlListener See Also: Control.addControlListener |
removeDragDetectListener | public void removeDragDetectListener(DragDetectListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when a drag gesture occurs.
Parameters: listener - the listener which should no longer be notified 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: DragDetectListener See Also: Control.addDragDetectListener since: 3.3 |
removeFocusListener | public void removeFocusListener(FocusListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when the control gains or loses focus.
Parameters: listener - the listener which should no longer be notified 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: FocusListener See Also: Control.addFocusListener |
removeHelpListener | public void removeHelpListener(HelpListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when the help events are generated for the control.
Parameters: listener - the listener which should no longer be notified 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: HelpListener See Also: Control.addHelpListener |
removeKeyListener | public void removeKeyListener(KeyListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when keys are pressed and released on the system keyboard.
Parameters: listener - the listener which should no longer be notified 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: KeyListener See Also: Control.addKeyListener |
removeMenuDetectListener | public void removeMenuDetectListener(MenuDetectListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when the platform-specific context menu trigger has
occurred.
Parameters: listener - the listener which should no longer be notified 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: MenuDetectListener See Also: Control.addMenuDetectListener since: 3.3 |
removeMouseListener | public void removeMouseListener(MouseListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when mouse buttons are pressed and released.
Parameters: listener - the listener which should no longer be notified 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: MouseListener See Also: Control.addMouseListener |
removeMouseMoveListener | public void removeMouseMoveListener(MouseMoveListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when the mouse moves.
Parameters: listener - the listener which should no longer be notified 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: MouseMoveListener See Also: Control.addMouseMoveListener |
removeMouseTrackListener | public void removeMouseTrackListener(MouseTrackListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when the mouse passes or hovers over controls.
Parameters: listener - the listener which should no longer be notified 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: MouseTrackListener See Also: Control.addMouseTrackListener |
removeMouseWheelListener | public void removeMouseWheelListener(MouseWheelListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when the mouse wheel is scrolled.
Parameters: listener - the listener which should no longer be notified 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: MouseWheelListener See Also: Control.addMouseWheelListener since: 3.3 |
removePaintListener | public void removePaintListener(PaintListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when the receiver needs to be painted.
Parameters: listener - the listener which should no longer be notified 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: PaintListener See Also: Control.addPaintListener |
removeTraverseListener | public void removeTraverseListener(TraverseListener listener)(Code) | | Removes the listener from the collection of listeners who will
be notified when traversal events occur.
Parameters: listener - the listener which should no longer be notified 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: TraverseListener See Also: Control.addTraverseListener |
resetVisibleRegion | void resetVisibleRegion(int control)(Code) | | |
sendDragEvent | boolean sendDragEvent(int button, int stateMask, int x, int y)(Code) | | |
sendDragEvent | boolean sendDragEvent(int button, int chord, int modifiers, int x, int y)(Code) | | |
sendFocusEvent | void sendFocusEvent(int type, boolean post)(Code) | | |
sendMouseEvent | boolean sendMouseEvent(int type, short button, int count, int detail, boolean send, int theEvent)(Code) | | |
sendMouseEvent | boolean sendMouseEvent(int type, short button, int count, boolean send, int chord, short x, short y, int modifiers)(Code) | | |
sendMouseEvent | boolean sendMouseEvent(int type, short button, int count, int detail, boolean send, int chord, short x, short y, int modifiers)(Code) | | |
sendMouseWheel | boolean sendMouseWheel(short wheelAxis, int wheelDelta)(Code) | | |
sendTrackEvents | void sendTrackEvents()(Code) | | |
setBackground | void setBackground()(Code) | | |
setBackground | public void setBackground(Color color)(Code) | | Sets the receiver's background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
Note: This operation is a hint and may be overridden by the platform.
For example, on Windows the background of a Button cannot be changed.
Parameters: color - the new color (or null) exception: IllegalArgumentException - - ERROR_INVALID_ARGUMENT - if the argument has been disposed
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
|
setBackground | void setBackground(float[] color)(Code) | | |
setBackground | void setBackground(int control, float[] color)(Code) | | |
setBackgroundImage | public void setBackgroundImage(Image image)(Code) | | Sets the receiver's background image to the image specified
by the argument, or to the default system color for the control
if the argument is null. The background image is tiled to fill
the available space.
Note: This operation is a hint and may be overridden by the platform.
For example, on Windows the background of a Button cannot be changed.
Parameters: image - the new image (or null) exception: IllegalArgumentException - - ERROR_INVALID_ARGUMENT - if the argument has been disposed
- ERROR_INVALID_ARGUMENT - if the argument is not a bitmap
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
since: 3.2 |
setBounds | public void setBounds(int x, int y, int width, int height)(Code) | | Sets the receiver's size and location to the rectangular
area specified by the arguments. The x and
y arguments are relative to the receiver's
parent (or its display if its parent is null), unless
the receiver is a shell. In this case, the x
and y arguments are relative to the display.
Note: Attempting to set the width or height of the
receiver to a negative number will cause that
value to be set to zero instead.
Parameters: x - the new x coordinate for the receiver Parameters: y - the new y coordinate for the receiver Parameters: width - the new width for the receiver Parameters: height - the new height for the receiver 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
|
setBounds | int setBounds(int x, int y, int width, int height, boolean move, boolean resize, boolean events)(Code) | | |
setBounds | public void setBounds(Rectangle rect)(Code) | | Sets the receiver's size and location to the rectangular
area specified by the argument. The x and
y fields of the rectangle are relative to
the receiver's parent (or its display if its parent is null).
Note: Attempting to set the width or height of the
receiver to a negative number will cause that
value to be set to zero instead.
Parameters: rect - the new bounds for the receiver 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
|
setCapture | public void setCapture(boolean capture)(Code) | | If the argument is true , causes the receiver to have
all mouse events delivered to it until the method is called with
false as the argument.
Parameters: capture - true to capture the mouse, and false to release it 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
|
setCursor | public void setCursor(Cursor cursor)(Code) | | Sets the receiver's cursor to the cursor specified by the
argument, or to the default cursor for that kind of control
if the argument is null.
When the mouse pointer passes over a control its appearance
is changed to match the control's cursor.
Parameters: cursor - the new cursor (or null) exception: IllegalArgumentException - - ERROR_INVALID_ARGUMENT - if the argument has been disposed
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
|
setDefaultFont | void setDefaultFont()(Code) | | |
setDragDetect | public void setDragDetect(boolean dragDetect)(Code) | | Sets the receiver's drag detect state. If the argument is
true , the receiver will detect drag gestures,
otherwise these gestures will be ignored.
Parameters: dragDetect - the new drag detect state 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
since: 3.3 |
setEnabled | public void setEnabled(boolean enabled)(Code) | | Enables the receiver if the argument is true ,
and disables it otherwise. A disabled control is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
Parameters: enabled - the new enabled state 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
|
setFocus | public boolean setFocus()(Code) | | Causes the receiver to have the keyboard focus,
such that all keyboard events will be delivered to it. Focus
reassignment will respect applicable platform constraints.
true if the control got focus, and false if it was unable to. 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: Control.forceFocus |
setFont | public void setFont(Font font)(Code) | | Sets the font that the receiver will use to paint textual information
to the font specified by the argument, or to the default font for that
kind of control if the argument is null.
Parameters: font - the new font (or null) exception: IllegalArgumentException - - ERROR_INVALID_ARGUMENT - if the argument has been disposed
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
|
setFontStyle | void setFontStyle(int control, Font font)(Code) | | |
setForeground | public void setForeground(Color color)(Code) | | Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
Note: This operation is a hint and may be overridden by the platform.
Parameters: color - the new color (or null) exception: IllegalArgumentException - - ERROR_INVALID_ARGUMENT - if the argument has been disposed
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
|
setForeground | void setForeground(float[] color)(Code) | | |
setForeground | void setForeground(int control, float[] color)(Code) | | |
setLayoutData | public void setLayoutData(Object layoutData)(Code) | | Sets the layout data associated with the receiver to the argument.
Parameters: layoutData - the new layout data for the receiver. 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
|
setLocation | public void setLocation(int x, int y)(Code) | | Sets the receiver's location to the point specified by
the arguments which are relative to the receiver's
parent (or its display if its parent is null), unless
the receiver is a shell. In this case, the point is
relative to the display.
Parameters: x - the new x coordinate for the receiver Parameters: y - the new y coordinate for the receiver 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
|
setLocation | public void setLocation(Point location)(Code) | | Sets the receiver's location to the point specified by
the arguments which are relative to the receiver's
parent (or its display if its parent is null), unless
the receiver is a shell. In this case, the point is
relative to the display.
Parameters: location - the new location for the receiver 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
|
setMenu | public void setMenu(Menu menu)(Code) | | Sets the receiver's pop up menu to the argument.
All controls may optionally have a pop up
menu that is displayed when the user requests one for
the control. The sequence of key strokes, button presses
and/or button releases that are used to request a pop up
menu is platform specific.
Note: Disposing of a control that has a pop up menu will
dispose of the menu. To avoid this behavior, set the
menu to null before the control is disposed.
Parameters: menu - the new pop up menu exception: IllegalArgumentException - - ERROR_MENU_NOT_POP_UP - the menu is not a pop up menu
- ERROR_INVALID_PARENT - if the menu is not in the same widget tree
- ERROR_INVALID_ARGUMENT - if the menu has been disposed
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
|
setParent | public boolean setParent(Composite parent)(Code) | | Changes the parent of the widget to be the one provided if
the underlying operating system supports this feature.
Returns true if the parent is successfully changed.
Parameters: parent - the new parent for the control. true if the parent is changed and false otherwise. exception: IllegalArgumentException - - ERROR_INVALID_ARGUMENT - if the argument has been disposed
- ERROR_NULL_ARGUMENT - if the parent 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
|
setRadioSelection | boolean setRadioSelection(boolean value)(Code) | | |
setRedraw | public void setRedraw(boolean redraw)(Code) | | If the argument is false , causes subsequent drawing
operations in the receiver to be ignored. No drawing of any kind
can occur in the receiver until the flag is set to true.
Graphics operations that occurred while the flag was
false are lost. When the flag is set to true ,
the entire widget is marked as needing to be redrawn. Nested calls
to this method are stacked.
Note: This operation is a hint and may not be supported on some
platforms or for some widgets.
Parameters: redraw - the new redraw state 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: Control.redraw(int,int,int,int,boolean) See Also: Control.update() |
setSize | public void setSize(int width, int height)(Code) | | Sets the receiver's size to the point specified by the arguments.
Note: Attempting to set the width or height of the
receiver to a negative number will cause that
value to be set to zero instead.
Parameters: width - the new width for the receiver Parameters: height - the new height for the receiver 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
|
setSize | public void setSize(Point size)(Code) | | Sets the receiver's size to the point specified by the argument.
Note: Attempting to set the width or height of the
receiver to a negative number will cause them to be
set to zero instead.
Parameters: size - the new size for the receiver exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the point 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
|
setTabGroupFocus | boolean setTabGroupFocus()(Code) | | |
setTabItemFocus | boolean setTabItemFocus()(Code) | | |
setToolTipText | public void setToolTipText(String string)(Code) | | Sets the receiver's tool tip text to the argument, which
may be null indicating that no tool tip text should be shown.
Parameters: string - the new tool tip text (or 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
|
setVisible | public void setVisible(boolean visible)(Code) | | Marks the receiver as visible if the argument is true ,
and marks it invisible otherwise.
If one of the receiver's ancestors is not visible or some
other condition makes the receiver not visible, marking
it visible may not actually cause it to be displayed.
Parameters: visible - the new visibility state 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
|
setZOrder | void setZOrder()(Code) | | |
sort | void sort(int[] items)(Code) | | |
textExtent | Point textExtent(char[] chars, int wHint)(Code) | | |
toControl | public Point toControl(int x, int y)(Code) | | Returns a point which is the result of converting the
argument, which is specified in display relative coordinates,
to coordinates relative to the receiver.
Parameters: x - the x coordinate to be translated Parameters: y - the y coordinate to be translated the translated coordinates 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
since: 2.1 |
toControl | public Point toControl(Point point)(Code) | | Returns a point which is the result of converting the
argument, which is specified in display relative coordinates,
to coordinates relative to the receiver.
Parameters: point - the point to be translated (must not be null) the translated coordinates exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the point 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
|
toDisplay | public Point toDisplay(int x, int y)(Code) | | Returns a point which is the result of converting the
argument, which is specified in coordinates relative to
the receiver, to display relative coordinates.
Parameters: x - the x coordinate to be translated Parameters: y - the y coordinate to be translated the translated coordinates 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
since: 2.1 |
toDisplay | public Point toDisplay(Point point)(Code) | | Returns a point which is the result of converting the
argument, which is specified in coordinates relative to
the receiver, to display relative coordinates.
Parameters: point - the point to be translated (must not be null) the translated coordinates exception: IllegalArgumentException - - ERROR_NULL_ARGUMENT - if the point 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
|
topHandle | int topHandle()(Code) | | |
translateTraversal | boolean translateTraversal(int key, int theEvent, boolean[] consume)(Code) | | |
traversalCode | int traversalCode(int key, int theEvent)(Code) | | |
traverse | public boolean traverse(int traversal)(Code) | | Based on the argument, perform one of the expected platform
traversal action. The argument should be one of the constants:
SWT.TRAVERSE_ESCAPE , SWT.TRAVERSE_RETURN ,
SWT.TRAVERSE_TAB_NEXT , SWT.TRAVERSE_TAB_PREVIOUS ,
SWT.TRAVERSE_ARROW_NEXT and SWT.TRAVERSE_ARROW_PREVIOUS .
Parameters: traversal - the type of traversal true if the traversal succeeded 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
|
traverseEscape | boolean traverseEscape()(Code) | | |
traverseGroup | boolean traverseGroup(boolean next)(Code) | | |
traverseItem | boolean traverseItem(boolean next)(Code) | | |
traverseMnemonic | boolean traverseMnemonic(char key)(Code) | | |
traverseMnemonic | boolean traverseMnemonic(Event event)(Code) | | |
traversePage | boolean traversePage(boolean next)(Code) | | |
traverseReturn | boolean traverseReturn()(Code) | | |
update | public void update()(Code) | | Forces all outstanding paint requests for the widget
to be processed before this method returns. If there
are no outstanding paint request, this method does
nothing.
Note: This method does not cause a redraw.
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: Control.redraw() See Also: Control.redraw(int,int,int,int,boolean) See Also: PaintListener See Also: SWT.Paint |
update | void update(boolean all)(Code) | | |
updateBackgroundMode | void updateBackgroundMode()(Code) | | |
updateLayout | void updateLayout(boolean all)(Code) | | |
Methods inherited from org.eclipse.swt.widgets.Widget | void _addListener(int eventType, Listener listener)(Code)(Java Doc) int accessibilityProc(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int actionProc(int theControl, int partCode)(Code)(Java Doc) public void addDisposeListener(DisposeListener listener)(Code)(Java Doc) public void addListener(int eventType, Listener listener)(Code)(Java Doc) void calculateVisibleRegion(int control, int visibleRgn, boolean clipChildren)(Code)(Java Doc) int callPaintEventHandler(int control, int damageRgn, int visibleRgn, int theEvent, int nextHandler)(Code)(Java Doc) static int checkBits(int style, int int0, int int1, int int2, int int3, int int4, int int5)(Code)(Java Doc) void checkOpen()(Code)(Java Doc) void checkOrientation(Widget parent)(Code)(Java Doc) void checkParent(Widget parent)(Code)(Java Doc) protected void checkSubclass()(Code)(Java Doc) protected void checkWidget()(Code)(Java Doc) int clockProc(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int colorProc(int inControl, int inMessage, int inDrawDepth, int inDrawInColor)(Code)(Java Doc) int commandProc(int nextHandler, int theEvent, int userData)(Code)(Java Doc) boolean contains(int shellX, int shellY)(Code)(Java Doc) int controlProc(int nextHandler, int theEvent, int userData)(Code)(Java Doc) void copyToClipboard(char[] buffer)(Code)(Java Doc) int createCIcon(Image image)(Code)(Java Doc) void createHandle()(Code)(Java Doc) int createIconRef(Image image)(Code)(Java Doc) void createWidget()(Code)(Java Doc) void deregister()(Code)(Java Doc) void destroyCIcon(int iconHandle)(Code)(Java Doc) void destroyWidget()(Code)(Java Doc) public void dispose()(Code)(Java Doc) void drawBackground(int control, int context)(Code)(Java Doc) int drawItemProc(int browser, int item, int property, int itemState, int theRect, int gdDepth, int colorDevice)(Code)(Java Doc) void drawWidget(int control, int context, int damageRgn, int visibleRgn, int theEvent)(Code)(Java Doc) void error(int code)(Code)(Java Doc) boolean filters(int eventType)(Code)(Java Doc) int fixMnemonic(char[] buffer)(Code)(Java Doc) String getClipboardText()(Code)(Java Doc) Rectangle getControlBounds(int control)(Code)(Java Doc) Point getControlSize(int control)(Code)(Java Doc) public Object getData()(Code)(Java Doc) public Object getData(String key)(Code)(Java Doc) public Display getDisplay()(Code)(Java Doc) int getDrawCount(int control)(Code)(Java Doc) Rect getInset()(Code)(Java Doc) String getName()(Code)(Java Doc) String getNameText()(Code)(Java Doc) public int getStyle()(Code)(Java Doc) int getVisibleRegion(int control, boolean clipChildren)(Code)(Java Doc) int helpProc(int inControl, int inGlobalMouse, int inRequest, int outContentProvided, int ioHelpContent)(Code)(Java Doc) int hitTestProc(int browser, int item, int property, int theRect, int mouseRect)(Code)(Java Doc) void hookEvents()(Code)(Java Doc) boolean hooks(int eventType)(Code)(Java Doc) void invalWindowRgn(int window, int rgn)(Code)(Java Doc) void invalidateVisibleRegion(int control)(Code)(Java Doc) public boolean isDisposed()(Code)(Java Doc) boolean isDrawing(int control)(Code)(Java Doc) boolean isEnabled()(Code)(Java Doc) public boolean isListening(int eventType)(Code)(Java Doc) boolean isTrimHandle(int trimHandle)(Code)(Java Doc) boolean isValidSubclass()(Code)(Java Doc) boolean isValidThread()(Code)(Java Doc) int itemCompareProc(int browser, int itemOne, int itemTwo, int sortProperty)(Code)(Java Doc) int itemDataProc(int browser, int item, int property, int itemData, int setValue)(Code)(Java Doc) int itemNotificationProc(int browser, int item, int message)(Code)(Java Doc) int kEventAccessibleGetAllAttributeNames(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventAccessibleGetChildAtPoint(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventAccessibleGetFocusedChild(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventAccessibleGetNamedAttribute(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventClockDateOrTimeChanged(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlActivate(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlApplyBackground(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlBoundsChanged(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlClick(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlContextualMenuClick(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlDeactivate(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlDraw(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlGetClickActivation(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlGetFocusPart(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlHit(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlHitTest(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlSetCursor(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlSetFocusPart(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventControlTrack(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMenuCalculateSize(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMenuClosed(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMenuCreateFrameView(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMenuDrawItem(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMenuDrawItemContent(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMenuGetFrameBounds(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMenuMeasureItemWidth(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMenuOpening(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMenuTargetItem(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMouseDown(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMouseDragged(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMouseMoved(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMouseUp(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventMouseWheelMoved(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventProcessCommand(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventRawKeyDown(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventRawKeyModifiersChanged(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventRawKeyPressed(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventRawKeyRepeat(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventRawKeyUp(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventSearchFieldCancelClicked(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventTextInputOffsetToPos(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventTextInputPosToOffset(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventTextInputUnicodeForKeyEvent(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventTextInputUpdateActiveInputArea(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowActivated(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowBoundsChanged(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowClose(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowCollapsed(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowDeactivated(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowDrawContent(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowExpanded(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowGetClickModality(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowGetRegion(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowHidden(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowHitTest(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowShown(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int kEventWindowUpdate(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int keyboardProc(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int menuProc(int nextHandler, int theEvent, int userData)(Code)(Java Doc) int mouseProc(int nextHandler, int theEvent, int userData)(Code)(Java Doc) public void notifyListeners(int eventType, Event event)(Code)(Java Doc) void postEvent(int eventType)(Code)(Java Doc) void postEvent(int eventType, Event event)(Code)(Java Doc) void redrawChildren(int control)(Code)(Java Doc) void redrawChildren(int control, int rgn)(Code)(Java Doc) void redrawWidget(int control, boolean children)(Code)(Java Doc) void redrawWidget(int control, int x, int y, int width, int height, boolean children)(Code)(Java Doc) void register()(Code)(Java Doc) void release(boolean destroy)(Code)(Java Doc) void releaseChildren(boolean destroy)(Code)(Java Doc) void releaseHandle()(Code)(Java Doc) void releaseParent()(Code)(Java Doc) void releaseWidget()(Code)(Java Doc) public void removeDisposeListener(DisposeListener listener)(Code)(Java Doc) public void removeListener(int eventType, Listener handler)(Code)(Java Doc) protected void removeListener(int eventType, SWTEventListener handler)(Code)(Java Doc) int searchProc(int nextHandler, int theEvent, int userData)(Code)(Java Doc) void sendEvent(Event event)(Code)(Java Doc) void sendEvent(int eventType)(Code)(Java Doc) void sendEvent(int eventType, Event event)(Code)(Java Doc) void sendEvent(int eventType, Event event, boolean send)(Code)(Java Doc) boolean sendKeyEvent(int type, int theEvent)(Code)(Java Doc) boolean sendKeyEvent(int type, Event event)(Code)(Java Doc) int setBounds(int control, int x, int y, int width, int height, boolean move, boolean resize, boolean events)(Code)(Java Doc) public void setData(Object data)(Code)(Java Doc) public void setData(String key, Object value)(Code)(Java Doc) boolean setInputState(Event event, int type, int chord, int modifiers)(Code)(Java Doc) boolean setKeyState(Event event, int type, int theEvent)(Code)(Java Doc) void setVisible(int control, boolean visible)(Code)(Java Doc) void setZOrder(int control, int otheControl, boolean above)(Code)(Java Doc) int textInputProc(int nextHandler, int theEvent, int userData)(Code)(Java Doc) RGBColor toRGBColor(float[] color)(Code)(Java Doc) public String toString()(Code)(Java Doc) int trackingProc(int browser, int itemID, int property, int theRect, int startPt, int modifiers)(Code)(Java Doc) int windowProc(int nextHandler, int theEvent, int userData)(Code)(Java Doc)
|
|
|