本文整理了Java中com.google.gwt.user.client.Element.insertFirst()
方法的一些代码示例,展示了Element.insertFirst()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.insertFirst()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Element
类名称:Element
方法名:insertFirst
暂无
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
@Override
public NotificationRemover addNotification(final com.google.gwt.dom.client.Element element) {
getElement().insertFirst(element);
return new NotificationRemover() {
@Override
public void remove() {
element.removeFromParent();
}
};
}
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-standalone
private void insertFirstChild(Element elem) {
if (anchor == null) getElement().insertFirst(elem);
else if (controlGroup != null) controlGroup.getElement().insertFirst(elem);
else anchor.insertFirst(elem);
}
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-library
private void insertFirstChild(Element elem) {
if (anchor == null) getElement().insertFirst(elem);
else if (controlGroup != null) controlGroup.getElement().insertFirst(elem);
else anchor.insertFirst(elem);
}
代码示例来源:origin: jqm4gwt/jqm4gwt
private void insertFirstChild(Element elem) {
if (anchor == null) getElement().insertFirst(elem);
else if (controlGroup != null) controlGroup.getElement().insertFirst(elem);
else anchor.insertFirst(elem);
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
public void setIcon(String icon) {
textWrapper.getElement().getStyle().setDisplay(Display.INLINE_BLOCK);
iconElement.setClassName(icon);
iconElement.getStyle().setMarginRight(5, Style.Unit.PX);
getElement().insertFirst(iconElement);
}
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
protected void updateIcon(VLabel widget) {
Icon icon = getIcon();
if (icon != null) {
widget.getElement().insertFirst(icon.getElement());
}
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
@Override
public void onChange(ChangeEvent event) {
if (iconElement != null) {
iconElement.removeFromParent();
}
if (error && iconType != null) {
iconElement = createIconElement();
getElement().insertFirst(iconElement);
}
}
}, ChangeEvent.getType());
代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3
@Override
public void onChange(ChangeEvent event) {
if (iconElement != null) {
iconElement.removeFromParent();
}
if (error && iconType != null) {
iconElement = createIconElement();
getElement().insertFirst(iconElement);
}
}
}, ChangeEvent.getType());
代码示例来源:origin: dennisjzh/GwtMobile-UI
public CheckBox() {
super();
if (Utils.isAndroid() && Utils.isWVGA()) {
CheckBoxIndicator indicator = new CheckBoxIndicator();
this.getElement().insertFirst(indicator.getElement());
}
}
代码示例来源:origin: com.vaadin.addon/vaadin-touchkit-agpl
public void setDescription(String description) {
if (description != null && !description.trim().isEmpty()) {
if (descriptionElement == null) {
descriptionElement = Document.get().createSpanElement();
descriptionElement.setClassName(NAVBUTTON_CLASSNAME + "-desc");
}
/*
* Add the descriptionElement if it's not already added as it might
* have been overwritten by a call to #setText
*/
if (!getElement().isOrHasChild(descriptionElement)) {
getElement().insertFirst(descriptionElement);
}
descriptionElement.setInnerHTML(description);
} else if (descriptionElement != null) {
descriptionElement.removeFromParent();
descriptionElement = null;
}
}
代码示例来源:origin: dennisjzh/GwtMobile-UI
private void initScrollbar(){
_scrollbar=DOM.createDiv();
_scrollbar.appendChild(DOM.createDiv());
_scrollbar.setClassName(Primary.ScrollBar);
this.getElement().insertFirst(_scrollbar);
this.hideScrollBar();
}
代码示例来源:origin: dennisjzh/GwtMobile-UI
public RadioButton() {
super(null);
if (Utils.isAndroid() && Utils.isWVGA()) {
setStyleName(Primary.RadioButton);
DivElement div = Document.get().createDivElement();
this.getElement().insertFirst(div);
}
}
代码示例来源:origin: Putnami/putnami-web-toolkit
private void resetInner() {
this.anchor.clear();
this.anchor.getElement().removeAllChildren();
if (this.label != null) {
this.anchor.getElement().setInnerHTML(this.label);
}
if (this.iconType != null) {
Icon icon = new Icon();
icon.setType(this.iconType);
this.anchor.getElement().insertFirst(icon.getElement());
}
}
代码示例来源:origin: fr.putnami.pwt/pwt
private void resetInner() {
this.anchor.clear();
this.anchor.getElement().removeAllChildren();
if (this.label != null) {
this.anchor.getElement().setInnerHTML(this.label);
}
if (this.iconType != null) {
Icon icon = new Icon();
icon.setType(this.iconType);
this.anchor.getElement().insertFirst(icon.getElement());
}
}
代码示例来源:origin: com.vaadin.addon/vaadin-touchkit-agpl
public void setIcon(Icon icon) {
if (icon == null) {
if (this.icon != null) {
getElement().removeChild(this.icon.getElement());
}
} else if (this.icon != null) {
getElement()
.replaceChild(this.icon.getElement(), icon.getElement());
} else {
getElement().insertFirst(icon.getElement());
}
this.icon = icon;
}
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-standalone
tr.appendChild(th);
tFoot.getElement().insertFirst(tr);
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-library
tr.appendChild(th);
tFoot.getElement().insertFirst(tr);
代码示例来源:origin: jqm4gwt/jqm4gwt
tr.appendChild(th);
tFoot.getElement().insertFirst(tr);
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
factoryNameLabel.setText(locale.createFactoryName());
factoryLinkLabel.setText(locale.createFactoryLink());
configure.getElement().insertFirst(factoryResources.configure().getSvg().getElement());
launch.getElement().insertFirst(factoryResources.execute().getSvg().getElement());
launch.addStyleName(style.launchIcon());
configure.addStyleName(style.configureIcon());
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
scroller.addScrollHandler(scrollHandler);
scroller.getElement().insertFirst(upperSpacer);
scroller.getElement().insertAfter(lowerSpacer, imageContainer);
内容来源于网络,如有侵权,请联系作者删除!