Examples of pushContainerInstance()


Examples of com.volantis.mcs.context.MarinerPageContext.pushContainerInstance()

        // Add a reference to the field descriptor into the attributes.
        pattributes.setFieldDescriptor(fieldDescriptor);
        // Add the attributes to the list.
        formAttributes.addField(pattributes);

        pageContext.pushContainerInstance(paneInstance);
        pageContext.pushOutputBuffer(buffer);

        return PROCESS_ELEMENT_BODY;
    }
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContext.pushContainerInstance()

        if (regionInstance.ignore()) {
            skipped = true;
            return SKIP_ELEMENT_BODY;
        }

        pageContext.pushContainerInstance(regionInstance);

        // Fake an open element so that whitespace is handled normally since we
        // have no element to represent pane at the moment.
        pageContext.getCurrentOutputBuffer()
                .handleOpenElementWhitespace();
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContext.pushContainerInstance()

            if (paneInstance.ignore()) {
                skipped = true;
                return SKIP_ELEMENT_BODY;
            }

            pageContext.pushContainerInstance(paneInstance);
        } else if (pageContext.getCurrentPane() == null) {
            if (pageContext.getEnclosingRegionInstance() == null) {
                // this element doesn't have a pane specified and the pane and
                // region stacks are empty. This is not allowed.
                throw new PAPIException(
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContext.pushContainerInstance()

        MarinerPageContext pageContext = getPageContext(context);
       
        // creating anonymous region instance
        // and pushing it into buffer
        anonymousRegionInstance = createAnonymousRegion(pageContext);   
        pageContext.pushContainerInstance(anonymousRegionInstance);
        OutputBuffer outputBuffer =
          anonymousRegionInstance.getCurrentBuffer();
        pageContext.pushOutputBuffer(outputBuffer);
       
        return super.doElementStart(context, attributes);
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContext.pushContainerInstance()

        if (paneInstance.ignore()) {
            skipped = true;
            return SKIP_ELEMENT_BODY;
        }

      pageContext.pushContainerInstance (paneInstance);
    }

    // The super class will handle initialising the protocol attributes and
    // calling the protocol.
    return super.elementStart (context, papiAttributes);
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContext.pushContainerInstance()

            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.
            throw new PAPIException(
                    exceptionLocalizer.format("pane-name-not-found"));
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContext.pushContainerInstance()

        MarinerPageContext pageContext =
                ContextInternals.getMarinerPageContext(
                        context.getInitialRequestContext());

        if (containerInstance != null) {
            pageContext.pushContainerInstance(containerInstance);
        }

        if (layoutContext != null) {
            pageContext.pushDeviceLayoutContext(layoutContext);
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContext.pushContainerInstance()

                    if (paneInstance.ignore()) {
                        skipped = true;
                        return SKIP_ELEMENT_BODY;
                    }

                    pageContext.pushContainerInstance(paneInstance);
                } else {
                    // The target attribute is "pane" and the pane attibribute
                    // invalid. This is not allowed.
                    throw new PAPIException(
                            exceptionLocalizer.format("pane-name-required"));
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContext.pushContainerInstance()

        tabsTableElem.setAttribute("cellspacing", "0");
        setElementLocked(protocol, tabsTableElem);

        // set layout on stack for widget:tab's contents
        MarinerPageContext pageContext = context.getPageContext();
        pageContext.pushContainerInstance(getContentsRegionInstance());
    }

    // javadoc inherited
    public void renderTabsClose(VolantisProtocol protocol,
            MCSAttributes attributes) throws ProtocolException {
View Full Code Here

Examples of com.volantis.mcs.context.TestMarinerPageContext.pushContainerInstance()

        // Need to setup a region instance for testing inclusions
        RegionInstance regionInstance =
                new RegionInstance(new NDimensionalIndex(new int[1]));
        regionInstance.setDeviceLayoutContext(deviceLayoutContext);

        pageContext.pushContainerInstance(regionInstance);
    }

    /**
     * Run the test.
     */
 
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.