Display.setData

Sets the application defined, display specific data associated with the receiver, to the argument. The <em>display specific data</em> is a single, unnamed field that is stored with every display. <p> Applications may put arbitrary objects in this field. If the object stored in the display specific data needs to be notified when the display is disposed of, it is the application's responsibility provide a <code>disposeExec()</code> handler which does so. </p>

@param data the new display specific data

@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>

@see #getData() @see #disposeExec(Runnable)

  1. void setData(String key, Object value)
  2. void setData(Object data)
    class Display
    void
    setData
    (
    Object data
    )

Meta