org.eclipse.swt.widgets
Class Control

java.lang.Object
  |
  +--org.eclipse.swt.widgets.Widget
        |
        +--org.eclipse.swt.widgets.Control
All Implemented Interfaces:
Drawable
Direct Known Subclasses:
Button, Label, ProgressBar, Sash, Scale, Scrollable, Slider

public abstract class Control
extends Widget
implements Drawable

Safe:


Field Summary
(package private) static short[] ACCENTS
           
(package private)  org.eclipse.swt.accessibility.Accessible accessible
           
(package private)  int background
           
(package private)  int drawCount
           
(package private)  int foreground
           
 int handle
          Suppressed: the handle to the OS resource (Warning: This field is platform dependent)
(package private)  int hCursor
           
(package private)  Object layoutData
           
(package private)  Menu menu
           
(package private)  Composite parent
           
(package private)  String toolTipText
           
 
Fields inherited from class org.eclipse.swt.widgets.Widget
CANVAS, COMCTL32_MAJOR, COMCTL32_MINOR, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DISABLED, DISPOSED, eventTable, HIDDEN, keys, MAJOR, MINOR, Mnemonic, state, style, values
 
Constructor Summary
(package private) Control()
          Prevents uninitialized instances from being created outside the package.
  Control(Composite parent, int style)
          Enabled: Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
 
Method Summary
 void addControlListener(ControlListener listener)
          Enabled: 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.
 void addFocusListener(FocusListener listener)
          Enabled: 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.
 void addHelpListener(HelpListener listener)
          Enabled: 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.
 void addKeyListener(KeyListener listener)
          Enabled: 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.
 void addMouseListener(MouseListener listener)
          Enabled: 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.
 void addMouseMoveListener(MouseMoveListener listener)
          Enabled: 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.
 void addMouseTrackListener(MouseTrackListener listener)
          Enabled: 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.
 void addPaintListener(PaintListener listener)
          Enabled: 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.
 void addTraverseListener(TraverseListener listener)
          Enabled: 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.
(package private) abstract  int callWindowProc(int msg, int wParam, int lParam)
           
(package private)  void checkOrientation(Widget parent)
           
 Point computeSize(int wHint, int hHint)
          Enabled: Returns the preferred size of the receiver.
 Point computeSize(int wHint, int hHint, boolean changed)
          Enabled: Returns the preferred size of the receiver.
(package private)  Control computeTabGroup()
           
(package private)  Control[] computeTabList()
           
(package private)  Control computeTabRoot()
           
(package private)  void createHandle()
           
(package private)  void createWidget()
           
(package private)  int defaultBackground()
           
(package private)  int defaultFont()
           
(package private)  int defaultForeground()
           
(package private)  void deregister()
           
(package private)  void destroyWidget()
          Destroys the widget in the operating system and releases the widget's handle.
(package private)  void drawBackground(int hDC)
           
(package private)  void drawBackground(int hDC, org.eclipse.swt.internal.win32.RECT rect)
           
(package private)  int findBrush(int pixel)
           
(package private)  int findCursor()
           
(package private)  char findMnemonic(String string)
           
(package private)  void fixFocus()
           
 boolean forceFocus()
          Suppressed: Forces the receiver to have the keyboard focus, causing all keyboard events to be delivered to it.
(package private)  void forceResize()
           
 org.eclipse.swt.accessibility.Accessible getAccessible()
          Suppressed: Returns the accessible object for the receiver.
 Color getBackground()
          Enabled: Returns the receiver's background color.
(package private)  int getBackgroundPixel()
           
 int getBorderWidth()
          Enabled: Returns the receiver's border width.
 Rectangle getBounds()
          Enabled: Returns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null).
(package private)  int getCodePage()
           
 Display getDisplay()
          Suppressed: Returns the display that the receiver was created on.
 boolean getEnabled()
          Enabled: Returns true if the receiver is enabled, and false otherwise.
 Font getFont()
          Enabled: Returns the font that the receiver will use to paint textual information.
 Color getForeground()
          Enabled: Returns the foreground color that the receiver will use to draw.
(package private)  int getForegroundPixel()
           
 Object getLayoutData()
          Enabled: Returns layout data which is associated with the receiver.
 Point getLocation()
          Enabled: Returns a point describing the receiver's location relative to its parent (or its display if its parent is null).
 Menu getMenu()
          Enabled: Returns the receiver's pop up menu if it has one, or null if it does not.
 Composite getParent()
          Suppressed: 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.
(package private)  Control[] getPath()
           
 Shell getShell()
          Suppressed: Returns the receiver's shell.
 Point getSize()
          Enabled: Returns a point describing the receiver's size.
 String getToolTipText()
          Enabled: Returns the receiver's tool tip text, or null if it has not been set.
 boolean getVisible()
          Enabled: Returns true if the receiver is visible, and false otherwise.
(package private)  boolean hasCursor()
           
(package private)  boolean hasFocus()
           
 void internal_dispose_GC(int hDC, GCData data)
          Suppressed: Invokes platform specific functionality to dispose a GC handle.
 int internal_new_GC(GCData data)
          Suppressed: Invokes platform specific functionality to allocate a new GC handle.
(package private)  boolean isActive()
           
 boolean isDisposed()
          Enabled:
 boolean isEnabled()
          Enabled: Returns true if the receiver is enabled and all of the receiver's ancestors are enabled, and false otherwise.
(package private)  boolean isFocusAncestor()
           
 boolean isFocusControl()
          Enabled: Returns true if the receiver has the user-interface focus, and false otherwise.
 boolean isReparentable()
          Enabled: Returns true if the underlying operating system supports this reparenting, otherwise false
(package private)  boolean isShowing()
           
(package private)  boolean isTabGroup()
           
(package private)  boolean isTabItem()
           
 boolean isVisible()
          Enabled: Returns true if the receiver is visible and all of the receiver's ancestors are visible and false otherwise.
(package private)  Decorations menuShell()
           
(package private)  boolean mnemonicHit(char key)
           
(package private)  boolean mnemonicMatch(char key)
           
 void moveAbove(Control control)
          Suppressed: Moves the receiver above the specified control in the drawing order.
 void moveBelow(Control control)
          Suppressed: Moves the receiver below the specified control in the drawing order.
(package private)  org.eclipse.swt.accessibility.Accessible new_Accessible(Control control)
           
 void pack()
          Enabled: Causes the receiver to be resized to its preferred size.
 void pack(boolean changed)
          Enabled: Causes the receiver to be resized to its preferred size.
 void redraw()
          Enabled: Causes the entire bounds of the receiver to be marked as needing to be redrawn.
 void redraw(int x, int y, int width, int height, boolean all)
          Enabled: Causes the rectangular area of the receiver specified by the arguments to be marked as needing to be redrawn.
(package private)  void register()
           
(package private)  void releaseHandle()
           
(package private)  void releaseWidget()
           
 void removeControlListener(ControlListener listener)
          Enabled: Removes the listener from the collection of listeners who will be notified when the control is moved or resized.
 void removeFocusListener(FocusListener listener)
          Enabled: Removes the listener from the collection of listeners who will be notified when the control gains or loses focus.
 void removeHelpListener(HelpListener listener)
          Enabled: Removes the listener from the collection of listeners who will be notified when the help events are generated for the control.
 void removeKeyListener(KeyListener listener)
          Enabled: Removes the listener from the collection of listeners who will be notified when keys are pressed and released on the system keyboard.
 void removeMouseListener(MouseListener listener)
          Enabled: Removes the listener from the collection of listeners who will be notified when mouse buttons are pressed and released.
 void removeMouseMoveListener(MouseMoveListener listener)
          Enabled: Removes the listener from the collection of listeners who will be notified when the mouse moves.
 void removeMouseTrackListener(MouseTrackListener listener)
          Enabled: Removes the listener from the collection of listeners who will be notified when the mouse passes or hovers over controls.
 void removePaintListener(PaintListener listener)
          Enabled: Removes the listener from the collection of listeners who will be notified when the receiver needs to be painted.
 void removeTraverseListener(TraverseListener listener)
          Enabled: Removes the listener from the collection of listeners who will be notified when traversal events occur.
(package private)  boolean sendKeyEvent(int type, int msg, int wParam, int lParam)
           
(package private)  boolean sendKeyEvent(int type, int msg, int wParam, int lParam, Event event)
           
(package private)  boolean sendMouseEvent(int type, int msg, int wParam, int lParam, Event event)
           
(package private)  boolean sendMouseEvent(int type, int button, int msg, int wParam, int lParam)
           
 void setBackground(Color color)
          Enabled: 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.
(package private)  void setBackgroundPixel(int pixel)
           
 void setBounds(int x, int y, int width, int height)
          Enabled: Sets the receiver's size and location to the rectangular area specified by the arguments.
(package private)  void setBounds(int x, int y, int width, int height, int flags)
           
 void setBounds(Rectangle rect)
          Enabled: Sets the receiver's size and location to the rectangular area specified by the argument.
 void setCapture(boolean capture)
          Suppressed: 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.
 void setCursor(Cursor cursor)
          Enabled: 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.
(package private)  void setDefaultFont()
           
 void setEnabled(boolean enabled)
          Enabled: Enables the receiver if the argument is true, and disables it otherwise.
 boolean setFocus()
          Suppressed: Causes the receiver to have the keyboard focus, such that all keyboard events will be delivered to it.
 void setFont(Font font)
          Enabled: 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 setForeground(Color color)
          Enabled: 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.
(package private)  void setForegroundPixel(int pixel)
           
 void setLayoutData(Object layoutData)
          Enabled: Sets the layout data associated with the receiver to the argument.
 void setLocation(int x, int y)
          Enabled: 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).
 void setLocation(Point location)
          Enabled: Sets the receiver's location to the point specified by the argument which is relative to the receiver's parent (or its display if its parent is null).
 void setMenu(Menu menu)
          Enabled: Sets the receiver's pop up menu to the argument.
 boolean setParent(Composite parent)
          Suppressed: Changes the parent of the widget to be the one provided if the underlying operating system supports this feature.
(package private)  boolean setRadioFocus()
           
(package private)  boolean setRadioSelection(boolean value)
           
 void setRedraw(boolean redraw)
          Enabled: If the argument is false, causes subsequent drawing operations in the receiver to be ignored.
(package private)  boolean setSavedFocus()
           
 void setSize(int width, int height)
          Enabled: Sets the receiver's size to the point specified by the arguments.
 void setSize(Point size)
          Enabled: Sets the receiver's size to the point specified by the argument.
(package private)  boolean setTabGroupFocus()
           
(package private)  boolean setTabItemFocus()
           
 void setToolTipText(String string)
          Enabled: Sets the receiver's tool tip text to the argument, which may be null indicating that no tool tip text should be shown.
 void setVisible(boolean visible)
          Enabled: Marks the receiver as visible if the argument is true, and marks it invisible otherwise.
(package private)  void sort(int[] items)
           
(package private)  void subclass()
           
 Point toControl(int x, int y)
          Suppressed: Returns a point which is the result of converting the argument, which is specified in display relative coordinates, to coordinates relative to the receiver.
 Point toControl(Point point)
          Enabled: Returns a point which is the result of converting the argument, which is specified in display relative coordinates, to coordinates relative to the receiver.
 Point toDisplay(int x, int y)
          Suppressed: Returns a point which is the result of converting the argument, which is specified in coordinates relative to the receiver, to display relative coordinates.
 Point toDisplay(Point point)
          Enabled: Returns a point which is the result of converting the argument, which is specified in coordinates relative to the receiver, to display relative coordinates.
static boolean transferActive(Shell[] sources, Shell dest)
          Added: If any of the sources were the active shell, then make dest the active shell.
static boolean transferFocus(Control[] sources, Control dest)
          Added: If any of 'sources' currently has or contains the focus, then requests that 'dest' gets the focus.
(package private)  boolean translateAccelerator(org.eclipse.swt.internal.win32.MSG msg)
           
(package private)  boolean translateMnemonic(char key)
           
(package private)  boolean translateMnemonic(org.eclipse.swt.internal.win32.MSG msg)
           
(package private)  boolean translateTraversal(org.eclipse.swt.internal.win32.MSG msg)
           
(package private)  boolean traverse(Event event)
           
 boolean traverse(int traversal)
          Suppressed: Based on the argument, perform one of the expected platform traversal action.
(package private)  boolean traverseEscape()
           
(package private)  boolean traverseGroup(boolean next)
           
(package private)  boolean traverseItem(boolean next)
           
(package private)  boolean traverseMnemonic(char key)
           
(package private)  boolean traversePage(boolean next)
           
(package private)  boolean traverseReturn()
           
(package private)  void unsubclass()
           
 void update()
          Suppressed: Forces all outstanding paint requests for the widget to be processed before this method returns.
(package private)  void update(boolean all)
           
(package private)  void updateFont(Font oldFont, Font newFont)
           
(package private)  int widgetExtStyle()
           
(package private)  int widgetStyle()
           
(package private) abstract  org.eclipse.swt.internal.win32.TCHAR windowClass()
           
(package private) abstract  int windowProc()
           
(package private)  int windowProc(int msg, int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_ACTIVATE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_CHAR(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_CLEAR(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_CLOSE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_COMMAND(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_CONTEXTMENU(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_CTLCOLOR(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_CUT(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_DESTROY(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_DRAWITEM(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_ENDSESSION(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_ERASEBKGND(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_GETDLGCODE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_GETFONT(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_GETOBJECT(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_HELP(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_HOTKEY(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_HSCROLL(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_IME_CHAR(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_IME_COMPOSITION(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_INITMENUPOPUP(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_KEYDOWN(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_KEYUP(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_KILLFOCUS(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDBLCLK(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDOWN(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONUP(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MBUTTONDBLCLK(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MBUTTONDOWN(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MBUTTONUP(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MEASUREITEM(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MENUCHAR(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MENUSELECT(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MOUSEACTIVATE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MOUSEHOVER(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MOUSELEAVE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MOUSEMOVE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MOUSEWHEEL(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MOVE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_NCACTIVATE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_NCCALCSIZE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_NCHITTEST(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_NOTIFY(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_PAINT(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_PALETTECHANGED(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_PASTE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_PRINTCLIENT(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_QUERYENDSESSION(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_QUERYNEWPALETTE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_QUERYOPEN(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONDBLCLK(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONDOWN(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONUP(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SETCURSOR(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SETFOCUS(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SETFONT(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SETREDRAW(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SETTINGCHANGE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SHOWWINDOW(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SIZE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SYSCHAR(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SYSCOLORCHANGE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SYSCOMMAND(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SYSKEYDOWN(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SYSKEYUP(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_TIMER(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_UNDO(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_VSCROLL(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_WINDOWPOSCHANGING(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT wmColorChild(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT wmCommandChild(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT wmDrawChild(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT wmMeasureChild(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT wmNotifyChild(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT wmScrollChild(int wParam, int lParam)
           
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkBits, checkParent, checkSubclass, checkWidget, dispose, error, filters, getData, getData, getName, getNameText, getStyle, hooks, isListening, isValidSubclass, isValidThread, mbcsToWcs, mbcsToWcs, notifyListeners, postEvent, postEvent, releaseChild, releaseResources, removeDisposeListener, removeListener, removeListener, sendEvent, sendEvent, sendEvent, sendEvent, setData, setData, setInputState, setKeyState, toString, wcsToMbcs, wcsToMbcs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

handle

public int handle
Suppressed: the handle to the OS resource (Warning: This field is platform dependent)


parent

Composite parent

drawCount

int drawCount

hCursor

int hCursor

foreground

int foreground

background

int background

menu

Menu menu

toolTipText

String toolTipText

layoutData

Object layoutData

accessible

org.eclipse.swt.accessibility.Accessible accessible

ACCENTS

static final short[] ACCENTS
Constructor Detail

Control

Control()
Prevents uninitialized instances from being created outside the package.


Control

public Control(Composite parent,
               int style)
Enabled: 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)
style - the style of control to construct
See Also:
SWT.BORDER, Widget.checkSubclass(), Widget.getStyle()
Method Detail

addControlListener

public void addControlListener(ControlListener listener)
Enabled: 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
See Also:
ControlListener, removeControlListener(org.eclipse.swt.events.ControlListener)

addFocusListener

public void addFocusListener(FocusListener listener)
Enabled: 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
See Also:
FocusListener, removeFocusListener(org.eclipse.swt.events.FocusListener)

addHelpListener

public void addHelpListener(HelpListener listener)
Enabled: 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
See Also:
HelpListener, removeHelpListener(org.eclipse.swt.events.HelpListener)

addKeyListener

public void addKeyListener(KeyListener listener)
Enabled: 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.

Parameters:
listener - the listener which should be notified
See Also:
KeyListener, removeKeyListener(org.eclipse.swt.events.KeyListener)

addMouseListener

public void addMouseListener(MouseListener listener)
Enabled: 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
See Also:
MouseListener, removeMouseListener(org.eclipse.swt.events.MouseListener)

addMouseTrackListener

public void addMouseTrackListener(MouseTrackListener listener)
Enabled: 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
See Also:
MouseTrackListener, removeMouseTrackListener(org.eclipse.swt.events.MouseTrackListener)

addMouseMoveListener

public void addMouseMoveListener(MouseMoveListener listener)
Enabled: 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
See Also:
MouseMoveListener, removeMouseMoveListener(org.eclipse.swt.events.MouseMoveListener)

addPaintListener

public void addPaintListener(PaintListener listener)
Enabled: 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
See Also:
PaintListener, removePaintListener(org.eclipse.swt.events.PaintListener)

addTraverseListener

public void addTraverseListener(TraverseListener listener)
Enabled: 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
See Also:
TraverseListener, removeTraverseListener(org.eclipse.swt.events.TraverseListener)

callWindowProc

abstract int callWindowProc(int msg,
                            int wParam,
                            int lParam)

checkOrientation

void checkOrientation(Widget parent)
Overrides:
checkOrientation in class Widget

computeSize

public Point computeSize(int wHint,
                         int hHint)
Enabled: 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)
hHint - the height hint (can be SWT.DEFAULT)
Returns:
the preferred size of the control
See Also:
Layout, getBorderWidth(), getBounds(), getSize(), pack(), "computeTrim, getClientArea for controls that implement them"

computeSize

public Point computeSize(int wHint,
                         int hHint,
                         boolean changed)
Enabled: 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)
hHint - the height hint (can be SWT.DEFAULT)
changed - true if the control's contents have changed, and false otherwise
Returns:
the preferred size of the control.
See Also:
Layout, getBorderWidth(), getBounds(), getSize(), pack(), "computeTrim, getClientArea for controls that implement them"

computeTabGroup

Control computeTabGroup()

computeTabRoot

Control computeTabRoot()

computeTabList

Control[] computeTabList()

createHandle

void createHandle()

createWidget

void createWidget()

defaultBackground

int defaultBackground()

defaultFont

int defaultFont()

defaultForeground

int defaultForeground()

deregister

void deregister()

destroyWidget

void destroyWidget()
Description copied from class: Widget
Destroys the widget in the operating system and releases the widget's handle. If the widget does not have a handle, this method may hide the widget, mark the widget as destroyed or do nothing, depending on the widget.

When a widget is destroyed in the operating system, its descendents are also destroyed by the operating system. This means that it is only necessary to call destroyWidget on the root of the widget tree.

This method is called after releaseWidget.

Overrides:
destroyWidget in class Widget
See Also:
Widget.dispose(), Widget.releaseChild(), Widget.releaseWidget(), Widget.releaseHandle()

drawBackground

void drawBackground(int hDC)

drawBackground

void drawBackground(int hDC,
                    org.eclipse.swt.internal.win32.RECT rect)

findBrush

int findBrush(int pixel)

findCursor

int findCursor()

findMnemonic

char findMnemonic(String string)

fixFocus

void fixFocus()

forceFocus

public boolean forceFocus()
Suppressed: Forces the receiver to have the keyboard focus, causing all keyboard events to be delivered to it.

Returns:
true if the control got focus, and false if it was unable to.
See Also:
setFocus()

forceResize

void forceResize()

getAccessible

public org.eclipse.swt.accessibility.Accessible getAccessible()
Suppressed: Returns the accessible object for the receiver. If this is the first time this object is requested, then the object is created and returned.

Returns:
the accessible object
Since:
2.0
See Also:
Accessible.addAccessibleListener(org.eclipse.swt.accessibility.AccessibleListener), Accessible.addAccessibleControlListener(org.eclipse.swt.accessibility.AccessibleControlListener)

getBackground

public Color getBackground()
Enabled: Returns the receiver's background color.

Returns:
the background color

getBackgroundPixel

int getBackgroundPixel()

getBorderWidth

public int getBorderWidth()
Enabled: Returns the receiver's border width.

Returns:
the border width

getBounds

public Rectangle getBounds()
Enabled: Returns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null).

Returns:
the receiver's bounding rectangle

getCodePage

int getCodePage()

getDisplay

public Display getDisplay()
Suppressed: Returns the display that the receiver was created on.

Specified by:
getDisplay in class Widget
Returns:
the receiver's display

getEnabled

public boolean getEnabled()
Enabled: 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.

Returns:
the receiver's enabled state
See Also:
isEnabled()

getFont

public Font getFont()
Enabled: Returns the font that the receiver will use to paint textual information.

Returns:
the receiver's font

getForeground

public Color getForeground()
Enabled: Returns the foreground color that the receiver will use to draw.

Returns:
the receiver's foreground color

getForegroundPixel

int getForegroundPixel()

getLayoutData

public Object getLayoutData()
Enabled: Returns layout data which is associated with the receiver.

Returns:
the receiver's layout data

getLocation

public Point getLocation()
Enabled: Returns a point describing the receiver's location relative to its parent (or its display if its parent is null).

Returns:
the receiver's location

getMenu

public Menu getMenu()
Enabled: 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.

Returns:
the receiver's menu

getParent

public Composite getParent()
Suppressed: 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.

Returns:
the receiver's parent

getPath

Control[] getPath()

getShell

public Shell getShell()
Suppressed: 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.

Returns:
the receiver's shell
See Also:
getParent()

getSize

public Point getSize()
Enabled: 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.

Returns:
the receiver's size

getToolTipText

public String getToolTipText()
Enabled: Returns the receiver's tool tip text, or null if it has not been set.

Returns:
the receiver's tool tip text

getVisible

public boolean getVisible()
Enabled: 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.

Returns:
the receiver's visibility state

hasCursor

boolean hasCursor()

hasFocus

boolean hasFocus()

internal_new_GC

public int internal_new_GC(GCData data)
Suppressed: 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.

Specified by:
internal_new_GC in interface Drawable
Parameters:
data - the platform specific GC data
Returns:
the platform specific GC handle

internal_dispose_GC

public void internal_dispose_GC(int hDC,
                                GCData data)
Suppressed: 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.

Specified by:
internal_dispose_GC in interface Drawable
Parameters:
data - the platform specific GC data
hDC - the platform specific GC handle

isActive

boolean isActive()

isDisposed

public boolean isDisposed()
Enabled:

Overrides:
isDisposed in class Widget
Returns:
true when the widget is disposed and false otherwise

isEnabled

public boolean isEnabled()
Enabled: Returns true if the receiver is enabled and all of the receiver's ancestors are enabled, and false otherwise. A disabled control is typically not selectable from the user interface and draws with an inactive or "grayed" look.

Returns:
the receiver's enabled state
See Also:
getEnabled()

isFocusControl

public boolean isFocusControl()
Enabled: Returns true if the receiver has the user-interface focus, and false otherwise.

Returns:
the receiver's focus state

isFocusAncestor

boolean isFocusAncestor()

isReparentable

public boolean isReparentable()
Enabled: Returns true if the underlying operating system supports this reparenting, otherwise false

Returns:
true if the widget can be reparented, otherwise false

isShowing

boolean isShowing()

isTabGroup

boolean isTabGroup()

isTabItem

boolean isTabItem()

isVisible

public boolean isVisible()
Enabled: Returns true if the receiver is visible and all of the receiver's ancestors are visible and false otherwise.

Returns:
the receiver's visibility state
See Also:
getVisible()

menuShell

Decorations menuShell()

mnemonicHit

boolean mnemonicHit(char key)

mnemonicMatch

boolean mnemonicMatch(char key)

moveAbove

public void moveAbove(Control control)
Suppressed: 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.


moveBelow

public void moveBelow(Control control)
Suppressed: 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.


new_Accessible

org.eclipse.swt.accessibility.Accessible new_Accessible(Control control)

pack

public void pack()
Enabled: 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.

See Also:
computeSize(int, int)

pack

public void pack(boolean changed)
Enabled: 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.

See Also:
computeSize(int, int)

redraw

public void redraw()
Enabled: Causes the entire bounds of the receiver to be marked as needing to be redrawn. The next time a paint request is processed, the control will be completely painted.

See Also:
update()

redraw

public void redraw(int x,
                   int y,
                   int width,
                   int height,
                   boolean all)
Enabled: 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. 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
y - the y coordinate of the area to draw
width - the width of the area to draw
height - the height of the area to draw
all - true if children should redraw, and false otherwise
See Also:
update()

register

void register()

releaseHandle

void releaseHandle()
Overrides:
releaseHandle in class Widget

releaseWidget

void releaseWidget()
Overrides:
releaseWidget in class Widget

removeControlListener

public void removeControlListener(ControlListener listener)
Enabled: 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 be notified
See Also:
ControlListener, addControlListener(org.eclipse.swt.events.ControlListener)

removeFocusListener

public void removeFocusListener(FocusListener listener)
Enabled: 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 be notified
See Also:
FocusListener, addFocusListener(org.eclipse.swt.events.FocusListener)

removeHelpListener

public void removeHelpListener(HelpListener listener)
Enabled: 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 be notified
See Also:
HelpListener, addHelpListener(org.eclipse.swt.events.HelpListener)

removeKeyListener

public void removeKeyListener(KeyListener listener)
Enabled: 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 be notified
See Also:
KeyListener, addKeyListener(org.eclipse.swt.events.KeyListener)

removeMouseTrackListener

public void removeMouseTrackListener(MouseTrackListener listener)
Enabled: 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 be notified
See Also:
MouseTrackListener, addMouseTrackListener(org.eclipse.swt.events.MouseTrackListener)

removeMouseListener

public void removeMouseListener(MouseListener listener)
Enabled: 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 be notified
See Also:
MouseListener, addMouseListener(org.eclipse.swt.events.MouseListener)

removeMouseMoveListener

public void removeMouseMoveListener(MouseMoveListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when the mouse moves.

Parameters:
listener - the listener which should be notified
See Also:
MouseMoveListener, addMouseMoveListener(org.eclipse.swt.events.MouseMoveListener)

removePaintListener

public void removePaintListener(PaintListener listener)
Enabled: 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 be notified
See Also:
PaintListener, addPaintListener(org.eclipse.swt.events.PaintListener)

removeTraverseListener

public void removeTraverseListener(TraverseListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when traversal events occur.

Parameters:
listener - the listener which should be notified
See Also:
TraverseListener, addTraverseListener(org.eclipse.swt.events.TraverseListener)

sendKeyEvent

boolean sendKeyEvent(int type,
                     int msg,
                     int wParam,
                     int lParam)

sendKeyEvent

boolean sendKeyEvent(int type,
                     int msg,
                     int wParam,
                     int lParam,
                     Event event)

sendMouseEvent

boolean sendMouseEvent(int type,
                       int button,
                       int msg,
                       int wParam,
                       int lParam)

sendMouseEvent

boolean sendMouseEvent(int type,
                       int msg,
                       int wParam,
                       int lParam,
                       Event event)

setBackground

public void setBackground(Color color)
Enabled: 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.

Parameters:
color - the new color (or null)

setBackgroundPixel

void setBackgroundPixel(int pixel)

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Enabled: 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).

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
y - the new y coordinate for the receiver
width - the new width for the receiver
height - the new height for the receiver

setBounds

void setBounds(int x,
               int y,
               int width,
               int height,
               int flags)

setBounds

public void setBounds(Rectangle rect)
Enabled: 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

setCapture

public void setCapture(boolean capture)
Suppressed: 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

setCursor

public void setCursor(Cursor cursor)
Enabled: 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)

setDefaultFont

void setDefaultFont()

setEnabled

public void setEnabled(boolean enabled)
Enabled: 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

setFocus

public boolean setFocus()
Suppressed: Causes the receiver to have the keyboard focus, such that all keyboard events will be delivered to it.

Returns:
true if the control got focus, and false if it was unable to.
See Also:
forceFocus()

setFont

public void setFont(Font font)
Enabled: 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)

setForeground

public void setForeground(Color color)
Enabled: 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.

Parameters:
color - the new color (or null)

setForegroundPixel

void setForegroundPixel(int pixel)

setLayoutData

public void setLayoutData(Object layoutData)
Enabled: Sets the layout data associated with the receiver to the argument.

Parameters:
layoutData - the new layout data for the receiver.

setLocation

public void setLocation(int x,
                        int y)
Enabled: 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).

Parameters:
x - the new x coordinate for the receiver
y - the new y coordinate for the receiver

setLocation

public void setLocation(Point location)
Enabled: Sets the receiver's location to the point specified by the argument which is relative to the receiver's parent (or its display if its parent is null).

Parameters:
location - the new location for the receiver

setMenu

public void setMenu(Menu menu)
Enabled: 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.

Parameters:
menu - the new pop up menu

setRadioFocus

boolean setRadioFocus()

setRadioSelection

boolean setRadioSelection(boolean value)

setRedraw

public void setRedraw(boolean redraw)
Enabled: 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.

Note: This operation is a hint and may not be supported on some platforms or for some widgets.

Parameters:
redraw - the new redraw state
See Also:
redraw(), update()

setSavedFocus

boolean setSavedFocus()

setSize

public void setSize(int width,
                    int height)
Enabled: 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
height - the new height for the receiver

setSize

public void setSize(Point size)
Enabled: 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

setTabGroupFocus

boolean setTabGroupFocus()

setTabItemFocus

boolean setTabItemFocus()

setToolTipText

public void setToolTipText(String string)
Enabled: 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)

setVisible

public void setVisible(boolean visible)
Enabled: 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

sort

void sort(int[] items)

subclass

void subclass()

toControl

public Point toControl(int x,
                       int y)
Suppressed: 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
y - the y coordinate to be translated
Returns:
the translated coordinates
Since:
2.1

toControl

public Point toControl(Point point)
Enabled: 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)
Returns:
the translated coordinates

toDisplay

public Point toDisplay(int x,
                       int y)
Suppressed: 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
y - the y coordinate to be translated
Returns:
the translated coordinates
Since:
2.1

toDisplay

public Point toDisplay(Point point)
Enabled: 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)
Returns:
the translated coordinates

translateAccelerator

boolean translateAccelerator(org.eclipse.swt.internal.win32.MSG msg)

translateMnemonic

boolean translateMnemonic(char key)

translateMnemonic

boolean translateMnemonic(org.eclipse.swt.internal.win32.MSG msg)

translateTraversal

boolean translateTraversal(org.eclipse.swt.internal.win32.MSG msg)

traverse

boolean traverse(Event event)

traverse

public boolean traverse(int traversal)
Suppressed: 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
Returns:
true if the traversal succeeded

traverseEscape

boolean traverseEscape()

traverseGroup

boolean traverseGroup(boolean next)

traverseItem

boolean traverseItem(boolean next)

traverseMnemonic

boolean traverseMnemonic(char key)

traversePage

boolean traversePage(boolean next)

traverseReturn

boolean traverseReturn()

unsubclass

void unsubclass()

update

public void update()
Suppressed: Forces all outstanding paint requests for the widget to be processed before this method returns.

See Also:
redraw()

update

void update(boolean all)

updateFont

void updateFont(Font oldFont,
                Font newFont)

widgetExtStyle

int widgetExtStyle()

widgetStyle

int widgetStyle()

setParent

public boolean setParent(Composite parent)
Suppressed: Changes the parent of the widget to be the one provided if the underlying operating system supports this feature. Answers true if the parent is successfully changed.

Parameters:
parent - the new parent for the control.
Returns:
true if the parent is changed and false otherwise.

windowClass

abstract org.eclipse.swt.internal.win32.TCHAR windowClass()

windowProc

abstract int windowProc()

windowProc

int windowProc(int msg,
               int wParam,
               int lParam)

WM_ACTIVATE

org.eclipse.swt.internal.win32.LRESULT WM_ACTIVATE(int wParam,
                                                   int lParam)

WM_CHAR

org.eclipse.swt.internal.win32.LRESULT WM_CHAR(int wParam,
                                               int lParam)

WM_CLEAR

org.eclipse.swt.internal.win32.LRESULT WM_CLEAR(int wParam,
                                                int lParam)

WM_CLOSE

org.eclipse.swt.internal.win32.LRESULT WM_CLOSE(int wParam,
                                                int lParam)

WM_COMMAND

org.eclipse.swt.internal.win32.LRESULT WM_COMMAND(int wParam,
                                                  int lParam)

WM_CONTEXTMENU

org.eclipse.swt.internal.win32.LRESULT WM_CONTEXTMENU(int wParam,
                                                      int lParam)

WM_CTLCOLOR

org.eclipse.swt.internal.win32.LRESULT WM_CTLCOLOR(int wParam,
                                                   int lParam)

WM_CUT

org.eclipse.swt.internal.win32.LRESULT WM_CUT(int wParam,
                                              int lParam)

WM_DESTROY

org.eclipse.swt.internal.win32.LRESULT WM_DESTROY(int wParam,
                                                  int lParam)

WM_DRAWITEM

org.eclipse.swt.internal.win32.LRESULT WM_DRAWITEM(int wParam,
                                                   int lParam)

WM_ENDSESSION

org.eclipse.swt.internal.win32.LRESULT WM_ENDSESSION(int wParam,
                                                     int lParam)

WM_ERASEBKGND

org.eclipse.swt.internal.win32.LRESULT WM_ERASEBKGND(int wParam,
                                                     int lParam)

WM_GETDLGCODE

org.eclipse.swt.internal.win32.LRESULT WM_GETDLGCODE(int wParam,
                                                     int lParam)

WM_GETFONT

org.eclipse.swt.internal.win32.LRESULT WM_GETFONT(int wParam,
                                                  int lParam)

WM_GETOBJECT

org.eclipse.swt.internal.win32.LRESULT WM_GETOBJECT(int wParam,
                                                    int lParam)

WM_HOTKEY

org.eclipse.swt.internal.win32.LRESULT WM_HOTKEY(int wParam,
                                                 int lParam)

WM_HELP

org.eclipse.swt.internal.win32.LRESULT WM_HELP(int wParam,
                                               int lParam)

WM_HSCROLL

org.eclipse.swt.internal.win32.LRESULT WM_HSCROLL(int wParam,
                                                  int lParam)

WM_IME_CHAR

org.eclipse.swt.internal.win32.LRESULT WM_IME_CHAR(int wParam,
                                                   int lParam)

WM_IME_COMPOSITION

org.eclipse.swt.internal.win32.LRESULT WM_IME_COMPOSITION(int wParam,
                                                          int lParam)

WM_INITMENUPOPUP

org.eclipse.swt.internal.win32.LRESULT WM_INITMENUPOPUP(int wParam,
                                                        int lParam)

WM_KEYDOWN

org.eclipse.swt.internal.win32.LRESULT WM_KEYDOWN(int wParam,
                                                  int lParam)

WM_KEYUP

org.eclipse.swt.internal.win32.LRESULT WM_KEYUP(int wParam,
                                                int lParam)

WM_KILLFOCUS

org.eclipse.swt.internal.win32.LRESULT WM_KILLFOCUS(int wParam,
                                                    int lParam)

WM_LBUTTONDBLCLK

org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDBLCLK(int wParam,
                                                        int lParam)

WM_LBUTTONDOWN

org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDOWN(int wParam,
                                                      int lParam)

WM_LBUTTONUP

org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONUP(int wParam,
                                                    int lParam)

WM_MBUTTONDBLCLK

org.eclipse.swt.internal.win32.LRESULT WM_MBUTTONDBLCLK(int wParam,
                                                        int lParam)

WM_MBUTTONDOWN

org.eclipse.swt.internal.win32.LRESULT WM_MBUTTONDOWN(int wParam,
                                                      int lParam)

WM_MBUTTONUP

org.eclipse.swt.internal.win32.LRESULT WM_MBUTTONUP(int wParam,
                                                    int lParam)

WM_MEASUREITEM

org.eclipse.swt.internal.win32.LRESULT WM_MEASUREITEM(int wParam,
                                                      int lParam)

WM_MENUCHAR

org.eclipse.swt.internal.win32.LRESULT WM_MENUCHAR(int wParam,
                                                   int lParam)

WM_MENUSELECT

org.eclipse.swt.internal.win32.LRESULT WM_MENUSELECT(int wParam,
                                                     int lParam)

WM_MOUSEACTIVATE

org.eclipse.swt.internal.win32.LRESULT WM_MOUSEACTIVATE(int wParam,
                                                        int lParam)

WM_MOUSEHOVER

org.eclipse.swt.internal.win32.LRESULT WM_MOUSEHOVER(int wParam,
                                                     int lParam)

WM_MOUSELEAVE

org.eclipse.swt.internal.win32.LRESULT WM_MOUSELEAVE(int wParam,
                                                     int lParam)

WM_MOUSEMOVE

org.eclipse.swt.internal.win32.LRESULT WM_MOUSEMOVE(int wParam,
                                                    int lParam)

WM_MOUSEWHEEL

org.eclipse.swt.internal.win32.LRESULT WM_MOUSEWHEEL(int wParam,
                                                     int lParam)

WM_MOVE

org.eclipse.swt.internal.win32.LRESULT WM_MOVE(int wParam,
                                               int lParam)

WM_NCACTIVATE

org.eclipse.swt.internal.win32.LRESULT WM_NCACTIVATE(int wParam,
                                                     int lParam)

WM_NCCALCSIZE

org.eclipse.swt.internal.win32.LRESULT WM_NCCALCSIZE(int wParam,
                                                     int lParam)

WM_NCHITTEST

org.eclipse.swt.internal.win32.LRESULT WM_NCHITTEST(int wParam,
                                                    int lParam)

WM_NOTIFY

org.eclipse.swt.internal.win32.LRESULT WM_NOTIFY(int wParam,
                                                 int lParam)

WM_PAINT

org.eclipse.swt.internal.win32.LRESULT WM_PAINT(int wParam,
                                                int lParam)

WM_PALETTECHANGED

org.eclipse.swt.internal.win32.LRESULT WM_PALETTECHANGED(int wParam,
                                                         int lParam)

WM_PASTE

org.eclipse.swt.internal.win32.LRESULT WM_PASTE(int wParam,
                                                int lParam)

WM_PRINTCLIENT

org.eclipse.swt.internal.win32.LRESULT WM_PRINTCLIENT(int wParam,
                                                      int lParam)

WM_QUERYENDSESSION

org.eclipse.swt.internal.win32.LRESULT WM_QUERYENDSESSION(int wParam,
                                                          int lParam)

WM_QUERYNEWPALETTE

org.eclipse.swt.internal.win32.LRESULT WM_QUERYNEWPALETTE(int wParam,
                                                          int lParam)

WM_QUERYOPEN

org.eclipse.swt.internal.win32.LRESULT WM_QUERYOPEN(int wParam,
                                                    int lParam)

WM_RBUTTONDBLCLK

org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONDBLCLK(int wParam,
                                                        int lParam)

WM_RBUTTONDOWN

org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONDOWN(int wParam,
                                                      int lParam)

WM_RBUTTONUP

org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONUP(int wParam,
                                                    int lParam)

WM_SETCURSOR

org.eclipse.swt.internal.win32.LRESULT WM_SETCURSOR(int wParam,
                                                    int lParam)

WM_SETFOCUS

org.eclipse.swt.internal.win32.LRESULT WM_SETFOCUS(int wParam,
                                                   int lParam)

WM_SETTINGCHANGE

org.eclipse.swt.internal.win32.LRESULT WM_SETTINGCHANGE(int wParam,
                                                        int lParam)

WM_SETFONT

org.eclipse.swt.internal.win32.LRESULT WM_SETFONT(int wParam,
                                                  int lParam)

WM_SETREDRAW

org.eclipse.swt.internal.win32.LRESULT WM_SETREDRAW(int wParam,
                                                    int lParam)

WM_SHOWWINDOW

org.eclipse.swt.internal.win32.LRESULT WM_SHOWWINDOW(int wParam,
                                                     int lParam)

WM_SIZE

org.eclipse.swt.internal.win32.LRESULT WM_SIZE(int wParam,
                                               int lParam)

WM_SYSCHAR

org.eclipse.swt.internal.win32.LRESULT WM_SYSCHAR(int wParam,
                                                  int lParam)

WM_SYSCOLORCHANGE

org.eclipse.swt.internal.win32.LRESULT WM_SYSCOLORCHANGE(int wParam,
                                                         int lParam)

WM_SYSCOMMAND

org.eclipse.swt.internal.win32.LRESULT WM_SYSCOMMAND(int wParam,
                                                     int lParam)

WM_SYSKEYDOWN

org.eclipse.swt.internal.win32.LRESULT WM_SYSKEYDOWN(int wParam,
                                                     int lParam)

WM_SYSKEYUP

org.eclipse.swt.internal.win32.LRESULT WM_SYSKEYUP(int wParam,
                                                   int lParam)

WM_TIMER

org.eclipse.swt.internal.win32.LRESULT WM_TIMER(int wParam,
                                                int lParam)

WM_UNDO

org.eclipse.swt.internal.win32.LRESULT WM_UNDO(int wParam,
                                               int lParam)

WM_VSCROLL

org.eclipse.swt.internal.win32.LRESULT WM_VSCROLL(int wParam,
                                                  int lParam)

WM_WINDOWPOSCHANGING

org.eclipse.swt.internal.win32.LRESULT WM_WINDOWPOSCHANGING(int wParam,
                                                            int lParam)

wmColorChild

org.eclipse.swt.internal.win32.LRESULT wmColorChild(int wParam,
                                                    int lParam)

wmCommandChild

org.eclipse.swt.internal.win32.LRESULT wmCommandChild(int wParam,
                                                      int lParam)

wmDrawChild

org.eclipse.swt.internal.win32.LRESULT wmDrawChild(int wParam,
                                                   int lParam)

wmMeasureChild

org.eclipse.swt.internal.win32.LRESULT wmMeasureChild(int wParam,
                                                      int lParam)

wmNotifyChild

org.eclipse.swt.internal.win32.LRESULT wmNotifyChild(int wParam,
                                                     int lParam)

wmScrollChild

org.eclipse.swt.internal.win32.LRESULT wmScrollChild(int wParam,
                                                     int lParam)

transferFocus

public static boolean transferFocus(Control[] sources,
                                    Control dest)
Added: If any of 'sources' currently has or contains the focus, then requests that 'dest' gets the focus.

Returns:
Whether the operation was authorized by 'sources', and whether the 'setFocus()' succeeded.

transferActive

public static boolean transferActive(Shell[] sources,
                                     Shell dest)
Added: If any of the sources were the active shell, then make dest the active shell.

Neither dest nor any of the sources may be null.



comments?