Package com.volantis.mcs.papi

Examples of com.volantis.mcs.papi.PaneAttributes


            ba.setStyleClass(params[0]);
        }

        // If we are opening a Pane param[1] will be the name
        if (attributes instanceof PaneAttributes && params.length >= 2) {
            PaneAttributes pa = (PaneAttributes)attributes;
            pa.setName(params[1]);
        }

        // If its a Canvas then param[1] will be the page title,
        // param[2] the theme file name
        // param[3] the layout file name and
View Full Code Here


        assertNotNull("Unknown element name, pane check testcase.",
            factory);

        PAPIElement element = factory.createPAPIElement();
        PaneAttributes attributes = (PaneAttributes)
                factory.createElementSpecificAttributes();

        attributes.setName("pane");

        // Process start element, this is the thing which does
        // the work.
        int result = element.elementStart(getCurrentRequestContext(), attributes);
View Full Code Here

    protected void openPane() throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory("pane");

        paneElement = factory.createPAPIElement();
        PaneAttributes attributes =
            (PaneAttributes)factory.createElementSpecificAttributes();

        attributes.setName("pane");

        paneElement.elementStart(getCurrentRequestContext(), attributes);

    }
View Full Code Here

            throws PAPIException {

        MarinerPageContext pageContext
                = ContextInternals.getMarinerPageContext(context);

        PaneAttributes attributes = (PaneAttributes) papiAttributes;

        // Try and find the pane with the specified name, if it could not be
        // found then return and skip the element body.
        String paneName = attributes.getName();
        if (paneName != null) {

            FormatReference formatRef =
                    FormatReferenceParser.parsePane(paneName, pageContext);
            Pane pane = pageContext.getPane(formatRef.getStem());
            NDimensionalIndex paneIndex = formatRef.getIndex();

            if (pane == null) {
                skipped = true;
                return SKIP_ELEMENT_BODY;
            }

            paneInstance = (AbstractPaneInstance)
                    pageContext.getFormatInstance(pane, paneIndex);
            if (paneInstance.ignore()) {
                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);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.papi.PaneAttributes

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.