Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.OutputBuffer.writeText()


        builder.setOverImageURL(new LiteralImageAssetReference("over.gif"));
        builder.endIcon();
        builder.startText();

        OutputBuffer buffer = new TestDOMOutputBuffer();
        buffer.writeText("text");

        builder.setText(buffer);
        builder.endText();
        builder.endLabel();
        builder.setHref(new LiteralLinkAssetReference("href.xml"));
View Full Code Here


        builder.setOverImageURL(new LiteralImageAssetReference("over.gif"));
        builder.endIcon();
        builder.startText();

        OutputBuffer buffer = new TestDOMOutputBuffer();
        buffer.writeText("text");

        builder.setText(buffer);
        builder.endText();
        builder.endLabel();
        builder.setHref(new LiteralLinkAssetReference("href.xml"));
View Full Code Here

                             NDimensionalIndex index) {

        PaneInstance paneInstance = (PaneInstance)
                deviceLayoutContext.getFormatInstance(pane, index);
        OutputBuffer buffer = paneInstance.getCurrentBuffer();
        buffer.writeText(theContent);
    }

    private class MyDeviceLayoutContext extends TestDeviceLayoutContext {

        // javadoc inherited.
View Full Code Here

    }

    public void testFragmentLinkTextForwardLinkBuffer() throws Exception {

        final OutputBuffer buffer = new DOMOutputBuffer();
        buffer.writeText("forwardLinkBuffer");
        fragmentInstance.setLinkToBuffer(buffer, 0);

        // forward check
        DOMOutputBuffer linkBuffer =
            (DOMOutputBuffer) writer.getLinkBuffer(fragmentMock, false);
View Full Code Here

    }

    public void testFragmentLinkTextBackwardLinkBuffer() throws Exception {

        final OutputBuffer buffer = new DOMOutputBuffer();
        buffer.writeText("backwardLinkBuffer");
        fragmentInstance.setLinkFromBuffer(buffer, 0);

        // forward check
        DOMOutputBuffer linkBuffer =
            (DOMOutputBuffer) writer.getLinkBuffer(fragmentMock, false);
View Full Code Here

    }

    public void testFragmentLinkTextBothLinksBuffer() throws Exception {

        OutputBuffer buffer = new DOMOutputBuffer();
        buffer.writeText("forwardLinkBuffer");
        fragmentInstance.setLinkToBuffer(buffer, 0);
        buffer = new DOMOutputBuffer();
        buffer.writeText("backwardLinkBuffer");
        fragmentInstance.setLinkFromBuffer(buffer, 0);
View Full Code Here

        OutputBuffer buffer = new DOMOutputBuffer();
        buffer.writeText("forwardLinkBuffer");
        fragmentInstance.setLinkToBuffer(buffer, 0);
        buffer = new DOMOutputBuffer();
        buffer.writeText("backwardLinkBuffer");
        fragmentInstance.setLinkFromBuffer(buffer, 0);

        // forward check
        DOMOutputBuffer linkBuffer =
            (DOMOutputBuffer) writer.getLinkBuffer(fragmentMock, false);
View Full Code Here

    }

    public void testFragmentLinkTextBothLinksBufferAndText() throws Exception {

        OutputBuffer buffer = new DOMOutputBuffer();
        buffer.writeText("forwardLinkBuffer");
        fragmentInstance.setLinkToBuffer(buffer, 0);
        fragmentInstance.setLinkToText("forwardLinkText");
        buffer = new DOMOutputBuffer();
        buffer.writeText("backwardLinkBuffer");
        fragmentInstance.setLinkFromBuffer(buffer, 0);
View Full Code Here

        OutputBuffer buffer = new DOMOutputBuffer();
        buffer.writeText("forwardLinkBuffer");
        fragmentInstance.setLinkToBuffer(buffer, 0);
        fragmentInstance.setLinkToText("forwardLinkText");
        buffer = new DOMOutputBuffer();
        buffer.writeText("backwardLinkBuffer");
        fragmentInstance.setLinkFromBuffer(buffer, 0);
        fragmentInstance.setLinkFromText("backwardLinkText");

        // forward check
        DOMOutputBuffer linkBuffer =
View Full Code Here

    }

    public void testFragmentLinkTextPriority1() throws Exception {

        OutputBuffer buffer = new DOMOutputBuffer();
        buffer.writeText("forwardLinkBuffer0");
        fragmentInstance.setLinkToBuffer(buffer, 0);
        buffer = new DOMOutputBuffer();
        buffer.writeText("forwardLinkBuffer1");
        fragmentInstance.setLinkToBuffer(buffer, 1);
        fragmentInstance.setLinkToText("forwardLinkText");
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.