T
- the Element type associatedpublic class LazyDomElement<T extends Element>
extends java.lang.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(java.lang.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(java.lang.String domId)
public T get()
java.lang.RuntimeException
- if the element cannot be found