Tabnine Logo
HasHTML.getText
Code IndexAdd Tabnine to your IDE (free)

How to use
getText
method
in
com.google.gwt.user.client.ui.HasHTML

Best Java code snippets using com.google.gwt.user.client.ui.HasHTML.getText (Showing top 6 results out of 315)

origin: org.apache.james.hupa/hupa-widgets

public String getText() {
  return ((HasHTML)link).getText();
}
 
origin: com.googlecode.mgwt/mgwt

@Override
public String getTitleText() {
 return dialogPanel.getDialogTitle().getText();
}
origin: dankurka/mgwt

@Override
public String getTitleText() {
 return dialogPanel.getDialogTitle().getText();
}
origin: org.jboss.errai/errai-data-binding

private Optional<Supplier<Object>> maybeCreateElementValueGetter(final Element element) {
 final Optional<Supplier<Object>> uiGetter;
 final Supplier<ElementWrapperWidget> toWidget = () -> ElementWrapperWidget.getWidget(element);
 final ElementWrapperWidget wrapper = toWidget.get();
 if (wrapper instanceof HasValue) {
  uiGetter = Optional.ofNullable(() -> ((HasValue) toWidget.get()).getValue());
 }
 else if (wrapper instanceof HasHTML) {
  uiGetter = Optional.ofNullable(() -> ((HasHTML) toWidget.get()).getText());
 }
 else {
  uiGetter = Optional.empty();
 }
 return uiGetter;
}
origin: errai/errai

private Optional<Supplier<Object>> maybeCreateElementValueGetter(final Element element) {
 final Optional<Supplier<Object>> uiGetter;
 final Supplier<ElementWrapperWidget> toWidget = () -> ElementWrapperWidget.getWidget(element);
 final ElementWrapperWidget wrapper = toWidget.get();
 if (wrapper instanceof HasValue) {
  uiGetter = Optional.ofNullable(() -> ((HasValue) toWidget.get()).getValue());
 }
 else if (wrapper instanceof HasHTML) {
  uiGetter = Optional.ofNullable(() -> ((HasHTML) toWidget.get()).getText());
 }
 else {
  uiGetter = Optional.empty();
 }
 return uiGetter;
}
origin: gwt-test-utils/gwt-test-utils

protected String getString(Object o) {
  String actualValue;
  if (o == null) {
    return null;
  } else if (HasHTML.class.isInstance(o)) {
    HasHTML hasHTML = (HasHTML) o;
    String html = hasHTML.getHTML();
    actualValue = html != null && html.length() > 0 ? html : hasHTML.getText();
  } else if (HasText.class.isInstance(o)) {
    actualValue = ((HasText) o).getText();
  } else {
    actualValue = "" + o;
  }
  return actualValue;
}
com.google.gwt.user.client.uiHasHTMLgetText

Popular methods of HasHTML

  • getHTML
    Gets this object's contents as HTML.
  • setHTML
    Sets this object's contents via HTML. Use care when setting an object's HTML; it is an easy way to e
  • setText

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best plugins for Eclipse
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