Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.RowIteratorPaneAttributes


            final String expectedUnstyledAttributes,
            final String expectedStyledAttributes)
            throws Exception {

        doAddPaneAttributesTest(
                new RowIteratorPaneAttributes(),
                new InvokeElementAttributesMethod() {
                    public void invoke(Element element,
                                       MCSAttributes attributes) {

                        RowIteratorPaneAttributes iteratorPaneAttributes =
                                (RowIteratorPaneAttributes) attributes;

                        // Assign an optimization level
                        iteratorPaneAttributes.getPane().setOptimizationLevel(
                                FormatConstants.OPTIMIZATION_LEVEL_VALUE_LITTLE_IMPACT);

                        protocol.addRowIteratorPaneAttributes(
                                element, iteratorPaneAttributes);
                    }
View Full Code Here


                abstractPaneInstance.getFormat();
        RowIteratorPaneInstance paneInstance = (RowIteratorPaneInstance)
                abstractPaneInstance;

        // Get the attributes.
        RowIteratorPaneAttributes attributes = (RowIteratorPaneAttributes)
                paneInstance.getAttributes();

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

        // Write out our pane preamble
        module.writeOpenRowIteratorPane(attributes);

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

        // Concatenate together the entire contents of all of the
        // content buffers
        Iterator itr = paneInstance.getBufferIterator();
        while (itr.hasNext()) {
            Object o = itr.next();
            if (o instanceof OutputBuffer) {
                OutputBuffer contentBuffer = (OutputBuffer) o;

                if (!contentBuffer.isEmpty()) {
                    // Copy the attributes because the rendering process
                    // destroys the styles.
                    RowIteratorPaneAttributes paneElementAttributes =
                            new RowIteratorPaneAttributes();
                    paneElementAttributes.copy(attributes);

                    // Write out the element preamble
                    module.writeOpenRowIteratorPaneElement(
                            paneElementAttributes);
View Full Code Here

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

        attributes.setPane(new Pane(new CanvasLayout()));
        final VolantisProtocol protocol = getProtocol();

        MethodInvoker invoker = new MethodInvoker() {
            public void invoke() throws Exception {
                protocol.writeOpenRowIteratorPane(attributes);
View Full Code Here

    /**
     * This method tests the method public void writeOpenRowIteratorPaneElement ( RowIteratorPaneAttributes )
     * for the com.volantis.mcs.protocols.VolantisProtocol class.
     */
    public void testWriteOpenRowIteratorPaneElement() throws Exception {
        final RowIteratorPaneAttributes attributes =
                (RowIteratorPaneAttributes) ProtocolIntegrationTestHelper.
                provideAttributes(RowIteratorPaneAttributes.class);

        final VolantisProtocol protocol = getProtocol();

View Full Code Here

    /**
     * Create a new <code>RowIteratorPaneInstance</code>.
     */
    public RowIteratorPaneInstance(NDimensionalIndex index) {
        super(index);
        attributes = new RowIteratorPaneAttributes();
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.RowIteratorPaneAttributes

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.