Package org.springframework.binding.form

Examples of org.springframework.binding.form.FieldMetadata


        fm.setEnabled(true);
        assertEquals(true, tc.isEnabled());
    }

    public void testComponentTracksReadOnlyChanges() {
        FieldMetadata state = fm.getFieldMetadata("simpleProperty");
        assertEquals(true, tc.isEditable());
        state.setReadOnly(true);
        assertEquals(false, tc.isEditable());
        state.setReadOnly(false);
        assertEquals(true, tc.isEditable());
    }
View Full Code Here


        fm.setEnabled(true);
        assertEquals(true, ftc.isEnabled());
    }

    public void testComponentTracksReadOnlyChanges() {
        FieldMetadata state = fm.getFieldMetadata("numberProperty");
        assertEquals(true, ftc.isEditable());
        state.setReadOnly(true);
        assertEquals(false, ftc.isEditable());
        state.setReadOnly(false);
        assertEquals(true, ftc.isEditable());
    }
View Full Code Here

        assertEquals(true, c.isEnabled());
    }

    public void testComponentTracksReadOnlyChanges() {
        multipleSelectionBinding();
        FieldMetadata state = fm.getFieldMetadata("listProperty");
        assertEquals(true, c.isEnabled());
        state.setReadOnly(true);
        assertEquals(false, c.isEnabled());
        state.setReadOnly(false);
        assertEquals(true, c.isEnabled());
    }
View Full Code Here

TOP

Related Classes of org.springframework.binding.form.FieldMetadata

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.