GWT HTMLPanel consist of HTML contents only. We can add child widgets into identified element within html content.
Modifier and Types |
Method |
Description |
void |
add(Widget widget) |
It adds a child widget to the panel. |
void |
add(Widget widget, Element element) |
It adds a widget to the panel, contained within a HTML element. |
void |
add(Widget widget, java.lang.String id) |
It adds a child widget to the panel, contained within the HTML element specified by a given id. |
void |
addAndReplaceElement(IsWidget widget, Element toReplace) |
It replaces the element. It is the overloaded version for IsWidget. |
void |
addAndReplaceElement(Widget widget, Element toReplace) |
It adds a child widget to the panel, replacing the HTML element. |
void |
addAndReplaceElement(Widget widget, java.lang.String id) |
It adds a child widget to the panel, replacing the HTML element specified by a given id. |
static java.lang.String |
createUniqueId() |
A helper method for creating unique IDs for elements within dynamically- generated HTML. |
Element |
getElementById(java.lang.String id) |
It finds an element within the panel by its id.
|
static HTMLPanel |
removeAllRows() |
It removes all rows in the table. |
void |
wrap(Element element) |
It creates a HTML panel that wraps an existing element. |