Package com.ponysdk.ui.server.form.renderer

Examples of com.ponysdk.ui.server.form.renderer.TextBoxFormFieldRenderer


    private void buildCreatePonyActivity() {

        createPonyActivityPanel = new PSimplePanel();
        createPonyActivity = new FormActivity(new DefaultFormView("Create a Pony"));
        nameFormField = new FormField(new TextBoxFormFieldRenderer("Name"));
        ageFormField = new FormField(new TextBoxFormFieldRenderer("Age"));
        raceFormField = new FormField(new TextBoxFormFieldRenderer("Race"));

        nameFormField.addValidator(new NotEmptyFieldValidator());
        raceFormField.addValidator(new NotEmptyFieldValidator());
        ageFormField.addValidator(new NotEmptyFieldValidator());
        ageFormField.addValidator(new IntegerFieldValidator());
View Full Code Here


        final FormField field1 = new FormField("field1");
        formActivity.addFormField(field1);
        field1.addValidator(new NotEmptyFieldValidator());
        field1.addValidator(new DoubleFieldValidator());

        final FormFieldRenderer field2Renderer = new TextBoxFormFieldRenderer("field2");
        final FormField field2 = new FormField(field2Renderer);
        formActivity.addFormField(field2);

        final ListBoxFormFieldRenderer field3Renderer = new ListBoxFormFieldRenderer("field3");
        field3Renderer.addItem("Choice 1", 1);
View Full Code Here

        void onReset();
    }

    public FormField() {
        this.formFieldRenderer = new TextBoxFormFieldRenderer();
    }
View Full Code Here

    public FormField() {
        this.formFieldRenderer = new TextBoxFormFieldRenderer();
    }

    public FormField(String caption) {
        this.formFieldRenderer = new TextBoxFormFieldRenderer(caption);
    }
View Full Code Here

TOP

Related Classes of com.ponysdk.ui.server.form.renderer.TextBoxFormFieldRenderer

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.