本文整理了Java中com.google.gwt.dom.client.Element.hasParentElement()
方法的一些代码示例,展示了Element.hasParentElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.hasParentElement()
方法的具体详情如下:
包路径:com.google.gwt.dom.client.Element
类名称:Element
方法名:hasParentElement
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* In DevMode, walks up the parents of the {@code rendered} element to ascertain that it is
* attached to the document. Always returns <code>true</code> in ProdMode.
*/
private static boolean isAttachedToDom(Element rendered) {
if (GWT.isProdMode()) {
return true;
}
Element body = Document.get().getBody();
while (rendered != null && rendered.hasParentElement() && !body.equals(rendered)) {
rendered = rendered.getParentElement();
}
return body.equals(rendered);
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
public void detachDragImageFromLayout(VDragEvent drag) {
if (placeHolderElement != null) {
if (placeHolderElement.hasParentElement()) {
placeHolderElement.removeFromParent();
}
placeHolderElement = null;
}
}
代码示例来源:origin: org.vaadin.addons/dragdroplayouts
public void detachDragImageFromLayout(VDragEvent drag) {
if (placeHolderElement != null) {
if (placeHolderElement.hasParentElement()) {
placeHolderElement.removeFromParent();
}
placeHolderElement = null;
}
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
private void cleanUp() {
if (keyUpHandlerRegistration != null) {
keyUpHandlerRegistration.removeHandler();
}
if (parentStateChangeHandlerRegistration != null) {
parentStateChangeHandlerRegistration.removeHandler();
}
if (indicatorElem.hasParentElement()) {
indicatorElem.removeFromParent();
}
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* In DevMode, walks up the parents of the {@code rendered} element to ascertain that it is
* attached to the document. Always returns <code>true</code> in ProdMode.
*/
private static boolean isAttachedToDom(Element rendered) {
if (GWT.isProdMode()) {
return true;
}
Element body = Document.get().getBody();
while (rendered != null && rendered.hasParentElement() && !body.equals(rendered)) {
rendered = rendered.getParentElement();
}
return body.equals(rendered);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* In DevMode, walks up the parents of the {@code rendered} element to ascertain that it is
* attached to the document. Always returns <code>true</code> in ProdMode.
*/
private static boolean isAttachedToDom(Element rendered) {
if (GWT.isProdMode()) {
return true;
}
Element body = Document.get().getBody();
while (rendered != null && rendered.hasParentElement() && !body.equals(rendered)) {
rendered = rendered.getParentElement();
}
return body.equals(rendered);
}
代码示例来源:origin: org.vaadin.addons/dragdroplayouts
if (placeHolderElement.hasParentElement()) {
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
if (placeHolderElement.hasParentElement()) {
内容来源于网络,如有侵权,请联系作者删除!