Interface HasHTML

All Superinterfaces:
All Known Implementing Classes:
ButtonBase, DialogBox, HTML, Hyperlink, MenuItem, TreeItem

public interface HasHTML
extends HasText

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.

Method Summary
 String getHTML()
          Gets this object's contents as HTML.
 void setHTML(String html)
          Sets this object's contents via HTML.
Methods inherited from interface
getText, setText

Method Detail


public String getHTML()
Gets this object's contents as HTML.

the object's HTML


public 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 HasText.setText(java.lang.String) whenever possible.

html - the object's new HTML

This javadoc distribution was not produced by Google. The official documentation is here.