Package org.jreform

Examples of org.jreform.Group.input()


    {
        @SuppressWarnings("unchecked")
        public TestForm()
        {
            Group contact = requiredGroup(CONTACT);
            contact.input(stringType(), SURNAME);
            contact.input(stringType(), PHONE);
            contact.input(stringType(), EMAIL, emailAddress()).optional();
           
            Group metric = optionalGroup(METRIC);
            metric.input(doubleType(), HEIGHT_M);
View Full Code Here


        @SuppressWarnings("unchecked")
        public TestForm()
        {
            Group contact = requiredGroup(CONTACT);
            contact.input(stringType(), SURNAME);
            contact.input(stringType(), PHONE);
            contact.input(stringType(), EMAIL, emailAddress()).optional();
           
            Group metric = optionalGroup(METRIC);
            metric.input(doubleType(), HEIGHT_M);
            metric.input(intType(), WEIGHT_KG);
View Full Code Here

        public TestForm()
        {
            Group contact = requiredGroup(CONTACT);
            contact.input(stringType(), SURNAME);
            contact.input(stringType(), PHONE);
            contact.input(stringType(), EMAIL, emailAddress()).optional();
           
            Group metric = optionalGroup(METRIC);
            metric.input(doubleType(), HEIGHT_M);
            metric.input(intType(), WEIGHT_KG);
           
View Full Code Here

            contact.input(stringType(), SURNAME);
            contact.input(stringType(), PHONE);
            contact.input(stringType(), EMAIL, emailAddress()).optional();
           
            Group metric = optionalGroup(METRIC);
            metric.input(doubleType(), HEIGHT_M);
            metric.input(intType(), WEIGHT_KG);
           
            Group imperial = optionalGroup(IMPERIAL);
            imperial.input(intType(), HEIGHT_FT);
            imperial.input(intType(), HEIGHT_IN);
View Full Code Here

            contact.input(stringType(), PHONE);
            contact.input(stringType(), EMAIL, emailAddress()).optional();
           
            Group metric = optionalGroup(METRIC);
            metric.input(doubleType(), HEIGHT_M);
            metric.input(intType(), WEIGHT_KG);
           
            Group imperial = optionalGroup(IMPERIAL);
            imperial.input(intType(), HEIGHT_FT);
            imperial.input(intType(), HEIGHT_IN);
            imperial.input(intType(), WEIGHT_LB);
View Full Code Here

            Group metric = optionalGroup(METRIC);
            metric.input(doubleType(), HEIGHT_M);
            metric.input(intType(), WEIGHT_KG);
           
            Group imperial = optionalGroup(IMPERIAL);
            imperial.input(intType(), HEIGHT_FT);
            imperial.input(intType(), HEIGHT_IN);
            imperial.input(intType(), WEIGHT_LB);
           
            try
            {
View Full Code Here

            metric.input(doubleType(), HEIGHT_M);
            metric.input(intType(), WEIGHT_KG);
           
            Group imperial = optionalGroup(IMPERIAL);
            imperial.input(intType(), HEIGHT_FT);
            imperial.input(intType(), HEIGHT_IN);
            imperial.input(intType(), WEIGHT_LB);
           
            try
            {
                Group duplicate = optionalGroup(IMPERIAL);
View Full Code Here

            metric.input(intType(), WEIGHT_KG);
           
            Group imperial = optionalGroup(IMPERIAL);
            imperial.input(intType(), HEIGHT_FT);
            imperial.input(intType(), HEIGHT_IN);
            imperial.input(intType(), WEIGHT_LB);
           
            try
            {
                Group duplicate = optionalGroup(IMPERIAL);
                fail("Error - duplicate group name must throw an exception");
View Full Code Here

        // uses a custom InputDataType
        select(employmentType, "employmentStatus");
       
        Group employer = optionalGroup("employer");
        employer.input(stringType(), "company");
        employer.input(stringType(), "businessPhoneNumber");
       
        radio(booleanType(), "hasAccountWithUs");

        Group account = optionalGroup("accountDetails");
View Full Code Here

        // uses a custom InputDataType
        select(employmentType, "employmentStatus");
       
        Group employer = optionalGroup("employer");
        employer.input(stringType(), "company");
        employer.input(stringType(), "businessPhoneNumber");
       
        radio(booleanType(), "hasAccountWithUs");

        Group account = optionalGroup("accountDetails");
        account.select(stringType(), "accountType");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.