java.lang.Object | |||||
↳ | com.google.gwt.user.client.ui.UIObject | ||||
↳ | com.google.gwt.user.client.ui.Widget | ||||
↳ | com.google.gwt.user.client.ui.Panel | ||||
↳ | com.google.gwt.user.client.ui.ComplexPanel | ||||
↳ | com.google.gwt.user.client.ui.HTMLPanel |
A panel that contains HTML, and which can attach child widgets to identified elements within that HTML.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an HTML panel with the specified HTML contents inside a DIV
element.
| |||||||||||
Initializes the panel's HTML from a given
SafeHtml object. | |||||||||||
Creates an HTML panel whose root element has the given tag, and with the
specified HTML contents.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a child widget to the panel, contained within an HTML
element.
| |||||||||||
Adds a child widget to the panel, contained within the HTML element
specified by a given id.
| |||||||||||
Adds a child widget to the panel.
| |||||||||||
This method is deprecated.
use
addAndReplaceElement(Widget, Element)
| |||||||||||
Adds a child widget to the panel, replacing the HTML element.
| |||||||||||
Adds a child widget to the panel, replacing the HTML element specified by a
given id.
| |||||||||||
A helper method for creating unique IDs for elements within dynamically-
generated HTML.
| |||||||||||
Finds an
element within this panel by its id. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.ComplexPanel
| |||||||||||
From class
com.google.gwt.user.client.ui.Panel
| |||||||||||
From class
com.google.gwt.user.client.ui.Widget
| |||||||||||
From class
com.google.gwt.user.client.ui.UIObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.event.logical.shared.HasAttachHandlers | |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.user.client.EventListener
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.IndexedPanel
| |||||||||||
From interface
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.IsWidget
| |||||||||||
From interface
java.lang.Iterable
|
Creates an HTML panel with the specified HTML contents inside a DIV element. Any element within this HTML that has a specified id can contain a child widget.
html | the panel's HTML |
---|
Initializes the panel's HTML from a given SafeHtml
object.
Similar to HTMLPanel(String)
safeHtml | the html to set. |
---|
Creates an HTML panel whose root element has the given tag, and with the specified HTML contents. Any element within this HTML that has a specified id can contain a child widget.
tag | the tag of the root element |
---|---|
html | the panel's HTML |
Adds a child widget to the panel, contained within an HTML element. It is up to the caller to ensure that the given element is a child of this panel's root element.
widget | the widget to be added |
---|---|
elem | the element within which it will be contained |
Adds a child widget to the panel, contained within the HTML element specified by a given id.
widget | the widget to be added |
---|---|
id | the id of the element within which it will be contained |
Adds a child widget to the panel.
widget | the widget to be added |
---|
This method is deprecated.
use addAndReplaceElement(Widget, Element)
Adds a child widget to the panel, replacing the HTML element.
widget | the widget to be added |
---|---|
toReplace | the element to be replaced by the widget |
Adds a child widget to the panel, replacing the HTML element.
widget | the widget to be added |
---|---|
toReplace | the element to be replaced by the widget |
Adds a child widget to the panel, replacing the HTML element specified by a given id.
widget | the widget to be added |
---|---|
id | the id of the element to be replaced by the widget |
A helper method for creating unique IDs for elements within dynamically- generated HTML. This is important because no two elements in a document should have the same id.
Finds an element
within this panel by its id.
This method uses
getElementById(String)
, so the
id must still be unique within the document.
id | the id of the element to be found |
---|
null
if none is found