Display.findWidget

Given the operating system handle for a widget, and widget-specific id, returns the instance of the <code>Widget</code> subclass which represents the handle/id pair in the currently running application, if such exists, or null if no matching widget can be found. <p> <b>IMPORTANT:</b> This method should not be called from application code. The arguments are platform-specific. </p>

@param handle the handle for the widget @param id the id for the subwidget (usually an item) @return the SWT widget that the handle/id pair represents

@exception SWTException <ul> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> </ul>

@since 3.1

  1. Widget findWidget(GtkWidget* handle)
  2. Widget findWidget(GtkWidget* handle, int id)
    class Display
    findWidget
    (
    GtkWidget* handle
    ,
    int id
    )
  3. Widget findWidget(Widget widget, ptrdiff_t id)

Meta