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

Examples of org.onebusaway.webapp.gwt.common.widgets.SpanWidget


          SpanPanel w = new SpanPanel();
          w.addStyleName(_css.routeTinyInfoWindow());
          Image image = new Image(resources.getBus14x14().getUrl());
          image.addStyleName(_css.routeModeIcon());
          w.add(image);
          SpanWidget name = new SpanWidget(routeName);
          name.setStyleName(_css.routeName());
          w.add(name);

          LatLng point = LatLng.newInstance(stop.getLat(), stop.getLon());
          TinyInfoWindowMarker marker = new TinyInfoWindowMarker(point, w);
          resultingOverlays.add(marker);
View Full Code Here


  public void handleNotificationReset() {

  }

  protected void addMethodDescriptionToRow(DivPanel methodRow) {
    methodRow.add(new SpanWidget(_methodDescription));
  }
View Full Code Here

    TripBean trip = bean.getTrip();
    RouteBean route = trip.getRoute();

    String routeName = RoutePresenter.getNameForRoute(route);
    row.setWidget(0, 0, new SpanWidget(routeName, _css.ArrivalEntryRouteName()));

    FlowPanel center = new FlowPanel();
    row.setWidget(0, 1, center);

    center.add(new DivWidget(trip.getTripHeadsign(),
        _css.ArrivalEntryTripName()));

    FlowPanel arrivalTimePanel = new FlowPanel();
    arrivalTimePanel.addStyleName(_css.ArrivalEntryArrivalTimeDetail());
    center.add(arrivalTimePanel);

    arrivalTimePanel.add(new SpanWidget(arrivalTime));
    arrivalTimePanel.add(new SpanWidget(" - "));
    arrivalTimePanel.add(new SpanWidget(arrivalLabel, arrivalLabelStyle));

    row.setWidget(0, 2, new SpanWidget(minuteLabel, arrivalLabelStyle,
        _css.ArrivalEntryMinutes()));

    row.getCellFormatter().addStyleName(0, 0, _css.ArrivalEntryColumnA());
    row.getCellFormatter().addStyleName(0, 1, _css.ArrivalEntryColumnB());
    row.getCellFormatter().addStyleName(0, 2, _css.ArrivalEntryColumnC());
View Full Code Here

      FlowPanel shortNameRoutesPanel = new FlowPanel();
      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());
          }
        });
        shortNameRoutesPanel.add(w);
      }
    }

    if (!longNameRoutes.isEmpty()) {

      FlowPanel longNameRoutesPanel = new FlowPanel();
      longNameRoutesPanel.addStyleName(_css.stopInfoWindowRoutesSubPanel());
      _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());
          }
        });
        longNameRoutesPanel.add(w);
View Full Code Here

      switch (row.getStyle()) {
        case DEFAULT: {
          FlowPanel text = new FlowPanel();
          text.addStyleName(_css.ListViewRowText());
          text.add(new SpanWidget(row.getText()));
          rowPanel.add(text);
          break;
        }

        case DETAIL: {
          FlowPanel text = new FlowPanel();
          text.add(new SpanWidget(row.getText()));
          text.addStyleName(_css.ListViewRowText());
          rowPanel.add(text);

          FlowPanel detail = new FlowPanel();
          detail.add(new SpanWidget(row.getDetailText()));
          detail.addStyleName(_css.ListViewRowDetailText());
          rowPanel.add(detail);

          break;
        }
View Full Code Here

    SpanPanel leftSpan = new SpanPanel();
    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

      buildMaxmizedWidget();
    }
  }

  private void buildMinimizedWidget() {
    _widget.add(new SpanWidget("Categories:", "ResultsFilter-Label"));

    for (int i = 0; i < Math.min(3, _categories.size()); i++) {
      SpanPanel panel = new SpanPanel();

      final String categoryName = _categories.get(i);
View Full Code Here

      _widget.add(panel);
    }
  }

  private void buildMaxmizedWidget() {
    _widget.add(new SpanWidget("Categories:", "ResultsFilter-Label"));

    for (int i = 0; i < Math.min(3, _categories.size()); i++) {
      SpanPanel panel = new SpanPanel();

      final String categoryName = _categories.get(i);
View Full Code Here

    FlowPanel panel = new FlowPanel();

    FlowPanel rowA = new FlowPanel();
    panel.add(rowA);
    rowA.add(new SpanWidget(place.getName()));

    if (includeSelectionLink) {
      FlowPanel rowB = new FlowPanel();
      panel.add(rowB);
      Anchor anchor = new Anchor("Show nearby stops");
View Full Code Here

TOP

Related Classes of org.onebusaway.webapp.gwt.common.widgets.SpanWidget

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.