Java Doc for Control.java in  » IDE-Eclipse » swt » org » eclipse » swt » widgets » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » swt » org.eclipse.swt.widgets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.



Field Summary
final static  StringRESET_VISIBLE_REGION
    
 Accessibleaccessible
    
 ImagebackgroundImage
    
 Cursorcursor
    
 intdrawCountvisibleRgn
    
 Fontfont
    
 float[]foregroundbackground
    
 GCDatagcs
    
public  inthandle
     the handle to the OS resource (Warning: This field is platform dependent)

IMPORTANT: This field is not part of the SWT public API.

 ObjectlayoutData
    
 Menumenu
    
 Compositeparent
    
 StringtoolTipText
    

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
 intactionProc(int theControl, int partCode)
    
public  voidaddControlListener(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  voidaddDragDetectListener(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  voidaddFocusListener(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  voidaddHelpListener(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  voidaddKeyListener(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  voidaddMenuDetectListener(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  voidaddMouseListener(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  voidaddMouseMoveListener(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  voidaddMouseTrackListener(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  voidaddMouseWheelListener(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  voidaddPaintListener(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  voidaddTraverseListener(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.
 intcallFocusEventHandler(int nextHandler, int theEvent)
    
 voidcheckBackground()
    
 voidcheckBuffered()
    
 intcolorProc(int inControl, int inMessage, int inDrawDepth, int inDrawInColor)
    
public  PointcomputeSize(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  PointcomputeSize(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.

 ControlcomputeTabGroup()
    
 Control[]computeTabList()
    
 ControlcomputeTabRoot()
    
 voidcreateWidget()
    
 ColordefaultBackground()
    
 FontdefaultFont()
    
 ColordefaultForeground()
    
 intdefaultThemeFont()
    
 voidderegister()
    
 voiddestroyWidget()
    
public  booleandragDetect(Event event)
     Detects a drag and drop gesture.
public  booleandragDetect(MouseEvent event)
     Detects a drag and drop gesture.
 booleandragDetect(int button, int count, int stateMask, int x, int y)
    
 booleandragDetect(int x, int y, boolean filter, boolean[] consume)
    
 voiddrawFocus(int control, int context, boolean hasFocus, boolean hasBorder, Rect inset)
    
 booleandrawFocusRing()
    
 booleandrawGripper(int x, int y, int width, int height, boolean vertical)
    
 voiddrawWidget(int control, int context, int damageRgn, int visibleRgn, int theEvent)
    
 voidenableWidget(boolean enabled)
    
 booleanequals(float[] color1, float[] color2)
    
 voidfillBackground(int control, int context, Rectangle bounds)
    
 ControlfindBackgroundControl()
    
 CursorfindCursor()
    
 Menu[]findMenus(Control control)
    
 voidfixChildren(Shell newShell, Shell oldShell, Decorations newDecorations, Decorations oldDecorations, Menu[] menus)
    
 voidfixFocus(Control focusControl)
    
 intfocusHandle()
    
 intfocusPart()
    
public  booleanforceFocus()
     Forces the receiver to have the keyboard focus, causing all keyboard events to be delivered to it.
public  AccessiblegetAccessible()
     Returns the accessible object for the receiver.
public  ColorgetBackground()
     Returns the receiver's background color.
 ColorgetBackgroundColor()
    
public  ImagegetBackgroundImage()
     Returns the receiver's background image.
public  intgetBorderWidth()
     Returns the receiver's border width.
public  RectanglegetBounds()
     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  CursorgetCursor()
     Returns the receiver's cursor, or null if it has not been set.
public  booleangetDragDetect()
     Returns true if the receiver is detecting drag gestures, and false otherwise.
 intgetDrawCount(int control)
    
public  booleangetEnabled()
     Returns true if the receiver is enabled, and false otherwise.
public  FontgetFont()
     Returns the font that the receiver will use to paint textual information.
public  ColorgetForeground()
     Returns the foreground color that the receiver will use to draw.
 ColorgetForegroundColor()
    
public  ObjectgetLayoutData()
     Returns layout data which is associated with the receiver.
public  PointgetLocation()
     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  MenugetMenu()
     Returns the receiver's pop up menu if it has one, or null if it does not.
 intgetMininumHeight()
    
public  MonitorgetMonitor()
     Returns the receiver's monitor.
public  CompositegetParent()
     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  ShellgetShell()
     Returns the receiver's shell.
public  PointgetSize()
     Returns a point describing the receiver's size.
 floatgetThemeAlpha()
    
public  StringgetToolTipText()
     Returns the receiver's tool tip text, or null if it has not been set.
public  booleangetVisible()
     Returns true if the receiver is visible, and false otherwise.
 intgetVisibleRegion(int control, boolean clipChildren)
    
 booleanhasBorder()
    
 booleanhasFocus()
    
 inthelpProc(int inControl, int inGlobalMouse, int inRequest, int outContentProvided, int ioHelpContent)
    
 voidhookEvents()
    
public  voidinternal_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  intinternal_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.

 voidinvalWindowRgn(int window, int rgn)
    
 voidinvalidateChildrenVisibleRegion(int control)
    
 voidinvalidateVisibleRegion(int control)
    
public  booleanisEnabled()
     Returns true if the receiver is enabled and all ancestors up to and including the receiver's nearest ancestor shell are enabled.
 booleanisEnabledCursor()
    
 booleanisEnabledModal()
    
 booleanisFocusAncestor(Control control)
    
public  booleanisFocusControl()
     Returns true if the receiver has the user-interface focus, and false otherwise.
public  booleanisReparentable()
    
 booleanisShowing()
    
 booleanisTabGroup()
    
 booleanisTabItem()
    
public  booleanisVisible()
     Returns true if the receiver is visible and all ancestors up to and including the receiver's nearest ancestor shell are visible.
 intkEventAccessibleGetAllAttributeNames(int nextHandler, int theEvent, int userData)
    
 intkEventAccessibleGetChildAtPoint(int nextHandler, int theEvent, int userData)
    
 intkEventAccessibleGetFocusedChild(int nextHandler, int theEvent, int userData)
    
 intkEventAccessibleGetNamedAttribute(int nextHandler, int theEvent, int userData)
    
 intkEventControlContextualMenuClick(int nextHandler, int theEvent, int userData)
    
 intkEventControlHitTest(int nextHandler, int theEvent, int userData)
    
 intkEventControlSetCursor(int nextHandler, int theEvent, int userData)
    
 intkEventControlSetFocusPart(int nextHandler, int theEvent, int userData)
    
 intkEventControlTrack(int nextHandler, int theEvent, int userData)
    
 intkEventMouseDown(int nextHandler, int theEvent, int userData)
    
 intkEventMouseDragged(int nextHandler, int theEvent, int userData)
    
 intkEventMouseMoved(int nextHandler, int theEvent, int userData)
    
 intkEventMouseUp(int nextHandler, int theEvent, int userData)
    
 intkEventMouseWheelMoved(int nextHandler, int theEvent, int userData)
    
 intkEventTextInputUnicodeForKeyEvent(int nextHandler, int theEvent, int userData)
    
 intkEventUnicodeKeyPressed(int nextHandler, int theEvent, int userData)
    
 voidmarkLayout(boolean changed, boolean all)
    
 DecorationsmenuShell()
    
public  voidmoveAbove(Control control)
     Moves the receiver above the specified control in the drawing order.
public  voidmoveBelow(Control control)
     Moves the receiver below the specified control in the drawing order.
 Accessiblenew_Accessible(Control control)
    
public  voidpack()
     Causes the receiver to be resized to its preferred size.
public  voidpack(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  voidredraw()
     Causes the entire bounds of the receiver to be marked as needing to be redrawn.
 voidredraw(boolean children)
    
public  voidredraw(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.
 voidregister()
    
 voidreleaseHandle()
    
 voidreleaseParent()
    
 voidreleaseWidget()
    
public  voidremoveControlListener(ControlListener listener)
     Removes the listener from the collection of listeners who will be notified when the control is moved or resized.
public  voidremoveDragDetectListener(DragDetectListener listener)
     Removes the listener from the collection of listeners who will be notified when a drag gesture occurs.
public  voidremoveFocusListener(FocusListener listener)
     Removes the listener from the collection of listeners who will be notified when the control gains or loses focus.
public  voidremoveHelpListener(HelpListener listener)
     Removes the listener from the collection of listeners who will be notified when the help events are generated for the control.
public  voidremoveKeyListener(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  voidremoveMenuDetectListener(MenuDetectListener listener)
     Removes the listener from the collection of listeners who will be notified when the platform-specific context menu trigger has occurred.
public  voidremoveMouseListener(MouseListener listener)
     Removes the listener from the collection of listeners who will be notified when mouse buttons are pressed and released.
public  voidremoveMouseMoveListener(MouseMoveListener listener)
     Removes the listener from the collection of listeners who will be notified when the mouse moves.
public  voidremoveMouseTrackListener(MouseTrackListener listener)
     Removes the listener from the collection of listeners who will be notified when the mouse passes or hovers over controls.
public  voidremoveMouseWheelListener(MouseWheelListener listener)
     Removes the listener from the collection of listeners who will be notified when the mouse wheel is scrolled.
public  voidremovePaintListener(PaintListener listener)
     Removes the listener from the collection of listeners who will be notified when the receiver needs to be painted.
public  voidremoveTraverseListener(TraverseListener listener)
     Removes the listener from the collection of listeners who will be notified when traversal events occur.
 voidresetVisibleRegion(int control)
    
 booleansendDragEvent(int button, int stateMask, int x, int y)
    
 booleansendDragEvent(int button, int chord, int modifiers, int x, int y)
    
 voidsendFocusEvent(int type, boolean post)
    
 booleansendMouseEvent(int type, short button, int count, int detail, boolean send, int theEvent)
    
 booleansendMouseEvent(int type, short button, int count, boolean send, int chord, short x, short y, int modifiers)
    
 booleansendMouseEvent(int type, short button, int count, int detail, boolean send, int chord, short x, short y, int modifiers)
    
 booleansendMouseWheel(short wheelAxis, int wheelDelta)
    
 voidsendTrackEvents()
    
 voidsetBackground()
    
public  voidsetBackground(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.
 voidsetBackground(float[] color)
    
 voidsetBackground(int control, float[] color)
    
public  voidsetBackgroundImage(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  voidsetBounds(int x, int y, int width, int height)
     Sets the receiver's size and location to the rectangular area specified by the arguments.
 intsetBounds(int x, int y, int width, int height, boolean move, boolean resize, boolean events)
    
public  voidsetBounds(Rectangle rect)
     Sets the receiver's size and location to the rectangular area specified by the argument.
public  voidsetCapture(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  voidsetCursor(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.
 voidsetDefaultFont()
    
public  voidsetDragDetect(boolean dragDetect)
     Sets the receiver's drag detect state.
public  voidsetEnabled(boolean enabled)
     Enables the receiver if the argument is true, and disables it otherwise.
public  booleansetFocus()
     Causes the receiver to have the keyboard focus, such that all keyboard events will be delivered to it.
public  voidsetFont(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.
 voidsetFontStyle(Font font)
    
 voidsetFontStyle(int control, Font font)
    
public  voidsetForeground(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.
 voidsetForeground(float[] color)
    
 voidsetForeground(int control, float[] color)
    
public  voidsetLayoutData(Object layoutData)
     Sets the layout data associated with the receiver to the argument.
public  voidsetLocation(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  voidsetLocation(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  voidsetMenu(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  booleansetParent(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.
 booleansetRadioSelection(boolean value)
    
public  voidsetRedraw(boolean redraw)
     If the argument is false, causes subsequent drawing operations in the receiver to be ignored.
public  voidsetSize(int width, int height)
     Sets the receiver's size to the point specified by the arguments.
public  voidsetSize(Point size)
     Sets the receiver's size to the point specified by the argument.
 booleansetTabGroupFocus()
    
 booleansetTabItemFocus()
    
public  voidsetToolTipText(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  voidsetVisible(boolean visible)
     Marks the receiver as visible if the argument is true, and marks it invisible otherwise.
 voidsetZOrder()
    
 voidsetZOrder(Control control, boolean above)
    
 voidsort(int[] items)
    
 PointtextExtent(int ptr, int wHint)
    
 PointtextExtent(char[] chars, int wHint)
    
public  PointtoControl(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  PointtoControl(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  PointtoDisplay(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  PointtoDisplay(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.
 inttopHandle()
    
 booleantranslateTraversal(int key, int theEvent, boolean[] consume)
    
 inttraversalCode(int key, int theEvent)
    
public  booleantraverse(int traversal)
     Based on the argument, perform one of the expected platform traversal action.
 booleantraverse(Event event)
    
 booleantraverseEscape()
    
 booleantraverseGroup(boolean next)
    
 booleantraverseItem(boolean next)
    
 booleantraverseMnemonic(char key)
    
 booleantraverseMnemonic(Event event)
    
 booleantraversePage(boolean next)
    
 booleantraverseReturn()
    
public  voidupdate()
     Forces all outstanding paint requests for the widget to be processed before this method returns.
 voidupdate(boolean all)
    
 voidupdateBackgroundMode()
    
 voidupdateLayout(boolean all)
    

Field Detail
RESET_VISIBLE_REGION
final static String RESET_VISIBLE_REGION(Code)



accessible
Accessible accessible(Code)



backgroundImage
Image backgroundImage(Code)



cursor
Cursor cursor(Code)



drawCountvisibleRgn
int drawCountvisibleRgn(Code)



font
Font font(Code)



foregroundbackground
float[] foregroundbackground(Code)



gcs
GCData gcs(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.




layoutData
Object layoutData(Code)



menu
Menu menu(Code)



parent
Composite parent(Code)



toolTipText
String toolTipText(Code)




Constructor Detail
Control
Control()(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




Method Detail
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"



computeTabGroup
Control computeTabGroup()(Code)



computeTabList
Control[] computeTabList()(Code)



computeTabRoot
Control computeTabRoot()(Code)



createWidget
void createWidget()(Code)



defaultBackground
Color defaultBackground()(Code)



defaultFont
Font defaultFont()(Code)



defaultForeground
Color defaultForeground()(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)



findBackgroundControl
Control findBackgroundControl()(Code)



findCursor
Cursor findCursor()(Code)



findMenus
Menu[] findMenus(Control control)(Code)



fixChildren
void fixChildren(Shell newShell, Shell oldShell, Decorations newDecorations, Decorations oldDecorations, Menu[] menus)(Code)



fixFocus
void fixFocus(Control focusControl)(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



getAccessible
public Accessible getAccessible()(Code)
Returns the accessible object for the receiver. If this is the first time this object is requested, then the object is created and returned. the accessible object
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:   Accessible.addAccessibleListener
See Also:   Accessible.addAccessibleControlListener
since:
   2.0



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



getBackgroundColor
Color getBackgroundColor()(Code)



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



getForegroundColor
Color getForegroundColor()(Code)



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)



getPath
Control[] getPath()(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)



isFocusAncestor
boolean isFocusAncestor(Control control)(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)



menuShell
Decorations menuShell()(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



new_Accessible
Accessible new_Accessible(Control control)(Code)



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
public void redraw()(Code)
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, including the background.
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



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(Font font)(Code)



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)



setZOrder
void setZOrder(Control control, boolean above)(Code)



sort
void sort(int[] items)(Code)



textExtent
Point textExtent(int ptr, int wHint)(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



traverse
boolean traverse(Event event)(Code)



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)



Fields inherited from org.eclipse.swt.widgets.Widget
final static int CANVAS(Code)(Java Doc)
final static int DEFAULT_HEIGHT(Code)(Java Doc)
final static int DEFAULT_WIDTH(Code)(Java Doc)
final static int DISABLED(Code)(Java Doc)
final static int DISPOSED(Code)(Java Doc)
final static int DISPOSE_SENT(Code)(Java Doc)
final static int DRAG_DETECT(Code)(Java Doc)
final static Rect EMPTY_RECT(Code)(Java Doc)
final static int EXPANDING(Code)(Java Doc)
final static int FOREIGN_HANDLE(Code)(Java Doc)
final static int GRAB(Code)(Java Doc)
final static int HIDDEN(Code)(Java Doc)
final static int IGNORE_WHEEL(Code)(Java Doc)
final static int KEYED_DATA(Code)(Java Doc)
final static int LAYOUT_CHANGED(Code)(Java Doc)
final static int LAYOUT_CHILD(Code)(Java Doc)
final static int LAYOUT_NEEDED(Code)(Java Doc)
final static int MOVED(Code)(Java Doc)
final static int PARENT_BACKGROUND(Code)(Java Doc)
final static int RELEASED(Code)(Java Doc)
final static int RESIZED(Code)(Java Doc)
final static int THEME_BACKGROUND(Code)(Java Doc)
Object data(Code)(Java Doc)
Display display(Code)(Java Doc)
EventTable eventTable(Code)(Java Doc)
int stylestate(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.