Examples of XFSelectAttributes


Examples of com.volantis.mcs.protocols.XFSelectAttributes

            pattributes.setSelected(isSelected);
        }

        Object enclosing = pageContext.getCurrentElement();
        if (enclosing instanceof XFSelectElementImpl) {
            XFSelectAttributes selectAttributes =
                    ((XFSelectElementImpl) enclosing).getProtocolAttributes();
            selectAttributes.addOption(pattributes);
        } else {
            SelectOptionGroup sfoga =
                    ((XFOptionGroupElementImpl) enclosing).getOptionGroup();
            sfoga.addSelectOption(pattributes);
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.XFSelectAttributes

     * @param context
     */
    public XFSelectElementImpl(XDIMEContextInternal context) {
        super(XFormElements.SELECT, context);

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

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

Examples of com.volantis.mcs.protocols.XFSelectAttributes

        // 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

Examples of com.volantis.mcs.protocols.XFSelectAttributes

        // 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

Examples of com.volantis.mcs.protocols.XFSelectAttributes

        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

Examples of com.volantis.mcs.protocols.XFSelectAttributes

        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
Copyright © 2018 www.massapi.com. 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.