use of elemental2.dom.Element in project arez by arez.
the class CurrencyView method renderView.
@Autorun
public void renderView() {
final Element element = DomGlobal.document.getElementById("currencyTracker");
element.innerHTML = "1 BTC = $" + bitcoin.getAmount() + "AUD";
}
use of elemental2.dom.Element in project mvp4g2-examples by mvp4g.
the class ShellView method setCenter.
@Override
public void setCenter(Element element) {
if (content.childElementCount > 0) {
for (int i = 0; i < content.childNodes.length; i++) {
Node oldChild = content.childNodes.item(i);
content.removeChild(oldChild);
}
}
content.appendChild(element);
}
Aggregations