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

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


      }
    });
    buttonPanel.add(_optionsButton);

    DivPanel clearPanel = new DivPanel();
    clearPanel.addStyleName(_css.ClearPanel());
    panel.add(clearPanel);
    Image hiddenPixel = new Image(
        CommonResources.INSTANCE.getHiddenPixel().getUrl());
    clearPanel.add(hiddenPixel);
View Full Code Here


        TransitLegBean transitLeg = leg.getTransitLeg();
        TripBean tripBean = transitLeg.getTrip();
        RouteBean routeBean = tripBean.getRoute();

        DivPanel panel = new DivPanel();
        panel.addStyleName(_css.tripPanelVehiclePanel());

        DivPanel row1 = new DivPanel(_css.tripPanelVehiclePanelRow1());
        panel.add(row1);

        DataResource busIcon = resources.getBusTripTypeIcon();
View Full Code Here

        _panel.add(panel);

      } else if (mode.equals("walk")) {
       
        DivPanel panel = new DivPanel();
        panel.addStyleName(_css.tripPanelWalkPanel());

        DivPanel row1 = new DivPanel(_css.tripPanelWalkPanelRow1());
        panel.add(row1);

        DataResource walkIcon = resources.getWalkTripTypeIcon();
View Full Code Here

  private void fillEntryPanel(TimedLocalSearchResult result, FlowPanel panel) {

    LocalSearchResult entry = result.getLocalSearchResult();

    DivPanel namePanel = new DivPanel();
    namePanel.addStyleName(_css.ActiveResultNamePanel());
    panel.add(namePanel);

    if (entry.getUrl() == null) {
      DivWidget name = new DivWidget(entry.getName());
      name.addStyleName(_css.ActiveResultName());
View Full Code Here

    DivWidget phone = new DivWidget(getFormatedPhoneNumber(entry));
    phone.addStyleName(_css.ActiveResultPhone());
    panel.add(phone);

    DivPanel ratingPanel = new DivPanel();
    ratingPanel.addStyleName(_css.ActiveResultRatingPanel());
    panel.add(ratingPanel);

    if (entry.getRatingUrl() != null) {
      Image image = new Image(entry.getRatingUrl());
      image.setSize("84px", "17px");
View Full Code Here

    panel.add(time);

    _currentDirectionWidgets.add(time);

    DivPanel directionsPanel = new DivPanel();
    directionsPanel.addStyleName(_css.ActiveResultDirectionsPanel());
    panel.add(directionsPanel);

    Anchor directions = new Anchor("Get Directions Using Public Transit");
    directions.addStyleName(_css.ActiveResultDirections());
    directions.addClickHandler(new DirectionsHandler(entry));
View Full Code Here

          _widget.add(new DivWidget("Did you mean:",
              _css.AddressLookupMultipleAddressesFound()));
          for (final Place placemark : places) {

            DivPanel panel = new DivPanel();
            panel.addStyleName(_css.AddressLookupPlacePanel());
            _widget.add(panel);

            ClickHandler handler = new ClickHandler() {
              public void onClick(ClickEvent arg0) {
                _control.setQueryLocation(placemark.getLocation());
View Full Code Here

              }
            };

            PlacePresenter p = new PlacePresenter();
            DivPanel placePanel = p.getPlaceAsPanel(placemark, handler);
            placePanel.addStyleName(_css.AddressLookupPlace());
            panel.add(placePanel);
          }
        }
      } else {
        _widget.setVisible(false);
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.