Package org.onebusaway.presentation.model

Examples of org.onebusaway.presentation.model.NextAction


  protected String getNextActionOrSuccess() {
    List<NextAction> stack = getNextActionStack(false);
    if (stack == null || stack.isEmpty())
      return SUCCESS;

    NextAction next = stack.remove(stack.size() - 1);

    Map<String, String[]> params = next.getParameters();
    if (params != null && !params.isEmpty()) {
      ActionContext context = ActionContext.getContext();
      Map<String, Object> contextParameters = context.getParameters();
      contextParameters.putAll(params);
    }

    return next.getAction();
  }
View Full Code Here


    return next.getAction();
  }

  protected void pushNextAction(String action) {
    List<NextAction> stack = getNextActionStack(true);
    stack.add(new NextAction(action));
  }
View Full Code Here

    stack.add(new NextAction(action));
  }

  protected void pushNextAction(String action, String key, String value) {
    List<NextAction> stack = getNextActionStack(true);
    stack.add(new NextAction(action, key, value));
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.presentation.model.NextAction

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.