Examples of OutputBuffer


Examples of com.volantis.mcs.protocols.OutputBuffer

     * @throws IllegalStateException If the OutputBuffer on the top of the stack
     * does not match the expected outputBuffer if specified.
     */
    public void popOutputBuffer(OutputBuffer expectedOutputBuffer) {

        OutputBuffer outputBuffer = (OutputBuffer) outputBufferStack.pop();
        if (expectedOutputBuffer != null && expectedOutputBuffer != outputBuffer) {
            throw new IllegalStateException("OUTPUT BUFFER STACK:"
                    + " Expected " + expectedOutputBuffer
                    + " popped " + outputBuffer);
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.OutputBuffer

     * PAPI: Get the current outputBuffer from the top of the stack.
     * @return The OutputBuffer which is on the top of the stack.
     */
    public OutputBuffer getCurrentOutputBuffer() {

        OutputBuffer currentOutputBuffer;
        OutputBuffer topOutputBuffer;

        if (outputBufferStack == null || outputBufferStack.isEmpty()) {
            topOutputBuffer = null;
            currentOutputBuffer = null;
        } else {
            topOutputBuffer = (OutputBuffer) outputBufferStack.peek();

            // The OutputBuffer on the stack could be a simple one, or a
            // compound one. If it is a compound one then we need to return
            // its current buffer.
            currentOutputBuffer = topOutputBuffer.getCurrentBuffer();
        }

        if (logger.isDebugEnabled()) {
            if (currentOutputBuffer == topOutputBuffer) {
                logger.debug("OUTPUT BUFFER STACK: Current " + currentOutputBuffer);
View Full Code Here

Examples of com.volantis.mcs.protocols.OutputBuffer

                    FormAttributes attributes = factory.createFormAttributes();
                    attributes.setForm(form);

                    module.writeOpenForm(attributes);

                    OutputBuffer buffer =
                            formInstance.getPreambleBuffer(false);
                    if (buffer != null) {
                        module.writeFormPreamble(buffer);
                    }
View Full Code Here

Examples of com.volantis.mcs.protocols.OutputBuffer

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

Examples of com.volantis.mcs.protocols.OutputBuffer

        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.
                    ColumnIteratorPaneAttributes paneElementAttributes =
                            new ColumnIteratorPaneAttributes();
View Full Code Here

Examples of com.volantis.mcs.protocols.OutputBuffer

       
        // 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.protocols.OutputBuffer

       
        // Pop the anonymous region buffer that was pushed on at the
        // end of the doElementStart() method.
        pageContext.popContainerInstance(anonymousRegionInstance);     

        OutputBuffer anonymousBuffer =
                anonymousRegionInstance.getCurrentBuffer();
        pageContext.popOutputBuffer(anonymousBuffer);
       
        DeviceLayoutContext layoutToPop = pageContext.getDeviceLayoutContext();       
       
View Full Code Here

Examples of com.volantis.mcs.protocols.OutputBuffer

        menuBuffer = (MenuBuffer) menuBuffers.get(formatReference);

        if (menuBuffer == null) {
            // Determine the output buffer needed for the given format
            // reference (both of which could be null)
            OutputBuffer buffer = getOutputBuffer(formatReference);

            // If the output buffer is null, the specified pane doesn't
            // exist and the content will therefore be ignored
            if (buffer != null) {
                // Construct the required buffer
View Full Code Here

Examples of com.volantis.mcs.protocols.OutputBuffer

     */
    protected String getAltText(MenuItem item) {
        String altText = null;
        if (provideAltText) {
            MenuText menuText = item.getLabel().getText();
            OutputBuffer text = menuText.getText();
            altText = text.stringValue();
        }
        return altText;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.OutputBuffer

                shortcut.getText(TextEncoding.PLAIN));
        domOutput.appendEncoded(shortcutText);
        // Then a space
        domOutput.appendEncoded(" ");
        // And finally the text of the menu itself.
        final OutputBuffer text = item.getLabel().getText().getText();
        domOutput.transferContentsFrom(text);
    }
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.