本文整理了Java中com.google.gwt.user.client.Element.hasChildNodes()
方法的一些代码示例,展示了Element.hasChildNodes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.hasChildNodes()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Element
类名称:Element
方法名:hasChildNodes
暂无
代码示例来源:origin: VueGWT/vue-gwt
private boolean isMounted() {
return getElement().hasChildNodes();
}
代码示例来源:origin: com.extjs/gxt
protected void cleanup(El row) {
NodeList<Node> cn = row.dom.getChildNodes();
for (int i = cn.getLength() - 1; i >= 0; i--) {
Element td = (Element) cn.getItem(i);
if (!td.hasChildNodes()) {
row.dom.removeChild(td);
}
}
}
代码示例来源:origin: com.extjs/gxt
protected void cleanCells() {
NodeList<Element> tds = DomQuery.select("tr.x-grid3-hd-row > td", table.getElement());
for (int i = 0; i < tds.getLength(); i++) {
Element td = tds.getItem(i);
if (!td.hasChildNodes()) {
El.fly(td).removeFromParent();
}
}
}
代码示例来源:origin: org.kuali.student.core/ks-common-ui
public void addWidget(Widget w) {
if (w != null) {
if (hasSeparator) {
if (widgetPanel.getElement().hasChildNodes()) {
HTML separatorWrapper = new HTML("<span style='float: left; margin-left: .7em; margin-right: .7em'>|</span>");
separatorWrapper.addStyleName("ks-documentHeader-widgetPanel");
widgetPanel.add(separatorWrapper);
}
}
w.addStyleName("ks-documentHeader-widgetPanel");
widgetPanel.add(w);
}
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
public void updateFromUIDL(UIDL uidl) {
if (getElement().hasChildNodes()) {
getElement().removeAllChildren();
initialized = getElement().hasChildNodes();
代码示例来源:origin: com.extjs/gxt
private void ensureFocusElement() {
if (focusEl != null) {
focusEl.removeFromParent();
}
focusEl = new El(focusImpl.createFocusable());
focusEl.dom.getStyle().setProperty("outline", "none");
getElement().appendChild(focusEl.dom);
if (focusEl.dom.hasChildNodes()) {
focusEl.dom.getFirstChildElement().getStyle().setProperty("outline", "none");
com.google.gwt.dom.client.Style focusElStyle = focusEl.dom.getFirstChildElement().getStyle();
focusElStyle.setProperty("borderWidth", "0px");
focusElStyle.setProperty("fontSize", "1px");
focusElStyle.setPropertyPx("lineHeight", 1);
}
focusEl.setLeft(0);
focusEl.setTop(0);
focusEl.makePositionable(true);
focusEl.addEventsSunk(Event.FOCUSEVENTS);
}
内容来源于网络,如有侵权,请联系作者删除!