Examples of PaneAttributes


Examples of com.volantis.mcs.protocols.PaneAttributes

                "</td>");
    }

    // javadoc inherited.
    public void testUseEnclosingTableCell() throws Exception {
        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());

        doTestUseEnclosingTableCell(attributes, "<td/>");
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        TestDeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        context.pushDeviceLayoutContext(deviceContext);

        DOMOutputBuffer dom = new DOMOutputBuffer();
        dom.initialise();
        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());
        Pane pane = new Pane(new CanvasLayout());
        attributes.setPane(pane);

        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        dom.openStyledElement("body", attributes);
        dom.openElement("table");
        dom.openElement("tr");
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        TestDeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        context.pushDeviceLayoutContext(deviceContext);

        DOMOutputBuffer dom = new DOMOutputBuffer();
        dom.initialise();
        PaneAttributes attributes = new PaneAttributes();
        Pane pane = new Pane(null);
        attributes.setPane(pane);

        final Element expected;
        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        dom.openStyledElement("body", attributes);
        dom.openElement("table");
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        }
        return metaData;
    }

    private PaneInstanceMock getPaneInstance() {
        final PaneAttributes protocolPaneAttributes = new PaneAttributes();

        final PaneInstanceMock paneInstance = new PaneInstanceMock(
            "mockPaneInstance", expectations,
            NDimensionalIndex.ZERO_DIMENSIONS);
        paneInstance.expects.ignore().returns(false).any();
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

     * ) for the com.volantis.mcs.protocols.VolantisProtocol class.
     * <p>
     * NOTE: Close method removed
     */
    public void testWriteOpenPane() throws Exception {
        final PaneAttributes attributes =
                (PaneAttributes) ProtocolIntegrationTestHelper.
                provideAttributes(PaneAttributes.class);

        final VolantisProtocol protocol = getProtocol();

        MethodInvoker invoker = new MethodInvoker() {
            public void invoke() throws Exception {

                attributes.setPane(new Pane(new CanvasLayout()));
                protocol.writeOpenPane(attributes);
                protocol.writeClosePane(attributes);
            }
        };
        String expecting = getExpectedWriteOpenPaneResult();
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        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());
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

            throws IOException, ProtocolException {

        Pane pane = (Pane) abstractPaneInstance.getFormat();

        // Get the attributes.
        PaneAttributes attributes = abstractPaneInstance.getAttributes();
        attributes.setPane(pane);
        attributes.setFormat(pane.getParent());

        // Get the module.
        LayoutModule module = context.getLayoutModule();

        module.writeOpenPane(attributes);

        if (logger.isDebugEnabled()) {
            logger.debug("Pane.writeOutput() for " + pane.getName());
        }

        // Write out the contents of the content buffer
        OutputBuffer contentBuffer =
                abstractPaneInstance.getCurrentBuffer(false);

        // Write out the contents of this buffer, trim off any leading
        // or trailing white space.
        if (contentBuffer != null) {
            module.writePaneContents(contentBuffer);
        }

        // Write out our pane postamble
        attributes.setFormat(pane.getParent());
        module.writeClosePane(attributes);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

            if (!instance.isEmpty()) {
                Pane pane = (Pane) instance.getFormat();
                AbstractPaneInstance paneInstance = (AbstractPaneInstance) instance;

                // Initialise the attributes.
                PaneAttributes attributes = paneInstance.getAttributes();

                // Style the format.
                String styleClass = paneInstance.getStyleClass();
                FormatStylingEngine formatStylingEngine =
                        context.getFormatStylingEngine();
                Styles formatStyles = formatStylingEngine.startStyleable(
                        pane, styleClass);
                attributes.setStyles(formatStyles);
                attributes.setPane(pane);

                renderPaneInstance(context, paneInstance);

                // Finished styling the pane and its contents.
                formatStylingEngine.endStyleable(pane);
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        return requestContextMock;
    }

    private PaneInstanceMock getPaneInstance() {
        final PaneAttributes protocolPaneAttributes = new PaneAttributes();

        final PaneInstanceMock paneInstance = new PaneInstanceMock(
            "mockPaneInstance", expectations,
            NDimensionalIndex.ZERO_DIMENSIONS);
        paneInstance.expects.ignore().returns(false).any();
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        IteratorPaneInstance paneInstanceMock = (IteratorPaneInstance)
                paneInstanceMockExpects._getMock();

        PaneAttributesMock.Expects paneAttributesMockExpects =
                createPaneAttributeExpects();
        final PaneAttributes paneAttributesMock = (PaneAttributes)
                paneAttributesMockExpects._getMock();

        final OutputBufferMock buffer1 = new OutputBufferMock(
                "buffer1", expectations);
        final OutputBufferMock buffer2 = new OutputBufferMock(
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.