use of com.google.gwt.user.client.ui.PotentialElement in project gwt-test-utils by gwt-test-utils.
the class PotentialElementPatcher method build.
@PatchMethod
static PotentialElement build(UIObject o, String tagName) {
PotentialElement e = JsoUtils.newNode(Node.ELEMENT_NODE).cast();
Element wrappedElement = JsoUtils.newElement(tagName, o.getElement().getOwnerDocument());
JavaScriptObjects.setProperty(e, POTENTIALELEMENT_TAG, true);
JavaScriptObjects.setProperty(e, POTENTIALELEMENT_WRAPPED_ELEMENT, wrappedElement);
JavaScriptObjects.setProperty(e, POTENTIALELEMENT_UIOBJECT, o);
return e;
}
Aggregations