本文整理了Java中com.google.gwt.dom.client.Element.hasChildNodes()
方法的一些代码示例,展示了Element.hasChildNodes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.hasChildNodes()
方法的具体详情如下:
包路径:com.google.gwt.dom.client.Element
类名称:Element
方法名:hasChildNodes
暂无
代码示例来源:origin: com.extjs/gxt
protected boolean isRowRendered(int index) {
Element row = getRow(index);
return row != null && row.hasChildNodes();
}
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
/**
* Need to do some additional clean up to really clear the list
*/
public void clear() {
super.clear();
// remove the option group elements
Element elm = getElement();
while (elm.hasChildNodes()) {
elm.removeChild(elm.getFirstChild());
}
groupMap.clear();
}
代码示例来源:origin: com.extjs/gxt
/**
* Returns the grid's <TD> HtmlElement at the specified coordinates.
*
* @param row the row index in which to find the cell
* @param col the column index of the cell
* @return the <TD> at the specified coordinates
*/
public Element getCell(int row, int col) {
// ROW DIV TABLE TR TD
Element rowEl = getRow(row);
return (Element) ((rowEl != null && rowEl.hasChildNodes())
? rowEl.getFirstChild().getFirstChild().getFirstChild().getChildNodes().getItem(col) : null);
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
public static void continueStartup() {
// init handlers before throwing events
SosDataManager.getDataManager();
new SOSController();
if (ClientUtils.isSesEnabled()) {
new SesController();
}
View.getView();
Element element = Document.get().getElementById("loadingWrapper");
while (element.hasChildNodes()) {
element.removeChild(element.getFirstChild());
}
Application.finishStartup();
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
private void ensureFocusElement() {
if (focusEl != null) {
focusEl.removeFromParent();
}
focusEl = getElement().appendChild(focusImpl.createFocusable());
focusEl.addClassName(treeStyles.treeStylesCss().noFocusOutline());
if (focusEl.hasChildNodes()) {
focusEl.getFirstChildElement().addClassName(treeStyles.treeStylesCss().noFocusOutline());
Style focusElStyle = focusEl.getFirstChildElement().getStyle();
focusElStyle.setBorderWidth(0, Style.Unit.PX);
focusElStyle.setFontSize(1, Style.Unit.PX);
focusElStyle.setPropertyPx("lineHeight", 1);
}
focusEl.getStyle().setLeft(0, Style.Unit.PX);
focusEl.getStyle().setTop(0, Style.Unit.PX);
focusEl.getStyle().setPosition(Style.Position.ABSOLUTE);
// subscribe for Event.FOCUSEVENTS
int bits =
DOM.getEventsSunk(
(Element) focusEl.cast()); // do not remove redundant cast, GWT tests will fail
DOM.sinkEvents((Element) focusEl.cast(), bits | Event.FOCUSEVENTS);
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
for (int i = 0; i < list.size(); i++) {
Element cellElement = table.getCellFormatter().getElement(i, 0);
if (cellElement.hasChildNodes()) {
hasIcons = true;
break;
内容来源于网络,如有侵权,请联系作者删除!