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

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


    addressPanel2.addStyleName(_css.SearchWidgetExamplePanel());
    addressPanel.add(addressPanel2);

    SpanWidget addressExampleLabel1 = new SpanWidget(
        "(ex. \"3rd and pike\" or ");
    addressExampleLabel1.addStyleName(_css.SearchWidgetExampleLabel());
    addressPanel2.add(addressExampleLabel1);

    Anchor addressExampleLabel2 = new Anchor("use the map");
    addressExampleLabel2.addStyleName(_css.SearchWidgetExampleLabel());
    addressExampleLabel2.addClickHandler(new UseTheMapHandler());
View Full Code Here


    addressExampleLabel2.addStyleName(_css.SearchWidgetExampleLabel());
    addressExampleLabel2.addClickHandler(new UseTheMapHandler());
    addressPanel2.add(addressExampleLabel2);

    SpanWidget addressExampleLabel3 = new SpanWidget(")");
    addressExampleLabel3.addStyleName(_css.SearchWidgetExampleLabel());
    addressPanel2.add(addressExampleLabel3);

    DivPanel buttonPanel = new DivPanel();
    buttonPanel.addStyleName(_css.SearchWidgetButtonPanel());
    searchPanel.add(buttonPanel);
View Full Code Here

      shortNameRoutesPanel.addStyleName(_css.stopInfoWindowRoutesSubPanel());
      _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());
          }
        });
View Full Code Here

      _routesPanel.add(longNameRoutesPanel);

      for (final RouteBean route : longNameRoutes) {
        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());
View Full Code Here

      for (final RouteBean route : longNameRoutes) {
        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());
          }
        });
View Full Code Here

    leftSpan.addStyleName(_css.tinyInfoWindowLeftPanel());
    leftSpan.add(_content);
    _panel.add(leftSpan);

    SpanWidget rightSpan = new SpanWidget("");
    rightSpan.addStyleName(_css.tinyInfoWindowRightPanel());
    _panel.add(rightSpan);

    _map = map;
    _map.getPane(MapPaneType.MARKER_PANE).add(_panel);
  }
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.