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

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


    _arrivalsAndDeparturesTable.setText(1, 1, "loading arrival data...");
  }

  private void updateStopPanel(StopBean stop) {
    _stopPanel.clear();
    _stopPanel.add(new DivWidget(stop.getName(), "arrivalsStopAddress"));
    _stopPanel.add(new DivWidget("Stop # " + stop.getId() + " - "
        + stop.getDirection() + " bound"));
  }
View Full Code Here


      return;

    Grid elements = new Grid(1, 3);
    elements.addStyleName(_css.ResultsTableWidgetNavigationWidget());
    String itemCountStyle = "ItemCount";
    DivWidget itemCount = new DivWidget("<span class=\"" + itemCountStyle + "\">" + fromIndex
        + "</span> to <span class=\"" + itemCountStyle + "\">" + toIndex + "</span> of <span class=\"" + itemCountStyle
        + "\">" + totalSize + "</span>");
    itemCount.addStyleName(_css.ItemCountPanel());
    elements.setWidget(0, 0, itemCount);

    FlowPanel pagesPanel = new FlowPanel();
    pagesPanel.addStyleName(_css.PagesPanel());
    pagesPanel.add(new SpanWidget("Go to page "));
View Full Code Here

  }

  private PatchMarker(LatLng northWestCorner, LatLng southEastCorner) {
    _northWestCorner = northWestCorner;
    _southEastCorner = southEastCorner;
    _widget = new DivWidget("");
  }
View Full Code Here

      controller.fireContextChangedEvent();
  }

  protected void loadView() {
    if (_view == null)
      _view = new DivWidget("empty");
  }
View Full Code Here

    String message = context.getParam("message");

    FlowPanel panel = new FlowPanel();

    if (message != null)
      panel.add(new DivWidget(message, "ExceptionPage-Error"));

    Window.setTitle("ERROR");

    return panel;
  }
View Full Code Here

      LatLng p = place.getLocation();
      MapWidget _map = _transitMapManager.getMap();
      InfoWindow window = _map.getInfoWindow();

      FlowPanel panel = new FlowPanel();
      panel.add(new DivWidget(place.getName()));
      String desc = place.getDescriptionAsString();
      if (desc.length() > 0)
        panel.add(new DivWidget(desc));

      DivPanel row = new DivPanel();
      panel.add(row);

      Anchor anchor = new Anchor("Show nearby transit stops");
View Full Code Here

    image.addClickHandler(handler);
    label.addClickHandler(handler);
  }

  public void addEntry(LocalSearchResult result, TimedPlaceBean bean) {
    DivWidget widget = new DivWidget(result.getName() + " "
        + (bean.getTime() / 60) + " mins");
    _elements.add(widget);
    int count = _elements.getWidgetCount();
    String label = count == 1 ? "1 element" : (count + " elements");
    _label.setText(label);
View Full Code Here

public class WelcomePagePresenter {
  private FlowPanel _panel = new FlowPanel();

  public WelcomePagePresenter() {
    _panel.add(new DivWidget(
        "<p>We want to take the hassle out of finding places to eat, see, and go in your neighborhood using mass-transit.</p><p>We've written a tool that makes it easy to search for restaurants, parks, shops, or anything else you might be looking for that are just one bus ride away.</p>"));
  }
View Full Code Here

    DivPanel searchForPanel = new DivPanel();
    searchForPanel.addStyleName(_css.SearchWidgetSearchForPanel());
    searchPanel.add(searchForPanel);

    DivWidget queryLabel = new DivWidget("Search for:");
    queryLabel.addStyleName(_css.SearchWidgetLabel());
    searchForPanel.add(queryLabel);

    DivPanel queryTextBoxPanel = new DivPanel();
    queryTextBoxPanel.addStyleName(_css.SearchWidgetTextBoxPanel());
    searchForPanel.add(queryTextBoxPanel);

    _queryTextBox = new TextBox();
    _queryTextBox.addStyleName(_css.SearchWidgetTextBox());
    _queryTextBox.setName(ConstraintsParameterMapping.PARAM_QUERY);
    _queryTextBox.addKeyPressHandler(new QueryTextBoxHandler());
    queryTextBoxPanel.add(_queryTextBox);

    DivPanel searchForExamplePanel = new DivPanel();
    searchForExamplePanel.addStyleName(_css.SearchWidgetExamplePanel());
    searchForPanel.add(searchForExamplePanel);

    DivWidget searchForExampleLabel = new DivWidget(
        "(ex. \"restaurants\", \"parks\", \"grocery stores\")");
    searchForExampleLabel.addStyleName(_css.SearchWidgetExampleLabel());
    searchForExamplePanel.add(searchForExampleLabel);

    DivPanel addressPanel = new DivPanel();
    searchPanel.add(addressPanel);

    DivPanel addressPanel1 = new DivPanel();
    addressPanel.add(addressPanel1);

    DivWidget addressLabel = new DivWidget("Start Address:");
    addressLabel.addStyleName(_css.SearchWidgetLabel());
    addressPanel1.add(addressLabel);

    DivPanel addressTextBoxPanel = new DivPanel();
    addressTextBoxPanel.addStyleName(_css.SearchWidgetTextBoxPanel());
    addressPanel1.add(addressTextBoxPanel);
View Full Code Here

      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

TOP

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

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.