本文整理了Java中com.google.gwt.dom.client.Element.removeAllChildren()
方法的一些代码示例,展示了Element.removeAllChildren()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.removeAllChildren()
方法的具体详情如下:
包路径:com.google.gwt.dom.client.Element
类名称:Element
方法名:removeAllChildren
暂无
代码示例来源:origin: stephenh/tessell
@Override
public void removeAllChildren() {
element.removeAllChildren();
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-examples-screen-client
@Override
public void destroy() {
projects.removeAllChildren();
tagInput.setValue("");
tagList.removeAllChildren();
}
代码示例来源:origin: JetBrains/mapper
@Override
public void set(Element value) {
el.removeAllChildren();
if (value != null) {
el.appendChild(value);
}
}
};
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-examples-screen-client
@EventHandler("clear")
private void onClearClicked(ClickEvent event) {
tagList.removeAllChildren();
presenter.removeAllTags();
}
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
public void clearItems() {
selectItem(null);
container.removeAllChildren();
for (UIObject item : items) {
item.getElement().setPropertyInt("colSpan", 1);
((SuggestionItem) item).setSuggestionsContainer(null);
}
items.clear();
}
代码示例来源:origin: JetBrains/mapper
@Override
public void set(WithElement value) {
el.removeAllChildren();
if (value != null && value.getElement() != null) {
el.appendChild(value.getElement());
}
}
};
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-examples-screen-client
@Override
public void setProjectsInRepository(final List<ImportProject> projects) {
this.projects.removeAllChildren();
for (ImportProject project : projects) {
final ProjectItemView w = makeProjectWidget(project);
this.projects.appendChild(w.asWidget().getElement());
}
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
@Override
protected void initCellWithText(String text, char align, String style, boolean textIsHTML,
boolean sorted, String description, TableCellElement td) {
super.initCellWithText(text, align, style, textIsHTML, sorted, description, td);
final Element tdElement = td.cast();
Tools.textSelectionEnable(tdElement, _delegate.textSelectionEnabled);
if (_delegate.clickableColumns != null && _delegate.clickableColumns.contains(currentColumnKey)) {
Element wrapperElement = tdElement.getFirstChildElement();
final Element clickableSpan = DOM.createSpan().cast();
clickableSpan.setClassName(CUBA_TABLE_CLICKABLE_CELL_STYLE);
clickableSpan.setInnerText(wrapperElement.getInnerText());
wrapperElement.removeAllChildren();
DOM.appendChild(wrapperElement, clickableSpan);
}
if (_delegate.multiLineCells) {
Style wrapperStyle = tdElement.getFirstChildElement().getStyle();
wrapperStyle.setWhiteSpace(Style.WhiteSpace.PRE_LINE);
}
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
@Override
protected void initCellWithText(String text, char align, String style, boolean textIsHTML,
boolean sorted, String description, TableCellElement td) {
super.initCellWithText(text, align, style, textIsHTML, sorted, description, td);
Element tdElement = td.cast();
Tools.textSelectionEnable(tdElement, _delegate.textSelectionEnabled);
if (_delegate.clickableColumns != null && _delegate.clickableColumns.contains(currentColumnKey)) {
Element wrapperElement = tdElement.getFirstChildElement();
final Element clickableSpan = DOM.createSpan().cast();
clickableSpan.setClassName(CUBA_TABLE_CLICKABLE_CELL_STYLE);
clickableSpan.setInnerText(wrapperElement.getInnerText());
wrapperElement.removeAllChildren();
DOM.appendChild(wrapperElement, clickableSpan);
}
if (_delegate.multiLineCells) {
Style wrapperStyle = tdElement.getFirstChildElement().getStyle();
wrapperStyle.setWhiteSpace(Style.WhiteSpace.PRE_LINE);
}
}
代码示例来源:origin: fr.putnami.pwt/pwt
@Override
public void redraw() {
StyleUtils.toggleStyle(this, LinkStyle.ACTIVE, this.active);
Element elem = getElement();
elem.removeAllChildren();
if (!active) {
elem = Document.get().createAnchorElement();
getElement().appendChild(elem);
if (this.link != null) {
AnchorElement.as(elem).setHref(this.link);
}
}
if (this.label != null) {
elem.setInnerHTML(this.label);
}
if (this.iconType != null) {
Icon icon = new Icon();
icon.setType(this.iconType);
elem.insertFirst(icon.getElement());
}
}
}
代码示例来源:origin: Putnami/putnami-web-toolkit
@Override
public void redraw() {
StyleUtils.toggleStyle(this, LinkStyle.ACTIVE, this.active);
Element elem = getElement();
elem.removeAllChildren();
if (!active) {
elem = Document.get().createAnchorElement();
getElement().appendChild(elem);
if (this.link != null) {
AnchorElement.as(elem).setHref(this.link);
}
}
if (this.label != null) {
elem.setInnerHTML(this.label);
}
if (this.iconType != null) {
Icon icon = new Icon();
icon.setType(this.iconType);
elem.insertFirst(icon.getElement());
}
}
}
代码示例来源:origin: tepi/FilteringTable
filterTrElement.removeAllChildren();
代码示例来源:origin: tepi/FilteringTable
filterTrElement.removeAllChildren();
内容来源于网络,如有侵权,请联系作者删除!