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

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


    }

    private void bindDynamic() {
        Map<String, Image> characterImageMap = display.getCharacterImageMap();
        for (final String characterName : characterImageMap.keySet()) {
            HasClickHandlers characterImage = characterImageMap.get(characterName);
            dynamicHandlerRegistrations.add(characterImage.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent clickEvent) {
                    PreferencesSetMainCharacterAction action = new PreferencesSetMainCharacterAction();
                    action.setCharacterName(characterName);
                    showSpinner();
View Full Code Here


      Set<DescriptionTag> tags = Sets.newHashSet();
      for (TagProcessor processor : tagProcessors) {
        tags.addAll(processor.process(service));
      }

      HasClickHandlers rowHandle = toPopulate.addEntry(new ServiceEntry(
          iconUrl, displayName, service.getVersion(), service.getDescription(), tags));
      rowHandle.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          presenter.handleClickService(service);
        }
      });
View Full Code Here

  private void populateHistoryItems(
      final String prefix, Iterable<HistoryItem> historyItems, EntryAggregatorView aggregator) {

    for (final HistoryItem item : historyItems) {
      ApiRequest request = item.getRequest();
      HasClickHandlers rowHandler = aggregator.addEntry(new HistoryEntry(request.getMethod()
          .getId(), request.getHttpMethod().toString() + " " + request.getRequestPath(), item
          .getEndTime()));
      rowHandler.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          presenter.handleClickHistoryItem(prefix, item);
        }
      });
View Full Code Here

   * specified and then the method identifier to the current URL.
   */
  private void populateMethodEntry(final ApiMethod method, @Nullable String serviceTitle,
      final String prefix, EntryAggregatorView aggregator) {

    HasClickHandlers rowHandler = aggregator.addEntry(
        new MethodEntry(method.getId(), serviceTitle, method.getDescription()));
    rowHandler.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent arg0) {
        presenter.handleClickMethod(prefix, method);
      }
    });
View Full Code Here

TOP

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

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.