@Override public String getValue() { return target.getHTML(); }
public String getHTML() { return ((HasHTML)link).getHTML(); }
@Override public String getTitleText() { return dialogPanel1.getDialogTitle().getHTML(); }
@Override public String getTitleText() { return dialogPanel1.getDialogTitle().getHTML(); }
/** * 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; }
/** * 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; }
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; }
/** * 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; }
/** * 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; }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
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()); } }
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()); } }
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()); } }
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()); } }