T - the Element type associatedpublic class LazyDomElement<T extends Element> extends Object
Usage example:
Template:
<gwt:HTMLPanel>
<div ui:field="myDiv" />
</gwt:HTMLPanel>
Class:
@UiField LazyDomElement<DivElement> myDiv;
public setText(String text) {
myDiv.get().setInnerHtml(text);
}
| Constructor and Description |
|---|
LazyDomElement(String domId)
Creates an instance to fetch the element with the given id.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the dom element.
|
public LazyDomElement(String domId)
public T get()
RuntimeException - if the element cannot be foundCopyright © 2018. All rights reserved.