@Override public NotificationRemover addNotification(final com.google.gwt.dom.client.Element element) { getElement().insertFirst(element); return new NotificationRemover() { @Override public void remove() { element.removeFromParent(); } }; }
private void insertFirstChild(Element elem) { if (anchor == null) getElement().insertFirst(elem); else if (controlGroup != null) controlGroup.getElement().insertFirst(elem); else anchor.insertFirst(elem); }
private void insertFirstChild(Element elem) { if (anchor == null) getElement().insertFirst(elem); else if (controlGroup != null) controlGroup.getElement().insertFirst(elem); else anchor.insertFirst(elem); }
private void insertFirstChild(Element elem) { if (anchor == null) getElement().insertFirst(elem); else if (controlGroup != null) controlGroup.getElement().insertFirst(elem); else anchor.insertFirst(elem); }
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); } }
protected void updateIcon(VLabel widget) { Icon icon = getIcon(); if (icon != null) { widget.getElement().insertFirst(icon.getElement()); } }
@Override public void onChange(ChangeEvent event) { if (iconElement != null) { iconElement.removeFromParent(); } if (error && iconType != null) { iconElement = createIconElement(); getElement().insertFirst(iconElement); } } }, ChangeEvent.getType());
@Override public void onChange(ChangeEvent event) { if (iconElement != null) { iconElement.removeFromParent(); } if (error && iconType != null) { iconElement = createIconElement(); getElement().insertFirst(iconElement); } } }, ChangeEvent.getType());
public CheckBox() { super(); if (Utils.isAndroid() && Utils.isWVGA()) { CheckBoxIndicator indicator = new CheckBoxIndicator(); this.getElement().insertFirst(indicator.getElement()); } }
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; } }
private void initScrollbar(){ _scrollbar=DOM.createDiv(); _scrollbar.appendChild(DOM.createDiv()); _scrollbar.setClassName(Primary.ScrollBar); this.getElement().insertFirst(_scrollbar); this.hideScrollBar(); }
public RadioButton() { super(null); if (Utils.isAndroid() && Utils.isWVGA()) { setStyleName(Primary.RadioButton); DivElement div = Document.get().createDivElement(); this.getElement().insertFirst(div); } }
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()); } }
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()); } }
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; }
tr.appendChild(th); tFoot.getElement().insertFirst(tr);
tr.appendChild(th); tFoot.getElement().insertFirst(tr);
tr.appendChild(th); tFoot.getElement().insertFirst(tr);
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());
scroller.addScrollHandler(scrollHandler); scroller.getElement().insertFirst(upperSpacer); scroller.getElement().insertAfter(lowerSpacer, imageContainer);