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

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


        _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

        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

    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

        _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

  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

    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

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.