本文整理了Java中com.google.gwt.user.client.Element.getFirstChild()
方法的一些代码示例,展示了Element.getFirstChild()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getFirstChild()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Element
类名称:Element
方法名:getFirstChild
暂无
代码示例来源:origin: sk.seges.acris/acris-widgets-beantable
/**
* Enabled or disabled the native input element in the given cell. This method
* should correspond with the HTML returned from {@link #getInputHtml}.
*
* @param selectionPolicy the associated {@link SelectionPolicy}
* @param td the cell containing the element
* @param enabled true to enable, false to disable
*/
protected void setInputEnabled(SelectionPolicy selectionPolicy, Element td,
boolean enabled) {
((InputElement) td.getFirstChild()).setDisabled(!enabled);
}
代码示例来源:origin: com.extjs/gxt
public static Element createRootElement(String html) {
Element rootElement = DOM.createDiv();
rootElement.setInnerHTML(html);
if (rootElement.getFirstChild() != null) {
rootElement = rootElement.getFirstChildElement().cast();
}
return rootElement;
}
代码示例来源:origin: com.extjs/gxt
public Element getElementContainer(TreeNode node) {
if (node.elContainer == null) {
node.elContainer = node.getElement() != null ? (Element) node.getElement().getFirstChild() : null;
}
return node.elContainer;
}
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-library
@Override
public void clear() {
Node child = getElement().getFirstChild();
while (child != null) {
getElement().removeChild(child);
child = getElement().getFirstChild();
}
}
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-standalone
@Override
public void clear() {
Node child = getElement().getFirstChild();
while (child != null) {
getElement().removeChild(child);
child = getElement().getFirstChild();
}
}
代码示例来源:origin: jqm4gwt/jqm4gwt
@Override
public void clear() {
Node child = getElement().getFirstChild();
while (child != null) {
getElement().removeChild(child);
child = getElement().getFirstChild();
}
}
代码示例来源:origin: com.extjs/gxt
private boolean isRowRendered(int i, List<M> visible) {
Element e = findNode(visible.get(i)).getElement();
return e != null && e.getFirstChild().hasChildNodes();
}
代码示例来源:origin: jqm4gwt/jqm4gwt
@Override
public void clear() {
try {
_doLogicalClear();
} finally {
// Remove all existing child nodes.
Node child = getElement().getFirstChild();
while (child != null) {
getElement().removeChild(child);
child = getElement().getFirstChild();
}
}
}
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-library
@Override
public void clear() {
try {
_doLogicalClear();
} finally {
// Remove all existing child nodes.
Node child = getElement().getFirstChild();
while (child != null) {
getElement().removeChild(child);
child = getElement().getFirstChild();
}
}
}
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-standalone
@Override
public void clear() {
try {
_doLogicalClear();
} finally {
// Remove all existing child nodes.
Node child = getElement().getFirstChild();
while (child != null) {
getElement().removeChild(child);
child = getElement().getFirstChild();
}
}
}
代码示例来源:origin: org.uberfire/uberfire-widgets-commons
public Canvas() {
html = new HTML("<canvas></canvas>");
initWidget(html);
canvas = (Element) html.getElement().getFirstChild();
}
代码示例来源:origin: kiegroup/appformer
public Canvas() {
html = new HTML("<canvas></canvas>");
initWidget(html);
canvas = (Element) html.getElement().getFirstChild();
}
代码示例来源:origin: SwellRT/swellrt
@Override
protected Element getContainerNodelet(Widget w) {
return w.getElement().getFirstChild().<Element>cast();
}
};
代码示例来源:origin: apache/incubator-wave
@Override
protected Element getContainerNodelet(Widget w) {
return w.getElement().getFirstChild().<Element>cast();
}
};
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-library
public void setPanel(JQMPanel panel) {
removePanel();
this.panel = panel;
addLogical(panel);
getElement().insertBefore(panel.getElement(), getElement().getFirstChild());
}
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-standalone
public void setPanel(JQMPanel panel) {
removePanel();
this.panel = panel;
addLogical(panel);
getElement().insertBefore(panel.getElement(), getElement().getFirstChild());
}
代码示例来源:origin: jqm4gwt/jqm4gwt
public void setPanel(JQMPanel panel) {
removePanel();
this.panel = panel;
addLogical(panel);
getElement().insertBefore(panel.getElement(), getElement().getFirstChild());
}
代码示例来源:origin: com.googlecode.gwtupload/gwtupload
public ModalUploadStatus() {
super();
super.asWidget().addStyleName("upld-status");
box.add(super.asWidget());
box.setGlassEnabled(true);
box.setStyleName("upld-modal");
box.setGlassStyleName("upld-modal-glass");
((Element) box.getElement().getFirstChild()).setClassName("GWTUpld");
}
代码示例来源:origin: SwellRT/swellrt
@SuppressWarnings("static")
public void testRegistersContainerNodelet() {
complexHandler(Flow.INLINE);
AgentAdapter e1 = elem("ab");
Widget a = handler.getGwtWidget(e1);
com.google.gwt.user.client.Element b = a.getElement();
Node c = b.getFirstChild();
Element d = e1.getContainerNodelet();
assertSame(c,
d);
}
代码示例来源:origin: apache/incubator-wave
@SuppressWarnings("static")
public void testRegistersContainerNodelet() {
complexHandler(Flow.INLINE);
AgentAdapter e1 = elem("ab");
Widget a = handler.getGwtWidget(e1);
com.google.gwt.user.client.Element b = a.getElement();
Node c = b.getFirstChild();
Element d = e1.getContainerNodelet();
assertSame(c,
d);
}
内容来源于网络,如有侵权,请联系作者删除!