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

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

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

origin: kaaproject/kaa

navPanel.setStyleName(kaaAdminStyle.bNavPanel());
footerPanel.getElement().setInnerHTML(Utils.messages.footerMessage(Version.PROJECT_VERSION));
origin: com.google.gwt/gwt-servlet

@Override
public void setHTML(@IsSafeHtml String html) {
 getElement().setInnerHTML(html);
}
origin: com.google.gwt/gwt-servlet

public void setHTML(@IsSafeHtml String html) {
 getElement().setInnerHTML(html);
}
origin: com.google.gwt/gwt-servlet

/**
 * @deprecated Call and override {@link internalClearCell(Element, boolean)} instead.
 */
@Deprecated
protected boolean internalClearCell(com.google.gwt.user.client.Element td,
  boolean clearInnerHTML) {
 Element maybeChild = DOM.getFirstChild(td);
 Widget widget = null;
 if (maybeChild != null) {
  widget = widgetMap.get(maybeChild);
 }
 if (widget != null) {
  // If there is a widget, remove it.
  remove(widget);
  return true;
 } else {
  // Otherwise, simply clear whatever text and/or HTML may be there.
  if (clearInnerHTML) {
   td.setInnerHTML("");
  }
  return false;
 }
}
origin: com.google.gwt/gwt-servlet

/**
 * Creates an HTML panel with the specified HTML contents inside a DIV
 * element. Any element within this HTML that has a specified id can contain a
 * child widget.
 *
 * @param html the panel's HTML
 */
public HTMLPanel(@IsSafeHtml String html) {
 /*
  * Normally would call this("div", html), but that method
  * has some slightly expensive IE defensiveness that we just
  * don't need for a div
  */
 setElement(Document.get().createDivElement());
 getElement().setInnerHTML(html);
}
origin: com.extjs/gxt

/**
 * Sets the element's inner HTML.
 * 
 * @param html the html
 */
public void setInnerHtml(String html) {
 for (Element elem : items) {
  elem.setInnerHTML(html);
 }
}
origin: gwtbootstrap/gwt-bootstrap

  /**
   * {@inheritDoc}
   */
  public void setHTML(String html) {
    getElement().setInnerHTML(html);
  }
}
origin: gwtbootstrap3/gwtbootstrap3

/**
 * {@inheritDoc}
 */
@Override
public void setHTML(final String html) {
  getElement().setInnerHTML(html);
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

  public void addMessage(String newMessage) {
    final String message = messageEl.getInnerHTML();
    final StringBuilder sb = new StringBuilder(message);
    if (!message.isEmpty()) {
      sb.append("<br/>");
    }
    sb.append(newMessage);
    messageEl.setInnerHTML(sb.toString());
  }
}
origin: org.eclipse.che.plugin/che-plugin-git-ext-git

/** {@inheritDoc} */
@Override
public void setMessage(String htmlMessage) {
 this.message.getElement().setInnerHTML(htmlMessage);
}
origin: org.eclipse.che.plugin/che-plugin-git-ext-git

/** {@inheritDoc} */
@Override
public void setMessage(@NotNull String message) {
 this.message.getElement().setInnerHTML(message);
}
origin: com.extjs/gxt

/**
 * Sets the components HTML.
 * 
 * @param html the html
 */
public void setHtml(String html) {
 this.html = html;
 if (rendered) {
  getElement().setInnerHTML(html);
 }
}
origin: com.extjs/gxt

 private final void removeChildren(Element parent) {
  Element child = null;
  while ((child = parent.getFirstChildElement().cast()) != null) {
   parent.removeChild(child);
  }
  String tag = parent.getTagName().toLowerCase();
  if (!tag.equals("table") && !tag.equals("tbody") && !tag.equals("tr") && !tag.equals("td")) {
   parent.setInnerHTML("");
  }
 }
}
origin: gwtbootstrap/gwt-bootstrap

  /**
   * Creates a FluidRow with given html.
   * 
   * @param html
   *            the row's content
   */
  public FluidRow(String html) {
    setStyleName(Constants.ROW_FLUID);
    getElement().setInnerHTML(html);
  }
}
origin: gwtbootstrap/gwt-bootstrap

/**
 * {@inheritDoc}
 */
public void setText(String text) {
  this.text = text;
  // Add a space after the main heading text to get the same effect as Bootstrap.
  // <h1>Some text <small>Some subtext</small></h1>
  //              ^- Note the space
  getElement().setInnerHTML(text + " " + small.toString());
}
origin: fr.lteconsulting/hexa.core

void updateInnerHTML()
{
  String html = callback.getGhostInnerHTML( cookie, source );
  if( html == null )
    getElement().setInnerHTML( source.getString() );
  else
    getElement().setInnerHTML( html );
}
origin: gwtbootstrap3/gwtbootstrap3

public void setHTML(final String html) {
  try {
    uiObject.getElement().setInnerHTML(html);
  } catch (Exception e) {
    // try using jQuery.html() for handling IE, etc.
    setInnerHTML(uiObject.getElement(), html);
  }
}
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: org.eclipse.che.core/che-core-ide-app

@Override
public void hideActions() {
 actions = new HashMap<>();
 actionsContainer.getElement().setInnerHTML("");
 layoutPanel.setWidgetHidden(actionsPanel, true);
 layoutPanel.setHeight("60px");
 if (isVisible()) {
  Scheduler.get().scheduleDeferred(() -> center());
 }
}
origin: org.kuali.student.core/ks-common-ui

public InfoMessage(String text, boolean visible){
  layout.add(icon);
  message.getElement().setInnerHTML(text);
  layout.add(message);
  icon.addStyleName("ks-message-static-image");
  layout.addStyleName("ks-message-static");
  this.initWidget(layout);
  this.setVisible(visible);
}
com.google.gwt.user.clientElementsetInnerHTML

Popular methods of Element

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Top Vim 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