Package net.sf.nfp.mini.view

Examples of net.sf.nfp.mini.view.GraphView$AdditionalInfo


    super.setView(v);
    this.view = (GraphView) v;

    selectCommand = new ActionCommand("${select}", Command.SCREEN, 1) {
      public Navigation execute(Displayable d) throws Exception {
        GraphView view = (GraphView) d;
        Observation observation = view.getSelectedObservation();
        return new Navigation("input", period, observation);
      }
    };
    view.addCommand(selectCommand);
    view.addCommand(new ActionCommand("${enter.new}", Command.SCREEN, 2) {
      public Navigation execute(Displayable d) throws Exception {
        return new Navigation("input", period, new Observation());
      }
    });
    view.addCommand(new ActionCommand("${history}", Command.SCREEN, 5) {
      public Navigation execute(Displayable d) throws Exception {
        return new Navigation("history", period);
      }
    });
    view.addCommand(new ActionCommand("${delete}", Command.SCREEN, 3){
      public Navigation execute(Displayable d) throws Exception {
        Observation observation = view.getSelectedObservation();
        if(observation != null) {
          LogicDAO.removeObservation(controler, observation, period);
          return new Navigation("graph", period, observation);
        }else return null;
      }
    });
    view.setKeyListener(this);
    view.setExceptionListener(controler);
  }
View Full Code Here


        return new Page(new InputModel(NFPControler.this), new InputView());
      }
    });
    pages.put("graph", new LazyInit() {
      public Page create() {
        return new Page(new GraphModel(NFPControler.this), new GraphView());
      }
    });
    pages.put("history", new LazyInit() {
      public Page create() {
        return new Page(new HistoryModel(NFPControler.this), new HistoryView());
View Full Code Here

TOP

Related Classes of net.sf.nfp.mini.view.GraphView$AdditionalInfo

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.