Package com.google.gwt.event.dom.client

Examples of com.google.gwt.event.dom.client.ClickEvent


    }
  }

  void fireClickListeners(@SuppressWarnings("unused") Event nativeEvent) {
    // TODO(ecc) Once event triggering is committed, should fire a native click event instead.
    fireEvent(new ClickEvent() {
    });
  }
View Full Code Here


    }
  }

  void fireClickListeners(@SuppressWarnings("unused") Event nativeEvent) {
    // TODO(ecc) Once event triggering is committed, should fire a native click event instead.
    fireEvent(new ClickEvent() {
    });
  }
View Full Code Here

        switch (DOM.eventGetType(event)) {
        case Event.ONMOUSEUP:
            event.stopPropagation();
            event.preventDefault();
            if (DOM.eventGetButton(event) == Event.BUTTON_LEFT) {
                ClickEvent cevent = new ClickEvent() {
                    @Override
                    public Object getSource() {
                        return widget;
                    }
                };
                cevent.setNativeEvent(event);
                widget.fireEvent(cevent);
            } else if (DOM.eventGetButton(event) == Event.BUTTON_RIGHT) {
                List<RightClickHandler> rclickHandlers = RCLICK_HANDLERS.get(widget);
                if (rclickHandlers != null) {
                    RightClickEvent rcevent = new RightClickEvent(event);
View Full Code Here

      event.stopPropagation();
      event.preventDefault();
      switch (DOM.eventGetType(event)) {
        case Event.ONMOUSEUP:
          if (DOM.eventGetButton(event) == Event.BUTTON_LEFT) {
              ClickEvent cevent = new ClickEvent() {
                  @Override
                  public Object getSource() {
                      return item;
                  }
              };
              cevent.setNativeEvent(event);
              fireEvent(cevent);
            super.onBrowserEvent(event);
          } else if (DOM.eventGetButton(event) == Event.BUTTON_RIGHT) {
            for (RightClickHandler handler : rclickHandlers) {
                handler.onRightClick(new RightClickEvent(event));
View Full Code Here

      event.stopPropagation();
      event.preventDefault();
      switch (DOM.eventGetType(event)) {
        case Event.ONMOUSEUP:
          if (DOM.eventGetButton(event) == Event.BUTTON_LEFT) {
              ClickEvent evt = new ClickEvent() {
                  @Override
                 public Object getSource() {
                     return CustomMenuItem.this;
                 }
              };
              evt.setNativeEvent(event);
              fireEvent(evt);
              super.onBrowserEvent(event);
          } else if (DOM.eventGetButton(event) == Event.BUTTON_RIGHT) {
              final CommandPopupPanel removePanel = new CommandPopupPanel(true);
              MenuItem removeItem = new MenuItem(FormBuilderGlobals.getInstance().getI18n().RemoveMenuItem(), new Command() {
View Full Code Here

      public void onRightClick(MapRightClickEvent event) {
        LatLng clickedLatLng = map.convertContainerPixelToLatLng(event.getPoint());
        latitudeTextBox.setText(String.valueOf(clickedLatLng.getLatitude()));
        longitudeTextBox.setText(String.valueOf(clickedLatLng.getLongitude()));
        useManualLatLong.setValue(true);
        useManualLatLong.fireEvent(new ClickEvent() {});
        recenterMap();
      }
    });
  }
View Full Code Here

    assertEquals(3, table.getCellCount(row));
    assertTrue(table.getWidget(row, 0) instanceof TextBox);
    assertTrue(table.getWidget(row, 1) instanceof TextBox);
    assertTrue(table.getWidget(row, 2) instanceof ButtonBase);

    ((ButtonBase) table.getWidget(row, 2)).fireEvent(new ClickEvent() {});
  }
View Full Code Here

    assertEquals(0, invokeCounts[DESCRIPTION]);
  }

  public void testPopupIsShown() {
    initializeWidget();
    widget.button.fireEvent(new ClickEvent() {});
    assertTrue(widget.popup.isVisible());
  }
View Full Code Here

    assertEquals(1, invokeCounts[ON_REMOVE]);
    assertFalse(filterModel.isFilterActive(0));
  }

  private void triggerOnClick(HasHandlers source) {
    source.fireEvent(new ClickEvent() {});
  }
View Full Code Here

        splashModalFooter = new SplashModalFooter( closeCommand );
    }

    @Test
    public void onOKButtonClickTest() {
        ClickEvent e = mock(ClickEvent.class);
        splashModalFooter.onOKButtonClick( e );
        verify(closeCommand).execute( !(splashModalFooter.dontShowAgain.getValue()) );

    }
View Full Code Here

TOP

Related Classes of com.google.gwt.event.dom.client.ClickEvent

Copyright © 2018 www.massapicom. 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.