Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.OutputBuffer


            dom.appendEncoded(
                AccesskeyConstants.DUMMY_ACCESSKEY_VALUE_STRING + " ");
        }

        // Write out the menu text as the content of the link.
        OutputBuffer text = attributes.getLinkText();
        dom.addOutputBuffer((DOMOutputBuffer) text);

        // Close the anchor element.
        dom.closeElement(anchor);
       
View Full Code Here


    // javadoc inherited
    protected OutputBuffer getNativeMarkupOutputBuffer(
        NativeMarkupAttributes attributes) throws ProtocolException {
        String target = attributes.getTargetLocation();

        OutputBuffer buffer = null;

        if (NativeMarkupAttributes.WML_DECK_HEAD.equals(target)) {
            if (logger.isDebugEnabled()) {
                logger.debug("native markup goes in wml.deck.head");
            }
View Full Code Here

     */
    protected OutputBuffer getNativeMarkupOutputBuffer(
        NativeMarkupAttributes attributes) throws ProtocolException {
        String target = attributes.getTargetLocation();

        OutputBuffer buffer = null;

        if (NativeMarkupAttributes.VDXML_HEAD.equals(target)) {
            if (logger.isDebugEnabled()) {
                logger.debug("nativemarkup goes in head element");
            }
View Full Code Here

    }

    protected SeparatorManager createSeparatorManager(
            SeparatorArbitrator arbitrator) {

        OutputBuffer buffer = createOutputBuffer();

        // Neither the orientation separator, or manager is affected by the
        // tests in the parent test case.
        SeparatorRendererMock mockSeparator = new SeparatorRendererMock(
                "separator", sharedExpectations);
View Full Code Here

     * if we have a new logical buffer index via {@link #endCurrentBuffer},
     * then create a new buffer, add it to the list and then return that.
     */
    public OutputBuffer getCurrentBuffer() {

        OutputBuffer outputBuffer = null;
        if (buffers.size() <= currentIndex) {
            if (logger.isDebugEnabled()) {
                logger.debug("Created new output buffer at " +
                        index + ":" + currentIndex);
            }
            outputBuffer = context.allocateOutputBuffer();
            outputBuffer.setTrim(true);
            buffers.add(outputBuffer);
        } else {
            outputBuffer = (OutputBuffer) buffers.get(currentIndex);
        }
        return outputBuffer;
View Full Code Here

        boolean empty = true;

        // check if we have a non-empty buffer
        for (Iterator iter = buffers.iterator(); iter.hasNext() && empty;) {
            OutputBuffer buffer = (OutputBuffer) iter.next();
            empty = buffer.isEmpty();
        }

        return empty;
    }
View Full Code Here

    }
   
    // Javadoc inherited from super class.
    protected boolean isEmptyImpl() {
       
        OutputBuffer ob = getCurrentBuffer(false);
        if(ob!=null) {
            return ob.isEmpty();
        }
        return true;
    }
View Full Code Here

     */
    protected OutputBuffer getNativeMarkupOutputBuffer(
        NativeMarkupAttributes attributes) throws ProtocolException {
        String target = attributes.getTargetLocation();

        OutputBuffer buffer = null;

        if (NativeMarkupAttributes.HTML_HEAD.equals(target)) {
            if (logger.isDebugEnabled()) {
                logger.debug("nativemarkup goes in head element");
            }
View Full Code Here

TOP

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

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.