Package org.mojavemvc.tests.views

Examples of org.mojavemvc.tests.views.HTMLPage$Paragraph


public class ClassNameController {

    @Action
    public View sayHello(@Param("name") String name) {

        return new HTMLPage()
            .withH2Content("classNameControllerAction:" + name);
    }
View Full Code Here


    }

    @Action("do-something")
    public View doSomething() {

        return new HTMLPage()
            .withH2Content("test");
    }
View Full Code Here

        afterInvokeCount++;
    }

    @DefaultAction
    public View defaultAction() {
        return new HTMLPage()
            .withH2Content("default");
    }
View Full Code Here

*/
public abstract class AbstractController {

    @Action("test")
    public View testInitAction() {
        return new HTMLPage()
            .withH2Content(getVal());
    }
View Full Code Here

    }

    @Action
    public View doSomething() {

        return new HTMLPage()
            .withH2Content("redirecting2");
    }
View Full Code Here

    }

    @Action
    public View doSomething() {

        return new HTMLPage()
            .withH2Content("streaming3");
    }
View Full Code Here

    private String someStatefulVar;

    @DefaultAction
    public View defaultAction() {
        return new HTMLPage();
    }
View Full Code Here

        return new HTMLPage();
    }

    @Action("some-action")
    public View someAction() {
        return new HTMLPage()
            .withH1Content("some-singleton/some-action");
    }
View Full Code Here

    @Action("set-var")
    public View setVarAction(@Param("var") String var) {

        someStatefulVar = var;
        return new HTMLPage()
            .withH1Content("some-singleton/set-var");
    }
View Full Code Here

    }

    @Action("get-var")
    public View getVarAction() {

        return new HTMLPage()
            .withH2Content(someStatefulVar);
    }
View Full Code Here

TOP

Related Classes of org.mojavemvc.tests.views.HTMLPage$Paragraph

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.