use of com.google.gwt.user.client.ui.impl.FormPanelImpl in project gwt-test-utils by gwt-test-utils.
the class FormPanelPatcher method submit.
@PatchMethod
static void submit(FormPanel formPanel) {
FormPanel.SubmitEvent event = new FormPanel.SubmitEvent();
formPanel.fireEvent(event);
if (!event.isCanceled()) {
FormPanelImpl impl = GwtReflectionUtils.getPrivateFieldValue(formPanel, "impl");
Element synthesizedFrame = GwtReflectionUtils.getPrivateFieldValue(formPanel, "synthesizedFrame");
FormPanel.SubmitCompleteEvent completeEvent = createCompleteSubmitEvent(getResultsHtml(impl, synthesizedFrame));
formPanel.fireEvent(completeEvent);
}
}
Aggregations