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

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


        _model.setSortMode(sortType);
      }
    });

    if (_model.getSortMode().equals(sortType)) {
      SpanPanel panel = new SpanPanel();
      panel.add(widget);
      OneBusAwayStandardResources resources = OneBusAwayStandardResources.INSTANCE;
      ImageResource resource = _model.isReverseSort() ? resources.getTriangleUp() : resources.getTriangleDown();
      Image img = new Image(resource.getURL());
      panel.add(img);
      return panel;
    }

    return widget;
  }
View Full Code Here


        if (stop != null) {
          String routeName = leg.getRouteShortName();

          TripPlannerResources resources = TripPlannerResources.INSTANCE;
          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

  protected void initialize(MapWidget map) {

    _panel = new FlowPanel();
    _panel.addStyleName(_css.tinyInfoWindow());

    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);
View Full Code Here

  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);

      final CheckBox box = new CheckBox();
      box.addStyleName(_css.ResultsFilterButton());
      box.setText(categoryName);
      box.setValue(_activeCategories.contains(categoryName));
      box.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent arg0) {

          boolean update = false;
         
          if (box.getValue())
            update = _activeCategories.add(categoryName);
          else
            update = _activeCategories.remove(categoryName);

          if (update) {
            refreshFilter();
          }
        }

      });
      panel.add(box);

      _widget.add(panel);
    }
  }
View Full Code Here

  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);

      final CheckBox box = new CheckBox();
      box.addStyleName(_css.ResultsFilterButton());
      box.setText(categoryName);
      box.setValue(_activeCategories.contains(categoryName));
      box.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent arg0) {

          boolean update = false;
          if (box.getValue())
            update = _activeCategories.add(categoryName);
          else
            update = _activeCategories.remove(categoryName);

          if (update) {
            refreshFilter();
          }
        }

      });
      panel.add(box);

      _widget.add(panel);
    }
  }
View Full Code Here

TOP

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

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.