use of com.gwtmobile.ui.client.widgets.HeaderPanel in project GwtMobile by dennisjzh.
the class KitchenSink method emulateClickOnBackButton.
protected void emulateClickOnBackButton() {
HTMLPanel current = (HTMLPanel) PageHistory.Instance.current().getWidget();
HeaderPanel header = (HeaderPanel) current.getWidget(0);
Button left = header.getLeftButton();
NativeEvent event = Document.get().createClickEvent(1, 1, 1, 1, 1, false, false, false, false);
left.getElement().dispatchEvent(event);
}
Aggregations