public interface

HasText

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

Class Overview

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 setText(String) method. HasText elements must only contain text. (This behavior is overridden for HasHTML widgets.)

For example:

 <g:Label>Hello.</g:Label>
 

Summary

Public Methods
abstract String getText()
Gets this object's text.
abstract void setText(String text)
Sets this object's text.

Public Methods

public abstract String getText ()

Gets this object's text.

Returns
  • the object's text

public abstract void setText (String text)

Sets this object's text.

Parameters
text the object's new text