Package org.onebusaway.webapp.gwt.common.context

Examples of org.onebusaway.webapp.gwt.common.context.Context


      }
    });

    _dialog.show();

    Context context = new ContextImpl();

    if (!_stopsById.isEmpty()) {
      CoordinateBounds b = new CoordinateBounds();
      for (StopBean stop : _stopsById.values())
        b.addPoint(stop.getLat(), stop.getLon());
      b = SphericalGeometryLibrary.bounds(b, 100);
      context = stopFinder.getCoordinateBoundsAsContext(b);
      System.out.println("context=" + context);
    }

    final Context c = context;

    DeferredCommand.addCommand(new Command() {
      @Override
      public void execute() {
        stopFinder.onContextChanged(c);
View Full Code Here


  public void initialize() {
    DeferredCommand.addCommand(new Command() {
      @Override
      public void execute() {
        Context context = _contextManager.getContext();
        if (context == null)
          context = new ContextImpl();
        onContextChanged(context);
      }
    });
View Full Code Here

   * {@link StopFinderInterface}
   ****/

  @Override
  public String getCurrentViewAsUrl() {
    Context context = _contextManager.getContext();
    if (context == null)
      context = new ContextImpl();
    context = buildContext(context.getParams(), true);
    return "#" + _contextManager.getContextAsString(context);
  }
View Full Code Here

          "Number of params must be even (key-value pairs)");

    for (int i = 0; i < params.length; i += 2)
      m.put(params[i].toString(), params[i + 1].toString());

    Context context = buildContext(m, includeView);

    _contextManager.setContext(context);
  }
View Full Code Here

    _panel.add(view);
    _rootNavigationController.viewDidAppear();
   
    _contextManager.addContextListener(this);

    Context context = _contextManager.getContext();

    if (context == null)
      context = new ContextImpl();

    final Context finalContext = context;

    // We defer execution of the command so that other modules can finish
    // loading before we fire the context change event
    DeferredCommand.addCommand(new Command() {
      public void execute() {
View Full Code Here

    panel.add(_panel);

    _contextManager.addContextListener(this);

    Context context = _contextManager.getContext();

    if (context == null)
      context = new ContextImpl();
    onContextChanged(context);
  }
View Full Code Here

    _panel = RootPanel.get("content");

    _contextManager.addContextListener(this);

    Context context = _contextManager.getContext();

    if (context == null)
      context = new ContextImpl();

    final Context finalContext = context;
   
    // We defer execution of the command so that other modules can finish loading before we fire the context change event
    DeferredCommand.addCommand(new Command() {
      public void execute() {
        onContextChanged(finalContext);
View Full Code Here

TOP

Related Classes of org.onebusaway.webapp.gwt.common.context.Context

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.