Package com.volantis.mcs.protocols

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


    }

    protected MenuText createMenuText() {
        ConcreteMenuText text = new ConcreteMenuText(new ElementDetailsStub());
        DOMOutputBuffer textBuffer = new TestDOMOutputBuffer();
        textBuffer.writeText("[text]");
        text.setText(textBuffer);
        return text;
    }
}
View Full Code Here


        // Create the text in a label (both with no style info).
        DOMOutputBuffer output = (DOMOutputBuffer)
                outputBufferFactory.createOutputBuffer();
        ConcreteMenuText text = new ConcreteMenuText(null);
        output.writeText(content);
        text.setText(output);
        MenuLabel label = new ConcreteMenuLabel(null, text);

        // Create the shard link attributes
        ShardLinkAttributes shardLinkAttrs = new ShardLinkAttributes();
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

                            // work-around for an actual bug in whitespace
                            // handling in the output buffers, but that isn't
                            // clear at the moment).
                            domBuffer.setElementIsPreFormatted(true);

                            domBuffer.writeText(shortcutTextValue);

                            inserter.insertPreservingExistingContent(
                                    domBuffer.getCurrentElement(),
                                    shortcutProps.getSeparatorStyleValue());
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.