Package net.sf.mvc.mobile

Examples of net.sf.mvc.mobile.Page


  protected void createNavigation() {
    /* Pages can be indexed by any object, not only string.
     * The value of the pages map can by either Page or LazyInit
     * Using LazyInit allows for creation of forms and their logic (model) only when the page is accessed
     */
    pages.put("enter-name", new Page(new EnterNameModel(SampleControler.this), new EnterNameView()));
    pages.put("say-hello", new LazyInit(){
      public Page create() {
        return new Page(new SayHelloModel(SampleControler.this), new SayHelloView());
      }     
    });
  }
View Full Code Here


  }

  protected void createNavigation() {
    pages.put("input", new LazyInit() {
      public Page create() {
        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());
      }
    });   
    pages.put("confirm-overwrite", new LazyInit() {
      public Page create() {
        return new Page(new ConfirmOverwriteModel(), new Alert("${confirm}"));
      }
    });
    pages.put("save-observation", new LazyInit() {
      public Page create() {
        return new Page(new SaveObservationModel(NFPControler.this), new Alert("${information}"));
      }
    });
    pages.put("mucus-editor", new LazyInit() {
      public Page create() {
        return new Page(new MucusListModel(NFPControler.this),
            new List("${mucusRegistry}", List.IMPLICIT,  new String[0], null));
      }
    });
    pages.put("edit-mucus", new LazyInit() {
      public Page create() {
        return new Page(new MucusEditorModel(), new MucusEditorView());           
      }
    });
  }
View Full Code Here

TOP

Related Classes of net.sf.mvc.mobile.Page

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.