| java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.google.gwt.user.client.ui.Label com.google.gwt.user.client.ui.HTML
HTML | public class HTML extends Label implements HasHTML(Code) | | A widget that can contain arbitrary HTML.
If you only need a simple label (text, but not HTML), then the
com.google.gwt.user.client.ui.Label widget is more appropriate, as it
disallows the use of HTML, which can lead to potential security issues if not
used properly.
CSS Style Rules
Example
|
Constructor Summary | |
public | HTML() Creates an empty HTML widget. | public | HTML(String html) Creates an HTML widget with the specified HTML contents. | public | HTML(String html, boolean wordWrap) Creates an HTML widget with the specified contents, optionally treating it
as HTML, and optionally disabling word wrapping. |
HTML | public HTML()(Code) | | Creates an empty HTML widget.
|
HTML | public HTML(String html)(Code) | | Creates an HTML widget with the specified HTML contents.
Parameters: html - the new widget's HTML contents |
HTML | public HTML(String html, boolean wordWrap)(Code) | | Creates an HTML widget with the specified contents, optionally treating it
as HTML, and optionally disabling word wrapping.
Parameters: html - the widget's contents Parameters: wordWrap - false to disable word wrapping |
|
|