Examples of DivWidget


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

    AgencyBean agency = route.getAgency();
    String agencyLink = agency.getName();
    if (agency.getUrl() != null)
      agencyLink = "<a href=\"" + agency.getUrl() + "\">" + agency.getName()
          + "</a>";
    resultPanel.add(new DivWidget("Operated by " + agencyLink,
        _css.resultListEntryDescription()));
  }
View Full Code Here

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

    nameRow.add(anchor);

    String desc = "Stop # " + StopPresenter.getCodeForStop(stop);
    if (stop.getDirection() != null)
      desc += " - " + stop.getDirection() + " bound";
    resultPanel.add(new DivWidget(desc, _css.resultListEntryDescription()));
  }
View Full Code Here

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

    });
    routeRow.add(anchor);

    String description = place.getDescriptionAsString();
    if (description.length() > 0)
      routeRow.add(new DivWidget(description, _css.resultListEntryDescription()));
  }
View Full Code Here

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

        _widget.clear();
        _widget.setVisible(true);

        if (places.size() == 0) {
          _widget.add(new DivWidget(
              "We couldn't find that adress.  Check to make sure it's correct, or perhaps add the city or zip code?",
              _css.AddressLookupNoAddressFound()));
        } else {
          _widget.add(new DivWidget("Did you mean:",
              _css.AddressLookupMultipleAddressesFound()));
          for (final Place placemark : places) {

            DivPanel panel = new DivPanel();
            panel.addStyleName(_css.AddressLookupPlacePanel());
View Full Code Here

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

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

        FlowPanel panel = new FlowPanel();
        if (message != null)
            panel.add(new DivWidget(message));
       
        Window.setTitle("ERROR");

        return panel;
    }
View Full Code Here

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

    public void handleStopClicked(StopClickedEvent event) {

      final StopBean stop = event.getStop();
      FlowPanel panel = new FlowPanel();

      panel.add(new DivWidget(stop.getName()));

      StringBuilder b = new StringBuilder();
      if (stop.getDirection() != null)
        b.append(stop.getDirection()).append(" - ");

      b.append("Routes: ");
      boolean first = true;
      for (RouteBean route : stop.getRoutes()) {
        if (!first)
          b.append(",");
        b.append(" ").append(route.getShortName());
      }

      panel.add(new DivWidget(b.toString()));

      Anchor anchor = new Anchor("Show Real-Time Arrivals");
      anchor.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent arg0) {
View Full Code Here

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

        _newBookmark ? "Add Bookmark" : "Edit Bookmark");
    getNavigationItem().setRightBarButtonItem(
        new BarButtonItem("Cancel", new CancelHandler()));

    FlowPanel panel = new FlowPanel();
    panel.add(new DivWidget("Name:"));

    FormPanel form = new FormPanel();
    panel.add(form);

    FlowPanel formRow = new FlowPanel();
View Full Code Here

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

  public boolean isSelectable() {
    return true;
  }
 
  private Widget getMapControlWidget(EMapOperation operation) {
    DivWidget widget = new DivWidget("",getStyleNameForMapOperation(operation),_css.MapControlAny());
    widget.addClickHandler(new MapOperationClickHandler(operation));
    return widget;
  }
View Full Code Here

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

    super.loadView();

    getNavigationItem().setTitle("Search");

    FlowPanel panel = new FlowPanel();
    panel.add(new DivWidget("Search by:"));

    Grid buttonRow = new Grid(1, 3);
    buttonRow.addStyleName(_css.SearchTypeButtons());
    panel.add(buttonRow);
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.