Package net.sf.mvc.mobile.sample.model

Examples of net.sf.mvc.mobile.sample.model.EnterNameModel


  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

TOP

Related Classes of net.sf.mvc.mobile.sample.model.EnterNameModel

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.