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

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

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

origin: stephenh/tessell

@Override
public String getValue() {
 return target.getHTML();
}
origin: org.apache.james.hupa/hupa-widgets

public String getHTML() {
  return ((HasHTML)link).getHTML();
}
 
origin: gwt-test-utils/gwt-test-utils

public void visitHasHTML(HasHTML hasHTML, WidgetRepository repository) {
  if (hasHTML.getHTML() != null && hasHTML.getHTML().length() > 0) {
    repository.addAlias(hasHTML.getHTML(), hasHTML);
  }
}
origin: dankurka/mgwt

@Override
public String getTitleText() {
 return dialogPanel1.getDialogTitle().getHTML();
}
origin: com.googlecode.mgwt/mgwt

@Override
public String getTitleText() {
 return dialogPanel1.getDialogTitle().getHTML();
}
origin: com.googlecode.gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} HTML contains the given sequence.
 *
 * @param sequence the sequence to search for.
 * @return this assertion object.
 * @throws AssertionError if the actual HTML value does not contain the given sequence.
 */
public S htmlContains(String sequence) {
  String html = HasHTML.class.isInstance(actual) ? ((HasHTML) actual).getHTML()
      : actual.getInnerHTML();
  if (!html.contains(sequence))
    failWithMessage("actual HTML [%s] does not contains [%s]", html, sequence);
  return myself;
}
origin: gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} HTML contains the given sequence.
 *
 * @param sequence the sequence to search for.
 * @return this assertion object.
 * @throws AssertionError if the actual HTML value does not contain the given sequence.
 */
public S htmlContains(String sequence) {
  String html = HasHTML.class.isInstance(actual) ? ((HasHTML) actual).getHTML()
      : actual.getInnerHTML();
  if (!html.contains(sequence))
    failWithMessage("actual HTML [%s] does not contains [%s]", html, sequence);
  return myself;
}
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;
}
origin: com.googlecode.gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} HTML contains the given sequence.
 *
 * @param sequence the sequence to search for.
 * @return this assertion object.
 * @throws AssertionError if the actual HTML value does not contain the given sequence.
 */
public S htmlContains(String sequence) {
  String html = HasHTML.class.isInstance(actual) ? ((HasHTML) actual).getHTML()
      : actual.getElement().getInnerHTML();
  if (!html.contains(sequence))
    failWithMessage("actual HTML [%s] does not contains [%s]", html, sequence);
  return myself;
}
origin: gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} HTML contains the given sequence.
 *
 * @param sequence the sequence to search for.
 * @return this assertion object.
 * @throws AssertionError if the actual HTML value does not contain the given sequence.
 */
public S htmlContains(String sequence) {
  String html = HasHTML.class.isInstance(actual) ? ((HasHTML) actual).getHTML()
      : actual.getElement().getInnerHTML();
  if (!html.contains(sequence))
    failWithMessage("actual HTML [%s] does not contains [%s]", html, sequence);
  return myself;
}
origin: gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} HTML is equal to the given one,
 * ignoring case considerations.
 *
 * @param expected
 *            the given HTML to compare the actual HTML value to.
 * @return this assertion object.
 * @throws AssertionError
 *             if the actual HTML value is not equal to the given one.
 */
public S htmlEqualsIgnoreCase(String expected) {
  String html = HasHTML.class.isInstance(actual) ? ((HasHTML) actual).getHTML() : actual.getElement().getInnerHTML();
  return propertyValueEqualsIgnoreCase("HTML", html, expected);
}
origin: com.googlecode.gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} HTML is equal to the given one,
 * ignoring case considerations.
 *
 * @param expected
 *            the given HTML to compare the actual HTML value to.
 * @return this assertion object.
 * @throws AssertionError
 *             if the actual HTML value is not equal to the given one.
 */
public S htmlEqualsIgnoreCase(String expected) {
  String html = HasHTML.class.isInstance(actual) ? ((HasHTML) actual).getHTML() : actual.getElement().getInnerHTML();
  return propertyValueEqualsIgnoreCase("HTML", html, expected);
}
origin: com.googlecode.gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} HTML is equal to the given one.
 *
 * @param expected the given HTML to compare the actual HTML value to.
 * @return this assertion object.
 * @throws AssertionError if the actual HTML value is not equal to the given one.
 */
public S htmlEquals(String expected) {
  String html = HasHTML.class.isInstance(actual) ? ((HasHTML) actual).getHTML()
      : actual.getInnerHTML();
  if (areEqual(html, expected))
    return myself;
  throw propertyComparisonFailed("HTML", html, expected);
}
origin: gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} HTML is equal to the given one.
 *
 * @param expected the given HTML to compare the actual HTML value to.
 * @return this assertion object.
 * @throws AssertionError if the actual HTML value is not equal to the given one.
 */
public S htmlEquals(String expected) {
  String html = HasHTML.class.isInstance(actual) ? ((HasHTML) actual).getHTML()
      : actual.getInnerHTML();
  if (areEqual(html, expected))
    return myself;
  throw propertyComparisonFailed("HTML", html, expected);
}
origin: com.googlecode.gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} HTML is equal to the given one.
 *
 * @param expected the given HTML to compare the actual HTML value to.
 * @return this assertion object.
 * @throws AssertionError if the actual HTML value is not equal to the given one.
 */
public S htmlEquals(String expected) {
  String html = HasHTML.class.isInstance(actual) ? ((HasHTML) actual).getHTML()
      : actual.getElement().getInnerHTML();
  if (areEqual(html, expected))
    return myself;
  throw propertyComparisonFailed("HTML", html, expected);
}
origin: gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} HTML is equal to the given one.
 *
 * @param expected the given HTML to compare the actual HTML value to.
 * @return this assertion object.
 * @throws AssertionError if the actual HTML value is not equal to the given one.
 */
public S htmlEquals(String expected) {
  String html = HasHTML.class.isInstance(actual) ? ((HasHTML) actual).getHTML()
      : actual.getElement().getInnerHTML();
  if (areEqual(html, expected))
    return myself;
  throw propertyComparisonFailed("HTML", html, expected);
}
origin: gwt-test-utils/gwt-test-utils

protected static void onDetach(Widget widget) {
  if (Composite.class.isInstance(widget.getParent())
      && getCompositeWidget(widget.getParent()) == widget) {
    onDetach(widget.getParent());
    return;
  }
  if (HasHTML.class.isInstance(widget)) {
    Set<Object> byHTML = INSTANCE.indexedObjectFinder.mapByHTML.get(((HasHTML) widget).getHTML());
    if (byHTML != null) {
      byHTML.remove(widget);
    }
  }
  if (HasText.class.isInstance(widget)) {
    Set<Object> byText = INSTANCE.indexedObjectFinder.mapByText.get(((HasText) widget).getText());
    if (byText != null) {
      byText.remove(widget);
    }
  }
  if (HasName.class.isInstance(widget)) {
    Set<Object> byName = INSTANCE.indexedObjectFinder.mapByName.get(((HasName) widget).getName());
    if (byName != null) {
      byName.remove(widget);
    }
  }
  if (widget.getElement() != null) {
    removeId(widget, widget.getElement());
  }
}
origin: com.googlecode.gwt-test-utils/gwt-test-utils

protected static void onDetach(Widget widget) {
  if (Composite.class.isInstance(widget.getParent())
      && getCompositeWidget(widget.getParent()) == widget) {
    onDetach(widget.getParent());
    return;
  }
  if (HasHTML.class.isInstance(widget)) {
    Set<Object> byHTML = INSTANCE.indexedObjectFinder.mapByHTML.get(((HasHTML) widget).getHTML());
    if (byHTML != null) {
      byHTML.remove(widget);
    }
  }
  if (HasText.class.isInstance(widget)) {
    Set<Object> byText = INSTANCE.indexedObjectFinder.mapByText.get(((HasText) widget).getText());
    if (byText != null) {
      byText.remove(widget);
    }
  }
  if (HasName.class.isInstance(widget)) {
    Set<Object> byName = INSTANCE.indexedObjectFinder.mapByName.get(((HasName) widget).getName());
    if (byName != null) {
      byName.remove(widget);
    }
  }
  if (widget.getElement() != null) {
    removeId(widget, widget.getElement());
  }
}
origin: gwt-test-utils/gwt-test-utils

protected static void onAttach(Widget widget) {
  if (Composite.class.isInstance(widget.getParent())
      && getCompositeWidget(widget.getParent()) == widget) {
    onAttach(widget.getParent());
    return;
  }
  if (HasHTML.class.isInstance(widget)) {
    onSetIndex(widget, ((HasHTML) widget).getHTML(), INSTANCE.indexedObjectFinder.mapByHTML);
  }
  if (HasText.class.isInstance(widget)) {
    onSetIndex(widget, ((HasText) widget).getText(), INSTANCE.indexedObjectFinder.mapByText);
  }
  if (HasName.class.isInstance(widget)) {
    onSetIndex(widget, ((HasName) widget).getName(), INSTANCE.indexedObjectFinder.mapByName);
  }
  if (widget.getElement() != null) {
    storeId(widget, widget.getElement());
  }
}
origin: com.googlecode.gwt-test-utils/gwt-test-utils

protected static void onAttach(Widget widget) {
  if (Composite.class.isInstance(widget.getParent())
      && getCompositeWidget(widget.getParent()) == widget) {
    onAttach(widget.getParent());
    return;
  }
  if (HasHTML.class.isInstance(widget)) {
    onSetIndex(widget, ((HasHTML) widget).getHTML(), INSTANCE.indexedObjectFinder.mapByHTML);
  }
  if (HasText.class.isInstance(widget)) {
    onSetIndex(widget, ((HasText) widget).getText(), INSTANCE.indexedObjectFinder.mapByText);
  }
  if (HasName.class.isInstance(widget)) {
    onSetIndex(widget, ((HasName) widget).getName(), INSTANCE.indexedObjectFinder.mapByName);
  }
  if (widget.getElement() != null) {
    storeId(widget, widget.getElement());
  }
}
com.google.gwt.user.client.uiHasHTMLgetHTML

Javadoc

Gets this object's contents as HTML.

Popular methods of HasHTML

  • setHTML
    Sets this object's contents via HTML. Use care when setting an object's HTML; it is an easy way to e
  • getText
  • 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
  • Top plugins for Android Studio
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