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

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


        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


    return true;
  }
 
  private Widget getMapControlWidget(EMapOperation operation) {
    DivWidget widget = new DivWidget("",getStyleNameForMapOperation(operation),_css.MapControlAny());
    widget.addClickHandler(new MapOperationClickHandler(operation));
    return widget;
  }

  private String getStyleNameForMapOperation(EMapOperation operation) {
    switch (operation) {
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.