API Reference 0.3.24dart_web_toolkit_eventHasText

HasText abstract class

An object that implements this interface contains text, which can be set and retrieved using these methods.

Use in UiBinder Templates

The body of an XML element representing a widget that implements HasText will be parsed as text and be used in a call to its {@link #setText(String)} method. HasText elements must only contain text. (This behavior is overridden for {@link HasHTML} widgets.)

For example:

<g:Label>Hello.</g:Label>
abstract class HasText {

 /**
  * Gets this object's text.
  *
  * @return the object's text
  */
 String get text;

 /**
  * Sets this object's text.
  *
  * @param text the object's new text
  */
 void set text(String value);
}

Subclasses

AutoDirectionHandlerTarget, HasDirectionalText, HasHtml

Properties

abstract String get text #

Gets this object's text.

@return the object's text

abstract void set text(String value) #

Sets this object's text.

@param text the object's new text