Adds a paint object listener. A paint object event is sent by the widget when an object
needs to be drawn.
@param listener the listener
@exception SWTException <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
</ul>
@exception IllegalArgumentException <ul>
<li>ERROR_NULL_ARGUMENT when listener is null</li>
</ul>
Adds a paint object listener. A paint object event is sent by the widget when an object needs to be drawn.
@param listener the listener @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul> @exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT when listener is null</li> </ul>
@since 3.2
@see PaintObjectListener @see PaintObjectEvent