Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.XFTextInputAttributes


        // =====================================================================
        TextInputFormatScriptGenerator generator =
                new TextInputFormatScriptGenerator(resolverMock,
                        new TextInputFormatParser(false));

        XFTextInputAttributes attributes = new XFTextInputAttributes();
        attributes.setName("abc");
        attributes.setErrmsg(new LiteralTextAssetReference("error message"));
        attributes.setCaption(new LiteralTextAssetReference("caption"));
        attributes.setStyles(StylesBuilder.getSparseStyles(
                "mcs-input-format: \"M:M\""));

        StringBuffer buffer = new StringBuffer();
        generator.writeJavaScriptValidation(attributes, buffer);
        assertEquals("if(!(new RegEx(\"Z\",form.abc.value).match())) {\n" +
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.XFTextInputAttributes

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.