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

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


        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"));
        Widget formPanel = render.render(form);
        formPanel.setWidth("300px");

        SimpleButton validateButton = new SimpleButton("Validate", new ClickHandler() {
            public void onClick(ClickEvent event) {
                form.submit(new SubmitHandler.Adapter() {
View Full Code Here


        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);
        Widget formPanel = renderer.render(form);
        formPanel.setWidth("300px");

        SimpleButton validateButton = new SimpleButton("Validate", new ClickHandler() {
            public void onClick(ClickEvent event) {
                form.validate();
View Full Code Here

TOP

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

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.