/** * Attempts to dispose the receiver, but allows the dispose to be vetoed * by the user in response to an <code>onbeforeunload</code> listener * in the Browser's current page. * * @return <code>true</code> if the receiver was disposed, and <code>false</code> otherwise * * @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> * * @see #dispose() * * @since 3.6 */ public boolean close () { checkWidget(); if (webBrowser.close ()) { isClosing = true; dispose (); isClosing = false; return true; } return false; }
/** * Attempts to dispose the receiver, but allows the dispose to be vetoed * by the user in response to an <code>onbeforeunload</code> listener * in the Browser's current page. * * @return <code>true</code> if the receiver was disposed, and <code>false</code> otherwise * * @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> * * @see #dispose() * * @since 3.6 */ public boolean close () { checkWidget(); if (webBrowser.close ()) { isClosing = true; dispose (); isClosing = false; return true; } return false; }
/** * Attempts to dispose the receiver, but allows the dispose to be vetoed * by the user in response to an <code>onbeforeunload</code> listener * in the Browser's current page. * * @return <code>true</code> if the receiver was disposed, and <code>false</code> otherwise * * @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> * * @see #dispose() * * @since 3.6 */ public boolean close () { checkWidget(); if (webBrowser.close ()) { isClosing = true; dispose (); isClosing = false; return true; } return false; }
/** * Attempts to dispose the receiver, but allows the dispose to be vetoed * by the user in response to an <code>onbeforeunload</code> listener * in the Browser's current page. * * @return <code>true</code> if the receiver was disposed, and <code>false</code> otherwise * * @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> * * @see #dispose() * * @since 3.6 */ public boolean close () { checkWidget(); if (webBrowser.close ()) { isClosing = true; dispose (); isClosing = false; return true; } return false; }
/** * Attempts to dispose the receiver, but allows the dispose to be vetoed * by the user in response to an <code>onbeforeunload</code> listener * in the Browser's current page. * * @return <code>true</code> if the receiver was disposed, and <code>false</code> otherwise * * @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> * * @see #dispose() * * @since 3.6 */ public boolean close () { checkWidget(); if (webBrowser.close ()) { isClosing = true; dispose (); isClosing = false; return true; } return false; }