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

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

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

origin: com.google.gwt/gwt-servlet

/**
 * This method is overridden so that any object can be viewed in the debugger
 * as an HTML snippet.
 * 
 * @return a string representation of the object
 */
@Override
public String toString() {
 if (element == null) {
  return "(null handle)";
 }
 return getElement().getString();
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * This method is overridden so that any object can be viewed in the debugger
 * as an HTML snippet.
 * 
 * @return a string representation of the object
 */
@Override
public String toString() {
 if (element == null) {
  return "(null handle)";
 }
 return getElement().getString();
}
origin: net.wetheinter/gwt-user

/**
 * This method is overridden so that any object can be viewed in the debugger
 * as an HTML snippet.
 * 
 * @return a string representation of the object
 */
@Override
public String toString() {
 if (element == null) {
  return "(null handle)";
 }
 return getElement().getString();
}
origin: oVirt/ovirt-engine

public RadioGroup(Renderer<K> renderer) {
  this.renderer = renderer;
  initWidget(wrapperPanel);
  groupString = getElement().getString();
}
origin: org.uberfire/uberfire-runtime-plugins-client

@Override
protected void render(Context context,
           SafeHtml data,
           SafeHtmlBuilder sb) {
  Icon icon = GWT.create(Icon.class);
  if (tooltip != null) {
    icon.setTitle(tooltip);
  }
  icon.setSize(iconSize);
  icon.setType(iconType);
  sb.appendHtmlConstant(icon.getElement().getString());
}
origin: kiegroup/appformer

@Override
protected void render(Context context,
           SafeHtml data,
           SafeHtmlBuilder sb) {
  Icon icon = GWT.create(Icon.class);
  if (tooltip != null) {
    icon.setTitle(tooltip);
  }
  icon.setSize(iconSize);
  icon.setType(iconType);
  sb.appendHtmlConstant(icon.getElement().getString());
}
origin: org.gwtbootstrap3/gwtbootstrap3-extras

private String createIconHtml(IconType iconType) {
  // Fix incorrect handle width when using icons
  setHandleWidth("30");
  final Icon icon = new Icon(iconType);
  icon.setSize(IconSize.LARGE);
  return icon.getElement().getString();
}
origin: gwtbootstrap3/gwtbootstrap3-extras

private String createIconHtml(IconType iconType) {
  // Fix incorrect handle width when using icons
  setHandleWidth("30");
  final Icon icon = new Icon(iconType);
  icon.setSize(IconSize.LARGE);
  return icon.getElement().getString();
}
origin: org.uberfire/uberfire-widgets-commons

/**
 * Get a SafeHtml representation of the header that includes an image and some text.
 * @param image the {@link ImageResource} to add next to the header
 * @param text the header text
 * @return the header as SafeHtml
 */
public static SafeHtml getHeaderSafeHtml(final ImageResource image,
                     final String text) {
  HeaderHTML headerHTML = new HeaderHTML();
  headerHTML.setText(text);
  headerHTML.setImageResource(image);
  return toSafeHtml(headerHTML.getElement().getString());
}
origin: org.uberfire/uberfire-widgets-commons

/**
 * Get a HTML representation of the header that includes an image and some text.
 * @param image the {@link ImageResource} to add next to the header
 * @param text the header text
 * @return the header as HTML
 */
public static HTML getHeaderHTML(final ImageResource image,
                 final String text) {
  HeaderHTML headerHTML = new HeaderHTML();
  headerHTML.setText(text);
  headerHTML.setImageResource(image);
  return new HTML(headerHTML.getElement().getString());
}
origin: kiegroup/appformer

/**
 * Get a HTML representation of the header that includes an image and some text.
 * @param image the {@link ImageResource} to add next to the header
 * @param text the header text
 * @return the header as HTML
 */
public static HTML getHeaderHTML(final ImageResource image,
                 final String text) {
  HeaderHTML headerHTML = new HeaderHTML();
  headerHTML.setText(text);
  headerHTML.setImageResource(image);
  return new HTML(headerHTML.getElement().getString());
}
origin: kiegroup/appformer

/**
 * Get a SafeHtml representation of the header that includes an image and some text.
 * @param image the {@link ImageResource} to add next to the header
 * @param text the header text
 * @return the header as SafeHtml
 */
public static SafeHtml getHeaderSafeHtml(final ImageResource image,
                     final String text) {
  HeaderHTML headerHTML = new HeaderHTML();
  headerHTML.setText(text);
  headerHTML.setImageResource(image);
  return toSafeHtml(headerHTML.getElement().getString());
}
origin: org.uberfire/widgets-commons

/**
 * Get a string representation of the header that includes an image and some
 * text.
 * @param image the {@link ImageResource} to add next to the header
 * @param text the header text
 * @return the header as a string
 */
public static HTML getHeaderHTML(ImageResource image,
    String text) {
  HeaderHTML headerHTML = new HeaderHTML();
  headerHTML.setText(text);
  headerHTML.setImageResource(image);
  return new HTML(headerHTML.getElement().getString());
}
origin: org.jbpm/jbpm-console-ng-generic-client

public void render( final Cell.Context context, final T value, final SafeHtmlBuilder sb ) {
  final SafeHtmlBuilder mysb = new SafeHtmlBuilder();
  final Button btn = GWT.create( Button.class );
  btn.setText( getText( value ) );
  btn.setTitle( getText( value ) );
  btn.setType( ButtonType.DEFAULT );
  btn.setSize( ButtonSize.SMALL );
  btn.getElement().getStyle().setMarginRight( 5, Style.Unit.PX );
  mysb.appendHtmlConstant( btn.getElement().getString() );
  sb.append( mysb.toSafeHtml() );
}
origin: kiegroup/jbpm-wb

public void render(final Cell.Context context,
          final T value,
          final SafeHtmlBuilder sb) {
  final SafeHtmlBuilder mysb = new SafeHtmlBuilder();
  final Button btn = GWT.create(Button.class);
  btn.setText(getText(value));
  btn.setTitle(getText(value));
  btn.setType(ButtonType.DEFAULT);
  btn.setSize(size);
  btn.getElement().getStyle().setMarginRight(5,
                        Style.Unit.PX);
  mysb.appendHtmlConstant(btn.getElement().getString());
  sb.append(mysb.toSafeHtml());
}
origin: org.uberfire/uberfire-widgets-commons

  private Widget buildDescription(final String caption) {
    return new AbstractTextWidget(Document.get().createSpanElement()) {{
      addStyleName("text-uppercase");
      setTitle(CommonConstants.INSTANCE.ClickToDisplay0(caption));
      setHTML(new Strong(caption).getElement().getString());
    }};
  }
}
origin: kiegroup/appformer

  private Widget buildDescription(final String caption) {
    return new AbstractTextWidget(Document.get().createSpanElement()) {{
      addStyleName("text-uppercase");
      setTitle(CommonConstants.INSTANCE.ClickToDisplay0(caption));
      setHTML(new Strong(caption).getElement().getString());
    }};
  }
}
origin: com.vaadin.addon/vaadin-touchkit-agpl

public final boolean setCaption(String caption, Icon icon,
    String captionStyleName) {
  DivElement captionElement = getFirstChildElement().cast();
  boolean hasIcon = icon != null;
  boolean needsCaption = hasIcon
      || (caption != null && !caption.isEmpty());
  if (needsCaption) {
    String captionHtml = hasIcon ? icon.getElement().getString()
        : "";
    captionHtml += caption == null ? "" : caption;
    captionElement.setInnerHTML(captionHtml);
    captionElement.getStyle().setProperty("display", null);
    // copy v-caption prefixed styles from widget to caption
    captionElement.setClassName(captionStyleName);
    setClassName(ROW_CLASSNAME + " " + ROW_WITH_CAPTION_STYLENAME);
  } else {
    setClassName(ROW_CLASSNAME + " "
        + ROW_WITHOUT_CAPTION_STYLENAME);
  }
  return needsCaption;
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

/**
 * Helper function to build html snippet for column or row headers.
 *
 * @param uidl
 *            possibly with values caption and icon
 * @return html snippet containing possibly an icon + caption text
 */
protected String buildCaptionHtmlSnippet(UIDL uidl) {
  String s = uidl.hasAttribute("caption")
      ? uidl.getStringAttribute("caption")
      : "";
  if (uidl.hasAttribute("icon")) {
    Icon icon = client.getIcon(uidl.getStringAttribute("icon"));
    icon.setAlternateText("icon");
    s = icon.getElement().getString() + s;
  }
  return s;
}
origin: org.kuali.student.core/ks-common-ui

/**
 * Shows the uiObject content in a printable form in a new window
 * @param uiObject
 */
public static void print(UIObject uiObject){
  String headTag = "";
  String styleTags = "";
  NodeList<com.google.gwt.dom.client.Element> head = Document.get().getElementsByTagName("head");
  if(head.getItem(0) != null){
    com.google.gwt.dom.client.Element e = head.getItem(0);
    NodeList<com.google.gwt.dom.client.Element> styles = e.getElementsByTagName("style");
    for(int i = 0; i < styles.getLength(); i++){
      styleTags = styleTags + styles.getItem(i).getString();
      
    }
  }
  headTag = "<HEAD><TITLE>Print - " + Window.getTitle() + "</TITLE>" + styleTags + "</HEAD>";
  openPrintWindow(uiObject.getElement().getString(), headTag, num);
  num++;
}

com.google.gwt.user.clientElementgetString

Popular methods of Element

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

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JPanel (javax.swing)
  • 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