Examples of DissectingPaneInstance


Examples of com.volantis.mcs.protocols.layouts.DissectingPaneInstance

        RuntimeDeviceLayout runtimeDeviceLayout =
                RuntimeDeviceLayoutTestHelper.activate(canvasLayout);

        pageContext.setDeviceLayout(runtimeDeviceLayout);
        pageContext.setCurrentPane(pane);
        DissectingPaneInstance paneInstance = new DissectingPaneInstance(
                NDimensionalIndex.ZERO_DIMENSIONS) {
            protected boolean isEmptyImpl(NDimensionalIndex index)
            {
                return false;
            }
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.DissectingPaneInstance

        if (pane instanceof com.volantis.mcs.layouts.DissectingPane) {

            // Then grab it's associated dissecting pane layout instance.
            com.volantis.mcs.layouts.DissectingPane dissPane =
                    (com.volantis.mcs.layouts.DissectingPane) pane;
            DissectingPaneInstance dissectingInstance = (DissectingPaneInstance)
                    pageContext.getDeviceLayoutContext().getFormatInstance(
                            dissPane, NDimensionalIndex.ZERO_DIMENSIONS);

            // Check the context for an existing instance of the PAPI version
            // of the dissecting pane.
            papiPane = dissectingInstance.getDissectingPane();

            // If it wasn't already there,
            if (papiPane == null) {

                // Create a PAPI version of the pane from the context now.
                papiPane = PAPIInternals.createDissectingPane(dissectingInstance);

                // And save it for later reference.
                dissectingInstance.setDissectingPane(papiPane);
            }
            // Now we have an instance of the PAPI dissecting pane to return...
        }

        // Return the PAPI dissecting pane we found, if any.
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.DissectingPaneInstance

        }

        // Javadoc inherited from super class.
        public boolean visit(DissectingPane format, Object object) {

            FormatInstance formatInstance = new DissectingPaneInstance(index);
            initialiseFormatInstance(formatInstance, format);

            // Initialise the context with appropriate values from it's format.
            DissectingPaneInstance dissectingInstance =
                    (DissectingPaneInstance) formatInstance;
            dissectingInstance.setLinkToText(
                    format.getNextShardLinkText());
            dissectingInstance.setLinkFromText(
                    format.getPreviousShardLinkText());

            // Only visit the topmost format.
            return true;
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.DissectingPaneInstance

            AbstractPaneInstance abstractPaneInstance)
            throws IOException, ProtocolException {

        DissectingPane pane = (DissectingPane) abstractPaneInstance.getFormat();
        String inclusionPath = context.getInclusionPath();
        DissectingPaneInstance paneInstance = (DissectingPaneInstance)
                abstractPaneInstance;

        // Initialise the attributes.
        DissectingPaneAttributes attributes =
                factory.createDissectingPaneAttributes();

        // Copy the tagname and style class from the old attributes
        // Dont just throw them away.
        PaneAttributes oldattr = paneInstance.getAttributes();
        attributes.setStyles(oldattr.getStyles());

        attributes.setInclusionPath(inclusionPath);
        attributes.setDissectingPane(pane);
        attributes.setIsNextLinkFirst(pane.isNextLinkFirst());
        attributes.setLinkText(paneInstance.getLinkToText());
        attributes.setBackLinkText(paneInstance.getLinkFromText());

        // If the output is going to be dissected then write a protocol
        // specific marker in the text which the protocol parser will
        // recognise.
        LayoutModule module = context.getLayoutModule();
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.