Package net.sf.mvc.mobile.command

Examples of net.sf.mvc.mobile.command.ActionCommand


  public void setView(Displayable view) {
    Log.log("InputModel.setView("+view+") 1");
    super.setView(view);   
    Log.log("InputModel.setView("+view+") 2");
    this.view = (InputView) view;
    view.addCommand(new ActionCommand("${graph}", Command.SCREEN, 2) {
      public Navigation execute(Displayable d) throws Exception {
        return new Navigation("graph", period, null);
      }
    });
    view.addCommand(new ActionCommand("${save}", Command.BACK, 1) {
      public Navigation execute(Displayable d) throws Exception {
        InputView form = (InputView) d;
        Observation observation = form.getObservation();
        Observation existing = getObservationAt(observation.getDate());
        if (existing != null) {
View Full Code Here


    super.setView(v);
    view = (HistoryView) v;
    view.setKeyListener(this);
    view.setExceptionListener(controler);

    view.addCommand(new ActionCommand("${view}", Command.SCREEN, 1) {
      public Navigation execute(Displayable d) throws Exception {
        HistoryView history = (HistoryView) d;
        Period period = history.getSelectedPeriod();
        return new Navigation("graph", period, null);
      }
View Full Code Here

TOP

Related Classes of net.sf.mvc.mobile.command.ActionCommand

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.