Examples of MCSAttributes


Examples of com.volantis.mcs.protocols.MCSAttributes

                    (Attributes) papiAttributes.getGenericAttributes());

            setStyles(stylingEngine.getStyles());

            // annotate the MCSAttributes with the styles for this element
            MCSAttributes attributes = getMCSAttributes();
            if (attributes != null) {
                attributes.setStyles(stylingEngine.getStyles());
            }
        }

        return styleElementStart(context, papiAttributes);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.MCSAttributes

     */
    public XFSubmissionElementImpl(XDIMEContextInternal context) {
        super(UnstyledStrategy.STRATEGY, XFormElements.SUBMISSION, context);

        // Add some protocol attributes so that events are initialised.
        this.protocolAttributes = new MCSAttributes() {};

        // Add xfsubmission specific events.
        EVENTS.registerEvents(eventMapper);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.MCSAttributes

        MarinerPageContext pageContext
                = ContextInternals.getMarinerPageContext(context);

        AttrsAttributes attributes = (AttrsAttributes) papiAttributes;
        MCSAttributes pattributes = getMCSAttributes();

        // Copy the attributes into the protocol attributes class.
        pattributes.setId(attributes.getId());
        pattributes.setTitle(attributes.getTitle());

        // Initialise the event related attributes.
        PAPIInternals.initialiseGeneralEventAttributes(pageContext,
                attributes,
                pattributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.MCSAttributes

    public XFSetValueElementImpl(XDIMEContextInternal context,
                                 DataHandlingStrategy strategy) {
        super(XFormElements.SETVALUE, strategy, context);

        // Add some protocol attributes so that events are initialised.
        this.protocolAttributes = new MCSAttributes() {};

        // Add xfsetvalue specific events.
        EVENTS.registerEvents(eventMapper);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.MCSAttributes

        if (styles == null) {
            StylingEngine stylingEngine = getStylingEngine(context);
            stylingStrategy.startElement(stylingEngine, getNamespace(),
                    getTagName(), (Attributes) attributes);
            styles = stylingStrategy.getStyles(stylingEngine);
            MCSAttributes protocolAttributes = getProtocolAttributes();

            // the protocol attributes should only be null for elements that do not
            // cause markup to be generated e.g. XForms model elements
            if (protocolAttributes != null) {
                protocolAttributes.setStyles(styles);
            }
        }
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.MCSAttributes

            text = text + "tag='" + tag + "'";
        } else {
            text = text + "tag name not known, class=" + getClass();
        }

        MCSAttributes attributes = getProtocolAttributes();
        if (attributes != null) {
            String id = attributes.getId();
            if (id != null) {
                text = text + " id="+id;
            }
            String title = attributes.getTitle();
            if (title != null) {
                text = text + " title="+title;
            }
            LinkAssetReference href = attributes.getHref();
            if (href != null) {
                text = text + " href="+href.getURL();
            }
        }
        return text;
View Full Code Here

Examples of com.volantis.mcs.protocols.MCSAttributes

                skipped = true;
                return SKIP_ELEMENT_BODY;
            }

            paneInstance.setStyleClass(attributes.getStyleClass());
            MCSAttributes pAttributes = paneInstance.getAttributes();
            // get the styles for the current element and set it on the MCSAttributes
            pAttributes.setStyles(pageContext.getStylingEngine().getStyles());

            pageContext.pushContainerInstance(paneInstance);
        } else if (pageContext.getCurrentPane() == null) {
            // this element doesn't have a pane name specified and the pane stack is
            // empty. This is not allowed.
View Full Code Here

Examples of com.volantis.mcs.protocols.MCSAttributes

            if ((value = attributes.getLinkText()) != null) {
                 nextText = value;
            } else if ((value = pane.getNextShardLinkText()) != null ) {
                nextText = value;
            }
            MCSAttributes nextStyle = null;
            // todo XDIME-CP style dissection correctly.
            if (((value = pane.getNextShardLinkClass()) != null) &&
                !"".equals(value)){
//                attributes.setStyleClass(value);
                nextStyle = attributes;
            }

            // Set previous stuff - actual link not needed as NEXT/PREVIOUS used
            String prevText = null;
            if ((value = attributes.getBackLinkText()) != null) {
                prevText = value;
            } else if ((value = pane.getPreviousShardLinkText()) != null ) {
                prevText = value;
            }
            MCSAttributes prevStyle = null;
            // todo XDIME-CP style dissection correctly.
            if (((value = pane.getPreviousShardLinkClass()) != null) &&
                !"".equals(value)) {
//                attributes.setStyleClass(value);
                prevStyle = attributes;
            }

            // Now generate a bunch of markup where appropriate
            if (nextText != null) {
                dom.openElement(VDXMLConstants.DISSECT_NEXT_HELP);
                createHelpElement(dom, nextText, nextStyle);
                dom.closeElement(VDXMLConstants.DISSECT_NEXT_HELP);
            }
            if (prevText != null) {
                dom.openElement(VDXMLConstants.DISSECT_PREVIOUS_HELP);
                createHelpElement(dom, prevText, prevStyle);
                dom.closeElement(VDXMLConstants.DISSECT_PREVIOUS_HELP);
            }
            if (prevText != null || nextText != null) {
                dom.openElement(VDXMLConstants.DISSECT_PREVIOUS_NEXT_HELP);
                String message = "";
                MCSAttributes style = null;
                if (prevText != null) {
                    message += prevText;
                    if (prevStyle != null) {
                        style = prevStyle;
                    }
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.