/** * @deprecated use {@link #appendChild(Node)} */ @Deprecated public SimpleListItem appendContent(Node content) { asElement().appendChild(content); return this; }
public SimpleListItem appendChild(Node content) { asElement().appendChild(content); return this; }
/** * @deprecated use {@link #appendChild(Node)} */ @Deprecated public SimpleListItem appendContent(Node content) { asElement().appendChild(content); return this; }
public SimpleListItem appendChild(Node content) { asElement().appendChild(content); return this; }
public TopBarAction(BaseIcon<?> icon) { element.appendChild(clickableElement); clickableElement.appendChild(icon.asElement()); init(this); }
public TopBarAction(BaseIcon<?> icon) { element.appendChild(clickableElement); clickableElement.appendChild(icon.asElement()); init(this); }
@Override public void render(ExperimentalFeatureEditor editor) { HTMLLIElement li = (HTMLLIElement) document.createElement("li"); li.setAttribute("class", "list-group-item"); li.appendChild(editor.getElement()); featuresContainer.appendChild(li); }
@Override public void render(ExperimentalFeatureEditor editor) { HTMLLIElement li = (HTMLLIElement) document.createElement("li"); li.setAttribute("class", "list-group-item"); li.appendChild(editor.getElement()); featuresContainer.appendChild(li); }
private void init(HTMLDivElement stepHeader) { this.stepHeader = stepHeader; element.appendChild(stepHeader); element.appendChild(contentElement); contentElement.appendChild(bodyElement); contentElement.appendChild(footerElement); collapsible.collapse(); ElementUtil.onAttach(asElement(), mutationRecord -> { if (expanded) { collapsible.expand(); } }); init(this); }
private void init(HTMLDivElement stepHeader) { this.stepHeader = stepHeader; element.appendChild(stepHeader); element.appendChild(contentElement); contentElement.appendChild(bodyElement); contentElement.appendChild(footerElement); collapsible.collapse(); ElementUtil.onAttach(asElement(), mutationRecord -> { if (expanded) { collapsible.expand(); } }); init(this); }
private void init() { this.element = li().asElement(); this.element.appendChild(anchorElement); init(this); setWaveColor(WaveColor.THEME); applyWaveStyle(WaveStyle.BLOCK); }
private void init() { this.element = li().asElement(); this.element.appendChild(anchorElement); init(this); setWaveColor(WaveColor.THEME); applyWaveStyle(WaveStyle.BLOCK); }
public HeaderAction(BaseIcon<?> icon) { this.icon = icon; this.icon.withWaves() .styler(style -> style.add(Styles.pull_right, ACTION_ICON)); anchorElement.appendChild(this.icon.asElement()); element.appendChild(anchorElement); init(this); }
public HeaderAction(BaseIcon<?> icon) { this.icon = icon; this.icon.withWaves() .styler(style -> style.add(Styles.pull_right, ACTION_ICON)); anchorElement.appendChild(this.icon.asElement()); element.appendChild(anchorElement); init(this); }
private void init() { aElement = Elements.a() .attr("tabindex", "0") .asElement(); liElement.appendChild(aElement); liElement.addEventListener("click", evt -> { select(); evt.preventDefault(); }); liElement.addEventListener("touchstart", evt -> { select(); evt.preventDefault(); }); aElement.addEventListener("focus", evt -> focusHandlers.forEach(focusHandler -> focusHandler.onFocus(this))); }
private void init() { aElement = Elements.a() .attr("tabindex", "0") .asElement(); liElement.appendChild(aElement); liElement.addEventListener("click", evt -> { select(); evt.preventDefault(); }); liElement.addEventListener("touchstart", evt -> { select(); evt.preventDefault(); }); aElement.addEventListener("focus", evt -> focusHandlers.forEach(focusHandler -> focusHandler.onFocus(this))); }
public Tree enableSearch() { search = Style.of(Search.create(true)) .setHeight("40px") .get() .onSearch(Tree.this::filter) .onClose(this::clearFilter); searchIcon = Icons.ALL.search() .style() .setMarginBottom("0px") .setMarginTop("0px") .add(Styles.pull_right) .setProperty("cursor", "pointer") .get(); this.header.appendChild(search.asElement()); this.header.appendChild(searchIcon.asElement()); searchIcon.asElement().addEventListener("click", evt -> search.open()); return this; }
public Tree enableSearch() { search = Style.of(Search.create(true)) .setHeight("40px") .get() .onSearch(Tree.this::filter) .onClose(this::clearFilter); searchIcon = Icons.ALL.search() .style() .setMarginBottom("0px") .setMarginTop("0px") .add(Styles.pull_right) .setProperty("cursor", "pointer") .get(); this.header.appendChild(search.asElement()); this.header.appendChild(searchIcon.asElement()); searchIcon.asElement().addEventListener("click", evt -> search.open()); return this; }
public Tree enableFolding() { collapseAllIcon = Icons.ALL.fullscreen_exit() .style() .setMarginBottom("0px") .setMarginTop("0px") .add(Styles.pull_right) .setProperty("cursor", "pointer") .get(); collapseAllIcon.asElement().addEventListener("click", evt -> collapseAll()); expandAllIcon = Icons.ALL.fullscreen() .style() .setMarginBottom("0px") .setMarginTop("0px") .add(Styles.pull_right) .setProperty("cursor", "pointer") .get(); expandAllIcon.asElement().addEventListener("click", evt -> expandAll()); header.appendChild(expandAllIcon.asElement()); header.appendChild(collapseAllIcon.asElement()); return this; }
private void init() { this.element = li().asElement(); this.element.appendChild(anchorElement.asElement()); childrenContainer = ul().css("ml-tree").asElement(); asElement().appendChild(childrenContainer); collapsible = Collapsible.create(childrenContainer) .addCollapseHandler(() -> { Style.of(anchorElement).remove("toggled"); restoreIcon(); }) .addExpandHandler(() -> { Style.of(anchorElement).add("toggled"); replaceIcon(expandIcon); }) .collapse(); anchorElement.addEventListener("click", evt -> { if (isParent()) { collapsible.toggleDisplay(); } parent.setActiveItem(TreeItem.this); }); init(this); setWaveColor(WaveColor.THEME); applyWaveStyle(WaveStyle.BLOCK); }