Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.XFSelectAttributes


     * @param context
     */
    public XFSelect1ElementImpl(XDIMEContextInternal context) {
        super(XFormElements.SELECT1, context);

        protocolAttributes = new XFSelectAttributes();
        protocolAttributes.setTagName("xfsiselect");   
        ((XFSelectAttributes)protocolAttributes).setMultiple(false);
    }
View Full Code Here


        // callCloseOnProtocol assumes that callOpenOnProtocol and
        // initialiseAttributes will have been called first, so duplicate this
        XDIMEContextInternal context = prepareForCallCloseOnProtocol();

        AbstractXFSelectElementImpl selector = getSelectElementImpl(context);
        XFSelectAttributes attributes =
                (XFSelectAttributes)selector.getProtocolAttributes();
        assertEquals(0, attributes.getOptions().size());
        assertNull(selector.initialValues);

        selector.callCloseOnProtocol(context);
    }
View Full Code Here

        // initialiseAttributes will have been called first, so duplicate this
        XDIMEContextInternal context = prepareForCallCloseOnProtocol();

        AbstractXFSelectElementImpl selector = getSelectElementImpl(context);
        assertFalse(cachingDirectives.isEnabled());
        XFSelectAttributes attributes =
                (XFSelectAttributes)selector.getProtocolAttributes();
        attributes.addOption(OPTION1);
        attributes.addOption(OPTION2);

        selector.initialValues = initialValues;
        assertEquals(initialValues, selector.initialValues);

        selector.callCloseOnProtocol(context);
View Full Code Here

        AbstractXFSelectElementImpl selector = getSelectElementImpl(context);
        assertEquals(null, selector.initialValues);

        selector.callCloseOnProtocol(context);

        XFSelectAttributes pattributes =
                (XFSelectAttributes)selector.getProtocolAttributes();
        assertEquals(expectedTagName, pattributes.getTagName());
        assertEquals(expectedMultiple, pattributes.isMultiple());
    }
View Full Code Here

        Object enclosing = pageContext.getCurrentElement();

        optiongroup.setStyles(pageContext.getStylingEngine().getStyles());

        if (enclosing instanceof XFSelectElementImpl) {
            XFSelectAttributes selectAttributes =
                    ((XFSelectElementImpl) enclosing).getProtocolAttributes();
            // Initialise the attributes specific to this field.
            selectAttributes.addOptionGroup(optiongroup);

        } else {
            SelectOptionGroup sfoga =
                    ((XFOptionGroupElementImpl) enclosing).getOptionGroup();
            sfoga.addSelectOptionGroup(optiongroup);
View Full Code Here

TOP

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

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.