public interface

HasHTML

implements HasText
com.google.gwt.user.client.ui.HasHTML
Known Indirect Subclasses

Class Overview

An object that implements this interface contains text, which can be set and retrieved using these methods. The object's text can be set either as HTML or as text.

Use in UiBinder Templates

The body of an XML element representing a widget that implements HasHTML will be parsed as HTML and be used in a call to its setHTML(String) method.

For example:

 <g:PushButton><b>Click me!</b></g:PushButton>
 

Summary

Public Methods
abstract String getHTML()
Gets this object's contents as HTML.
abstract void setHTML(String html)
Sets this object's contents via HTML.
[Expand]
Inherited Methods
From interface com.google.gwt.user.client.ui.HasText

Public Methods

public abstract String getHTML ()

Gets this object's contents as HTML.

Returns
  • the object's HTML

public abstract void setHTML (String html)

Sets this object's contents via HTML. Use care when setting an object's HTML; it is an easy way to expose script-based security problems. Consider using setText(String) whenever possible.

Parameters
html the object's new HTML