com.google.gwt.safehtml.client.HasSafeHtml |
Known Indirect Subclasses
Anchor,
Button,
ButtonBase,
CheckBox,
CustomButton,
CustomButton.Face,
DialogBox,
HTML,
HasDirectionalSafeHtml,
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. |
HasDirectionalSafeHtml |
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 with HTML markup,
which can be set with the Cross-Site-Scripting-safe HTML markup encapsulated
in a SafeHtml
object.
Summary
Public Methods |
abstract
void
|
setHTML(SafeHtml html)
Sets this object's contents via known-safe HTML.
|
Public Methods
public
abstract
void
setHTML
(SafeHtml html)
Sets this object's contents via known-safe HTML.
The object will behave exactly the same as when a widget's
setHTML(String)
method is
invoked; however the SafeHtml
passed to this method observes the
contract that it can be used in an HTML context without causing unsafe
script execution. Thus, unlike
setHTML(String)
, using this
method cannot result in Cross-Site Scripting security vulnerabilities.
Parameters
html
| the object's new HTML, represented as a SafeHtml object
|