Tabnine Logo
Element.setInnerText
Code IndexAdd Tabnine to your IDE (free)

How to use
setInnerText
method
in
com.google.gwt.user.client.Element

Best Java code snippets using com.google.gwt.user.client.Element.setInnerText (Showing top 20 results out of 369)

origin: kaaproject/kaa

/**
 * Instantiates a new ImageTextButton.
 */
public ImageTextButton(ImageResource imageResource, String text, ClickHandler clickHandler) {
 super();
 if (clickHandler != null) {
  addClickHandler(clickHandler);
 }
 String definedStyles = getElement().getAttribute("style");
 getElement().setAttribute("style", definedStyles + "; vertical-align:middle;");
 this.text = text;
 Element span = DOM.createElement("span");
 span.setInnerText(text);
 DOM.insertChild(getElement(), span, 0);
 Element imageSpan = DOM.createElement("span");
 int spacing;
 if (this.text == null || this.text.trim().equals("")) {
  spacing = 0;
 } else {
  spacing = 16;
 }
 if (imageResource != null) {
  updateImageElementFromImageResource(imageSpan, imageResource, spacing);
 }
 DOM.insertBefore(getElement(), imageSpan, DOM.getFirstChild(getElement()));
}
origin: com.google.gwt/gwt-servlet

@Override
public void setText(String text) {
 getElement().setInnerText(text);
}
origin: com.google.gwt/gwt-servlet

 private void setText(String value) {
  getElement().setInnerText(value);
 }
}
origin: com.google.gwt/gwt-servlet

 public void setText(String text) {
  getElement().setInnerText(text);
 }
}
origin: gwtbootstrap/gwt-bootstrap

/**
 * {@inheritDoc}
 */
public void setText(String text) {
  getElement().setInnerText(text);
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

public void updateCaption() {
  if (appTile != null) {
    label.setInnerText(appTile.getCaption());
  }
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

public void updateNotification(final String text) {
  if (text != null && !text.isEmpty()) {
    notificationBox.getStyle().setDisplay(Display.INLINE_BLOCK);
    notificationBox.setInnerText(text);
  }
}
origin: gwtbootstrap/gwt-bootstrap

  /**
   * Set bar text
   * @param text bar text
   */
  public void setText(String text) {
    getElement().setInnerText(text);
  }
}
origin: gwtbootstrap/gwt-bootstrap

/**
 * {@inheritDoc}
 */
public void setText(String text) {
  getElement().setInnerText(text);
}
origin: org.jresearch.commons.gxt.calendar/org.jresearch.commons.gxt.calendar.widget

public void setInfoText(final DatePanel<T> view) {
  if (dayInfo != null) {
    dayInfo.getElement().setInnerText(renderer.getTitleDisplayText(view));
  }
}
origin: dashbuilder/dashbuilder

@Override
public MapEditor.View clearError() {
  final Element element = errorLabel.getElement();
  element.setInnerText("");
  element.getStyle().setDisplay(Style.Display.NONE);
  element.getStyle().setBorderWidth(0, Style.Unit.PX);
  errorLabel.setVisible(false);
  return this;
}
origin: gwtbootstrap/gwt-bootstrap

/**
 * {@inheritDoc}
 */
public void setText(String text) {
  this.text = text;
  if (icon.isAttached()) {
    icon.removeFromParent();
  }
  getElement().setInnerText(text);
}
origin: org.dashbuilder/dashbuilder-common-client

@Override
public MapEditor.View showError(final SafeHtml message) {
  final Element element = errorLabel.getElement();
  element.setInnerText(message.asString());
  element.getStyle().setDisplay(Style.Display.INLINE);
  element.getStyle().setBorderColor("red");
  element.getStyle().setBorderStyle(Style.BorderStyle.SOLID);
  element.getStyle().setBorderWidth(1, Style.Unit.PX);
  errorLabel.setVisible(true);
  return this;
}
origin: GwtMaterialDesign/gwt-material

@Override
public void setValue(String value, boolean fireEvents) {
  value = SafeHtmlUtils.fromString(value).asString();
  getElement().setInnerText(value);
  super.setValue(value, fireEvents);
}
origin: org.overlord/overlord-commons-gwt

/**
 * Creates the thead and th elements, with the given labels.
 * @param labels
 */
public void setColumnLabels(String ... labels) {
  this.columnCount = labels.length;
  for (String label : labels) {
    Element thElement = Document.get().createTHElement().cast();
    thElement.setInnerText(label);
    DOM.appendChild(thead, thElement);
  }
}
origin: org.eclipse.hudson.main/hudson-gwt-common

@Override
public void setText(final String text) {
  this.text = text;
  Element span = DOM.createElement("span");
  span.setInnerText(text);
  span.setAttribute("style", "padding-left:3px; vertical-align:middle;");
  DOM.insertChild(getElement(), span, 0);
}
origin: org.kuali.student.core/ks-common-ui

public AbbrPanel(String title, String className, String text){
  Element abbr = DOM.createElement("abbr");
  abbr.setTitle(title);
  abbr.setClassName(className);
  abbr.setInnerText(text);
  this.setElement(abbr);
}
origin: oVirt/ovirt-engine

public ToastNotification(String text, NotificationStatus status) {
  super();
  initWidget(ViewUiBinder.uiBinder.createAndBindUi(this));
  configureCloseButton();
  label.getElement().setInnerText(text);
  setStatus(status);
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

@Override
protected void construct() {
  super.construct();
  Element detailMessageElement = DOM.createDiv();
  detailMessageElement.addClassName("v-shell-message-detail");
  detailMessageElement.setInnerText(getMessage());
  detailsEl.appendChild(detailMessageElement);
  getElement().appendChild(detailsEl);
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

protected void construct() {
  topicEl.setInnerText(topic);
  header.appendChild(messageTypeEl);
  header.appendChild(topicEl);
  addStyleName(STYLE_NAME);
  header.setClassName("header");
  getElement().appendChild(header);
  applyCloseIconStyles(closeEl);
  header.appendChild(closeEl);
  messageTypeEl.setInnerHTML(getMessageTypeCaption());
}
com.google.gwt.user.clientElementsetInnerText

Popular methods of Element

  • getStyle
  • setAttribute
  • appendChild
  • setId
  • getParentElement
  • cast
  • getId
  • setInnerHTML
  • addClassName
  • getAttribute
  • getInnerHTML
  • getFirstChildElement
  • getInnerHTML,
  • getFirstChildElement,
  • getInnerText,
  • getClientWidth,
  • removeChild,
  • getChildCount,
  • getOffsetHeight,
  • removeAttribute,
  • removeClassName

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now