org.dominokit.domino.ui.layout.Templated_NavigationBar Maven / Gradle / Ivy
package org.dominokit.domino.ui.layout;
import elemental2.dom.DomGlobal;
import org.jboss.gwt.elemento.template.TemplateUtil;
import javax.annotation.Generated;
/*
* WARNING! This class is generated. Do not modify.
*/
@Generated("org.jboss.gwt.elemento.processor.TemplatedProcessor")
public final class Templated_NavigationBar extends NavigationBar {
private final elemental2.dom.HTMLElement templated_navigationbar_root_element;
public Templated_NavigationBar() {
this.templated_navigationbar_root_element = (elemental2.dom.HTMLElement)DomGlobal.document.createElement("nav");
this.templated_navigationbar_root_element.setAttribute("class", "navbar");
this.templated_navigationbar_root_element.innerHTML = " ";
if (this.menu == null) {
this.menu = TemplateUtil. resolveElementAs(templated_navigationbar_root_element, "menu");
} else {
TemplateUtil.replaceElement(templated_navigationbar_root_element, "menu", menu);
}
if (this.navBarExpand == null) {
this.navBarExpand = TemplateUtil.resolveElementAs(templated_navigationbar_root_element, "navBarExpand");
} else {
TemplateUtil.replaceElement(templated_navigationbar_root_element, "navBarExpand", navBarExpand);
}
if (this.navigationBar == null) {
this.navigationBar = TemplateUtil.resolveElementAs(templated_navigationbar_root_element, "navigationBar");
} else {
TemplateUtil.replaceElement(templated_navigationbar_root_element, "navigationBar", navigationBar);
}
if (this.topBar == null) {
this.topBar = TemplateUtil.resolveElementAs(templated_navigationbar_root_element, "topBar");
} else {
TemplateUtil.replaceElement(templated_navigationbar_root_element, "topBar", topBar);
}
if (this.title == null) {
this.title = TemplateUtil.resolveElementAs(templated_navigationbar_root_element, "title");
} else {
TemplateUtil.replaceElement(templated_navigationbar_root_element, "title", title);
}
if (this.navBarHeader == null) {
this.navBarHeader = TemplateUtil.resolveElementAs(templated_navigationbar_root_element, "navBarHeader");
} else {
TemplateUtil.replaceElement(templated_navigationbar_root_element, "navBarHeader", navBarHeader);
}
init();
}
@Override
public elemental2.dom.HTMLElement asElement() {
return templated_navigationbar_root_element;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy