本文整理汇总了Java中org.jboss.errai.common.client.dom.NodeList类的典型用法代码示例。如果您正苦于以下问题:Java NodeList类的具体用法?Java NodeList怎么用?Java NodeList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NodeList类属于org.jboss.errai.common.client.dom包,在下文中一共展示了NodeList类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeAllChildren
import org.jboss.errai.common.client.dom.NodeList; //导入依赖的package包/类
private void removeAllChildren(org.jboss.errai.common.client.dom.Element element) {
NodeList nodeList = element.getChildNodes();
int lenght = nodeList.getLength();
for (int i=0; i<lenght; i++) {
element.removeChild(nodeList.item(0));
}
}
示例2: removeAllNodes
import org.jboss.errai.common.client.dom.NodeList; //导入依赖的package包/类
public void removeAllNodes(final Element element) {
final NodeList nodeList = element.getChildNodes();
int length = nodeList.getLength();
for (int i = 0; i < length; i++) {
element.removeChild(nodeList.item(0));
}
}
示例3: clear
import org.jboss.errai.common.client.dom.NodeList; //导入依赖的package包/类
@Override
public void clear() {
final NodeList documents = documentsContainer.getChildNodes();
for (int i = 0; i < documents.getLength(); i++) {
final Node document = documents.item(i);
documentsContainer.removeChild(document);
}
}
示例4: clear
import org.jboss.errai.common.client.dom.NodeList; //导入依赖的package包/类
@Override
public void clear() {
final NodeList children = registeredDocumentsViewContainer.getChildNodes();
for ( int i = 0; i < children.getLength(); i++ ) {
registeredDocumentsViewContainer.removeChild( children.item( i ) );
}
}