Package org.onebusaway.webapp.gwt.common.widgets

Examples of org.onebusaway.webapp.gwt.common.widgets.SpanWidget.addClickHandler()


    _label.setVisible(!_expanded);
    add(_label);

    ClickHandlerImpl handler = new ClickHandlerImpl();
    image.addClickHandler(handler);
    label.addClickHandler(handler);
  }

  public void addEntry(LocalSearchResult result, TimedPlaceBean bean) {
    DivWidget widget = new DivWidget(result.getName() + " "
        + (bean.getTime() / 60) + " mins");
View Full Code Here


      _routesPanel.add(shortNameRoutesPanel);

      for (final RouteBean route : shortNameRoutes) {
        SpanWidget w = new SpanWidget(RoutePresenter.getNameForRoute(route));
        w.addStyleName(_css.stopInfoWindowRouteShortNameEntry());
        w.addClickHandler(new ClickHandler() {
          public void onClick(ClickEvent arg0) {
            _stopFinder.queryRoute(route.getId());
          }
        });
        shortNameRoutesPanel.add(w);
View Full Code Here

        String name = RoutePresenter.getNameForRoute(route);
        DivWidget w = new DivWidget(name);
        w.addStyleName(_css.stopInfoWindowRouteLongNameEntry());
        if (name.length() > 10)
          w.addStyleName(_css.stopInfoWindowRouteReallyLongNameEntry());
        w.addClickHandler(new ClickHandler() {
          public void onClick(ClickEvent arg0) {
            _stopFinder.queryRoute(route.getId());
          }
        });
        longNameRoutesPanel.add(w);
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.