Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.OutputBufferStack


        RegionInstance instance =
                (RegionInstance) dlContext.getFormatInstance(region,
                NDimensionalIndex.ZERO_DIMENSIONS);
        RegionContent content = new RegionContent() {
            public void render(FormatRendererContext ctx) {
                OutputBufferStack outputBufferStack = ctx.getOutputBufferStack();
                DOMOutputBuffer buffer = (DOMOutputBuffer)
                        outputBufferStack.getCurrentOutputBuffer();
                buffer.openElement(buffer.allocateElement("regionContent"));
                buffer.closeElement("regionContent");
            }
        };
        RegionContent content2 = new RegionContent() {
            public void render(FormatRendererContext ctx) {
                OutputBufferStack outputBufferStack = ctx.getOutputBufferStack();
                DOMOutputBuffer buffer = (DOMOutputBuffer)
                        outputBufferStack.getCurrentOutputBuffer();
                buffer.openElement(buffer.allocateElement("regionContent2"));
                buffer.closeElement("regionContent2");
            }
        };
        instance.addRegionContent(content);
View Full Code Here


                (RegionInstance) dlContext.getFormatInstance(region,
                NDimensionalIndex.ZERO_DIMENSIONS);

        RegionContent content = new RegionContent() {
            public void render(FormatRendererContext ctx) {
                OutputBufferStack outputBufferStack = ctx.getOutputBufferStack();
                DOMOutputBuffer buffer = (DOMOutputBuffer)
                        outputBufferStack.getCurrentOutputBuffer();
                buffer.openElement(buffer.allocateElement("regionContent"));
                buffer.closeElement("regionContent");
            }
        };
View Full Code Here

        this.containsNestedContent = containsNestedContent;
    }

    // Javadoc inherited.
    public void render(final FormatRendererContext context) {
        OutputBufferStack outputBufferStack = context.getOutputBufferStack();
        DOMOutputBuffer currentBuffer = (DOMOutputBuffer)
                outputBufferStack.getCurrentOutputBuffer();

        // Get the contents from the region buffer and add them into the
        // current buffer.
        NodeSequence nodes = outputBuffer.removeContents();
        currentBuffer.addNodeSequence(nodes);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.context.OutputBufferStack

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.