com.google.gwt.user.client.ui.HasHTML |
Known Indirect Subclasses
Anchor,
Button,
ButtonBase,
CheckBox,
CustomButton,
CustomButton.Face,
DialogBox,
HTML,
HasDirectionalHtml,
Hyperlink,
InlineHTML,
InlineHyperlink,
MenuItem,
PushButton,
RadioButton,
ResetButton,
RichTextArea,
SubmitButton,
ToggleButton,
TreeItem
Anchor |
A widget that represents a simple <a> element. |
Button |
A standard push-button widget. |
ButtonBase |
Abstract base class for Button ,
CheckBox ,
RadioButton . |
CheckBox |
A standard check box widget. |
CustomButton |
CustomButton is a base button class with built in support for a set number
of button faces. |
CustomButton.Face |
Represents a button's face. |
DialogBox |
A form of popup that has a caption area at the top and can be dragged by the
user. |
HTML |
A widget that can contain arbitrary HTML. |
HasDirectionalHtml |
An object that implements this interface contains html that has a direction. |
Hyperlink |
A widget that serves as an "internal" hyperlink. |
InlineHTML |
A widget that can contain arbitrary HTML. |
InlineHyperlink |
A widget that serves as an "internal" hyperlink. |
MenuItem |
An entry in a
MenuBar . |
PushButton |
A normal push button with custom styling. |
RadioButton |
A mutually-exclusive selection radio button widget. |
ResetButton |
A standard push-button widget which will automatically reset its enclosing
FormPanel if any. |
RichTextArea |
A rich text editor that allows complex styling and formatting. |
SubmitButton |
A standard push-button widget which will automatically submit its enclosing
FormPanel if any. |
ToggleButton |
A ToggleButton is a stylish stateful button which allows the
user to toggle between up and down states. |
TreeItem |
An item that can be contained within a
Tree . |
|
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.
|
Public Methods
public
abstract
String
getHTML
()
Gets this object's contents as 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
|