Search in sources :

Example 6 with Element

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";
}
Also used : Element(elemental2.dom.Element) Autorun(arez.annotations.Autorun)

Example 7 with Element

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);
}
Also used : Node(elemental2.dom.Node)

Aggregations

Element (elemental2.dom.Element)3 Node (elemental2.dom.Node)3 HTMLElement (elemental2.dom.HTMLElement)2 Card (org.dominokit.domino.ui.cards.Card)2 Test (org.junit.Test)2 Option (org.kie.workbench.common.screens.library.client.settings.util.KieSelectElement.Option)2 Autorun (arez.annotations.Autorun)1 EventListener (elemental2.dom.EventListener)1 HTMLDivElement (elemental2.dom.HTMLDivElement)1 HTMLSelectElement (elemental2.dom.HTMLSelectElement)1 Text (elemental2.dom.Text)1 UiView (org.dominokit.domino.api.client.annotations.UiView)1 CollapsePresenter (org.dominokit.domino.collapse.client.presenters.CollapsePresenter)1 CodeResource (org.dominokit.domino.collapse.client.views.CodeResource)1 CollapseView (org.dominokit.domino.collapse.client.views.CollapseView)1 ComponentView (org.dominokit.domino.componentcase.shared.extension.ComponentView)1 Button (org.dominokit.domino.ui.button.Button)1 Accordion (org.dominokit.domino.ui.collapsible.Accordion)1 AccordionPanel (org.dominokit.domino.ui.collapsible.AccordionPanel)1 Collapsible (org.dominokit.domino.ui.collapsible.Collapsible)1