Examples of XFormModel


Examples of com.volantis.mcs.xdime.xforms.model.XFormModel

                (StylableXDIMEElement)context.getCurrentElement();

        if (labelParent instanceof XFGroupElementImpl) {
            // this is the label for a group - needs to be added the model even
            // if the model is inactive at the moment.
            XFormModel model = context.getXFormBuilder().getCurrentModel();
            if (model != null) {
                final String labelText = getCharacterData();
                if (LOGGER.isDebugEnabled()) {
                    LOGGER.debug("XForms group label: " + labelText);
                }
                model.setGroupLabel(labelText);
                content.clear();
            }
        }
    }
View Full Code Here

Examples of com.volantis.mcs.xdime.xforms.model.XFormModel

    // Javadoc inherited.
    protected void callCloseOnProtocol(XDIMEContextInternal context)
            throws XDIMEException {
        // The parent should write out any label content unless the model is
        // inactive or null, or the label applies to a group element.
        final XFormModel currentModel =
                context.getXFormBuilder().getCurrentModel();
        if (!(parent instanceof XFGroupElementImpl ||
                currentModel == null || !currentModel.isActive())) {

            if (parent instanceof XFormsControlElement ||
                    parent instanceof XFItemElementImpl) {
                // retrieve the parent's attributes... because this is the
                // label for a control or item.
View Full Code Here

Examples of com.volantis.mcs.xdime.xforms.model.XFormModel

        setNameAttribute(attributes);

        final XFormBuilder builder = context.getXFormBuilder();

        // determine the model that this control should appear in
        XFormModel model = builder.registerControl(attributes);
        pattributes.setContainingXFFormName(model.getID());

        setInitialValue(builder, ref, modelID);

        // populate the field descriptor

        fieldDescriptor.setType(getFieldType());
        // Add a reference to the field descriptor into the attributes.
        pattributes.setFieldDescriptor(fieldDescriptor);
        // Add a reference to the (incomplete) form data into the attributes.
        pattributes.setFormAttributes(model.getXFFormAttributes());
        pattributes.setFormData(model.getFormData());

        // do any element specific initialisation
        initialiseElementSpecificAttributes(context, attributes);
    }
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.