@Override public void clear() { try { doLogicalClear(); } finally { getElement().removeAllChildren(); } }
/** * Clears the rootPanel. If clearDom is true, then also remove any DOM * elements that are not widgets. * * <p>By default {@link #clear()} will only remove children that are GWT widgets. * This method also provides the option to remove all children including the * non-widget DOM elements that are directly added (e.g. elements added via * {@code getElement().appendChild(...)}. * * @param clearDom if {@code true} this method will also remove any DOM * elements that are not widgets. * * @deprecated Simply removing all DOM elements can cause issues with other elements in the page. */ @Deprecated public void clear(boolean clearDom) { clear(); if (clearDom) { getElement().removeAllChildren(); } } }
@Override public void clearErrors() { this.errors.clear(); this.getElement().removeAllChildren(); }
@Override public void clearErrors() { this.errors.clear(); this.getElement().removeAllChildren(); }
@Override public void clear() { try { doLogicalClear(); } finally { getElement().removeAllChildren(); } }
@Override public void clear() { try { doLogicalClear(); } finally { getElement().removeAllChildren(); } }
/*************************************** * {@inheritDoc} */ @Override public void clear() { super.clear(); getElement().removeAllChildren(); }
@Override public void clear() { for (CodeLine line : this.lines) { line.asWidget().removeFromParent(); } this.getElement().removeAllChildren(); this.lines.clear(); } }
public void updateIcon() { Optional.ofNullable(appTile.getIcon()).ifPresent(iconReference -> { icon.removeAllChildren(); icon.appendChild(iconSupplier.apply(appTile.getIcon().getURL()).getElement()); }); }
/** * Removes all contents and restores the editable instance * to an <code>_emptyPara_</code>: <p><br></p> */ @Override public void clear() { if (isAttached()) { command(getElement(), "empty"); } else { super.clear(); getElement().removeAllChildren(); } }
/** * Removes all contents and restores the editable instance * to an <code>_emptyPara_</code>: <p><br></p> */ @Override public void clear() { if (isAttached()) { command(getElement(), "empty"); } else { super.clear(); getElement().removeAllChildren(); } }
@Override public void edit(String value) { this.getElement().removeAllChildren(); if (value != null) { AnchorElement anchor = Document.get().createAnchorElement(); Icon icon = new Icon(); icon.setType(IconFont.ICON_MAIL); StringBuffer sb = new StringBuffer(); sb.append("mailto:").append(value); anchor.setHref(sb.toString()); anchor.appendChild(icon.getElement()); anchor.appendChild(Document.get().createTextNode(value)); this.getElement().appendChild(anchor); } } }
public void setText(String text) { this.getElement().removeAllChildren(); this.getElement().appendChild(Document.get().createTextNode(HTMLUtils.unescapeHTML(text))); }
public void setText(String text) { this.getElement().removeAllChildren(); this.getElement().appendChild(Document.get().createTextNode(HTMLUtils.unescapeHTML(text))); }
@Override public void redraw() { this.getElement().removeAllChildren(); for (Error error : this.errors) { LIElement errorElement = Document.get().createLIElement(); errorElement.setInnerText(error.getMessageKey()); this.getElement().appendChild(errorElement); } } }
@Override public void redraw() { this.getElement().removeAllChildren(); for (Error error : this.errors) { LIElement errorElement = Document.get().createLIElement(); errorElement.setInnerText(error.getMessageKey()); this.getElement().appendChild(errorElement); } } }
private void resetInner() { this.anchor.clear(); this.anchor.getElement().removeAllChildren(); if (this.label != null) { this.anchor.getElement().setInnerHTML(this.label); } if (this.iconType != null) { Icon icon = new Icon(); icon.setType(this.iconType); this.anchor.getElement().insertFirst(icon.getElement()); } }
private void resetInner() { this.anchor.clear(); this.anchor.getElement().removeAllChildren(); if (this.label != null) { this.anchor.getElement().setInnerHTML(this.label); } if (this.iconType != null) { Icon icon = new Icon(); icon.setType(this.iconType); this.anchor.getElement().insertFirst(icon.getElement()); } }
private void resetInner() { this.anchor.getElement().removeAllChildren(); if (this.iconType != null) { Icon icon = new Icon(); icon.setType(this.iconType); this.anchor.getElement().appendChild(icon.getElement()); } if (this.label != null) { Text textElem = Document.get().createTextNode(this.label); this.anchor.getElement().appendChild(textElem); } Text spaceElem = Document.get().createTextNode(" "); this.anchor.getElement().appendChild(spaceElem); this.anchor.getElement().appendChild(this.caret); }
private void resetInner() { this.anchor.getElement().removeAllChildren(); if (this.iconType != null) { Icon icon = new Icon(); icon.setType(this.iconType); this.anchor.getElement().appendChild(icon.getElement()); } if (this.label != null) { Text textElem = Document.get().createTextNode(this.label); this.anchor.getElement().appendChild(textElem); } Text spaceElem = Document.get().createTextNode(" "); this.anchor.getElement().appendChild(spaceElem); this.anchor.getElement().appendChild(this.caret); }