Package org.gwtoolbox.widget.client.form.renderer.simple

Examples of org.gwtoolbox.widget.client.form.renderer.simple.FieldGroup


        bodyField.setValidators(notNull(), notEmpty());
       
        final Form form = new Form();
        form.addFields(toField, subjectField, bodyField);

        FieldGroup group = new FieldGroup("to", "subject", "body");
        group.setHints(editorWidth("100%"));
        group.setHints("body", editorHeight("200px"));

        SimpleFieldsRenderer render = new SimpleFieldsRenderer();
        render.addFieldGroup(group);
        render.setLineGap(10);
        render.setHints(labelWidth("50px"));
View Full Code Here


        cityField.setValidators(notNull());

        final Form form = new Form();
        form.addFields(firstNameField, lastNameField, emailField, street1Field, street2Field, cityField);

        FieldGroup generalGroup = new FieldGroup("firstName", "lastName", "email");
//        generalGroup.setLayoutHints(new LayoutHints().setEditorWidth("100%"));

        FieldGroup addressGroup = new FieldGroup("Address", new String[]{"street1", "street2", "city"});
        addressGroup.setHints(editorWidth("100%"));
        addressGroup.setHints("street2", labelVisible(false));

        SimpleFieldsRenderer renderer = new SimpleFieldsRenderer();
        renderer.setHints(labelWidth("65px"));
        renderer.addFieldGroup(generalGroup);
        renderer.addFieldGroup(addressGroup);
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.form.renderer.simple.FieldGroup

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.