Browser.setText

Renders HTML.

<p> The html parameter is Unicode encoded since it is a java <code>String</code>. As a result, the HTML meta tag charset should not be set. The charset is implied by the <code>String</code> itself.

@param html the HTML content to be rendered

@return true if the operation was successful and false otherwise.

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the html is null</li> </ul>

@exception SWTException <ul> <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li> <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li> </ul>

@see #setUrl

@since 3.0

class Browser
bool
setText
(
String html
)

Meta