Examples of TapHandler


Examples of com.googlecode.mgwt.dom.client.event.tap.TapHandler

  public void start(AcceptsOneWidget panel, final EventBus eventBus) {
    final UIView view = clientFactory.getUIView();

    view.setTitle("UI");

    addHandlerRegistration(view.getBackButton().addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        ActionEvent.fire(eventBus, ActionNames.BACK);
View Full Code Here

Examples of com.googlecode.mgwt.dom.client.event.tap.TapHandler

    super.start(panel, eventBus);
    AboutView aboutView = clientFactory.getAboutView();

    aboutView.getHeader().setText("About");

    addHandlerRegistration(aboutView.getBackbutton().addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        ActionEvent.fire(eventBus, ActionNames.BACK);
View Full Code Here

Examples of com.googlecode.mgwt.dom.client.event.tap.TapHandler

  @Override
  public void start(AcceptsOneWidget panel, final EventBus eventBus) {
    AnimationDoneView view = clientFactory.getAnimationDoneView();

    addHandlerRegistration(view.getBackButton().addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        ActionEvent.fire(eventBus, ActionNames.ANIMATION_END);
View Full Code Here

Examples of com.googlecode.mgwt.dom.client.event.tap.TapHandler

            }

          }
        }));

    addHandlerRegistration(view.getAboutButton().addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        clientFactory.getPlaceController().goTo(new AboutPlace());
View Full Code Here

Examples of com.googlecode.mgwt.dom.client.event.tap.TapHandler

  }

  @Override
  public void start(AcceptsOneWidget panel, final EventBus eventBus) {

    addHandlerRegistration(detailView.getBackbutton().addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        ActionEvent.fire(eventBus, ActionNames.BACK);
      }
View Full Code Here

Examples of com.googlecode.mgwt.dom.client.event.tap.TapHandler

    textLabel = new HTML();
    dialogPanel.getContent().add(textLabel);
    popinDialog.add(dialogPanel);

    dialogPanel.getOkButton().addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        popinDialog.hide();
      }
View Full Code Here

Examples of com.googlecode.mgwt.dom.client.event.tap.TapHandler

   * @param callback - the callback that is called when the user clicks the ok button (can be null)
   */
  public static Dialog alert(String title, String text, final AlertCallback callback) {
    AlertDialog alertDialog = new AlertDialog(title, text);

    alertDialog.addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        if (callback != null) {
          callback.onButtonPressed();
View Full Code Here

Examples of com.googlecode.mgwt.dom.client.event.tap.TapHandler

    textLabel = new Label();
    dialogPanel1.getContent().add(textLabel);
    popinDialog.add(dialogPanel1);

    dialogPanel1.getOkButton().addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        popinDialog.hide();
        if (ConfirmDialog.this.callback != null)
          ConfirmDialog.this.callback.onOk();
      }
    });

    dialogPanel1.getCancelButton().addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        popinDialog.hide();
        if (ConfirmDialog.this.callback != null)
View Full Code Here

Examples of com.googlecode.mgwt.dom.client.event.tap.TapHandler

  @Override
  public void add(Widget w) {

    final WidgetListEntry widgetListEntry = new WidgetListEntry(this.appearance);
    widgetListEntry.setWidget(w);
    HandlerRegistration handlerRegistration = widgetListEntry.addTapHandler(new TapHandler() {
      @Override
      public void onTap(TapEvent event) {
        SelectionEvent.fire(WidgetList.this, container.getWidgetIndex(widgetListEntry));
      }
    });
View Full Code Here

Examples of com.googlecode.mgwt.dom.client.event.tap.TapHandler

        }
        active = true;
      }
    });

    addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        removeStyleName(ButtonBase.this.baseAppearance.css().active());
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.