API Reference 0.3.24dart_web_toolkit_eventHasHtml

HasHtml abstract class

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 {@link #setHTML(String)} method.

For example:

<g:PushButton><b>Click me!</b></g:PushButton>
abstract class HasHtml implements HasText {

 /**
  * Gets this object's contents as HTML.
  *
  * @return the object's HTML
  */
 String get 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 {@link #setText(String)} whenever possible.
  *
  * @param html the object's new HTML
  */
 void set html(String value);
}

Subclasses

Anchor, ButtonBase, Caption, DialogBox, Face, FlowPanel, HasDirectionalHtml, Hyperlink, MenuItem, TreeItem

Implements

HasText

Properties

abstract String get html #

Gets this object's contents as HTML.

@return the object's HTML

abstract void set html(String value) #

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 {@link #setText(String)} whenever possible.

@param html the object's new HTML

abstract String get text #

inherited from HasText

Gets this object's text.

@return the object's text

abstract void set text(String value) #

inherited from HasText

Sets this object's text.

@param text the object's new text