Codota Logo
HasHTML.getHTML
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • getSystemService (Context)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now