本文整理了Java中com.google.gwt.user.client.Element.removeAllChildren()
方法的一些代码示例,展示了Element.removeAllChildren()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.removeAllChildren()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Element
类名称:Element
方法名:removeAllChildren
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void clear() {
try {
doLogicalClear();
} finally {
getElement().removeAllChildren();
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* 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();
}
}
}
代码示例来源:origin: fr.putnami.pwt/pwt
@Override
public void clearErrors() {
this.errors.clear();
this.getElement().removeAllChildren();
}
代码示例来源:origin: Putnami/putnami-web-toolkit
@Override
public void clearErrors() {
this.errors.clear();
this.getElement().removeAllChildren();
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void clear() {
try {
doLogicalClear();
} finally {
getElement().removeAllChildren();
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void clear() {
try {
doLogicalClear();
} finally {
getElement().removeAllChildren();
}
}
代码示例来源:origin: de.esoco/gewt
/***************************************
* {@inheritDoc}
*/
@Override
public void clear()
{
super.clear();
getElement().removeAllChildren();
}
代码示例来源:origin: Putnami/putnami-web-toolkit
@Override
public void clear() {
for (CodeLine line : this.lines) {
line.asWidget().removeFromParent();
}
this.getElement().removeAllChildren();
this.lines.clear();
}
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
public void updateIcon() {
Optional.ofNullable(appTile.getIcon()).ifPresent(iconReference -> {
icon.removeAllChildren();
icon.appendChild(iconSupplier.apply(appTile.getIcon().getURL()).getElement());
});
}
代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3-extras
/**
* 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();
}
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3-extras
/**
* 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();
}
}
代码示例来源:origin: Putnami/putnami-web-toolkit
@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);
}
}
}
代码示例来源:origin: fr.putnami.pwt/pwt
public void setText(String text) {
this.getElement().removeAllChildren();
this.getElement().appendChild(Document.get().createTextNode(HTMLUtils.unescapeHTML(text)));
}
代码示例来源:origin: Putnami/putnami-web-toolkit
public void setText(String text) {
this.getElement().removeAllChildren();
this.getElement().appendChild(Document.get().createTextNode(HTMLUtils.unescapeHTML(text)));
}
代码示例来源:origin: fr.putnami.pwt/pwt
@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);
}
}
}
代码示例来源:origin: Putnami/putnami-web-toolkit
@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);
}
}
}
代码示例来源:origin: Putnami/putnami-web-toolkit
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());
}
}
代码示例来源:origin: fr.putnami.pwt/pwt
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());
}
}
代码示例来源:origin: Putnami/putnami-web-toolkit
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);
}
代码示例来源:origin: fr.putnami.pwt/pwt
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);
}
内容来源于网络,如有侵权,请联系作者删除!