Package com.volantis.mcs.protocols.menu.shared.renderer

Examples of com.volantis.mcs.protocols.menu.shared.renderer.MenuBuffer


    /**
     * Tests that the OutputBuffer contained within the MenuBuffer is not null.
     */
    public void testNotNullOutputBuffer() {
        MenuBuffer buffer = createMenuBuffer(createOutputBuffer());
        assertNotNull("MenuBuffer must not be null", buffer);

        assertNotNull("OutputBuffer must not be null", buffer.getOutputBuffer());
    }
View Full Code Here


     */
    public void testOutputBufferSame() {
        OutputBuffer outputBuffer = createOutputBuffer();
        assertNotNull(outputBuffer);

        MenuBuffer buffer = createMenuBuffer(outputBuffer);
        assertNotNull(buffer);

        assertSame("OutputBuffer returned not same as that supplied",
                   outputBuffer, buffer.getOutputBuffer());
    }
View Full Code Here

    // Javadoc inherited.
    public void render(Menu menu)
            throws RendererException {

        MenuBuffer menuBuffer = menuBufferLocator.getMenuBuffer(menu);
        DOMOutputBuffer buffer = (DOMOutputBuffer) menuBuffer.getOutputBuffer();

        // Downcast to the shard link specific menu so we can extract the
        // shard link group attributes we prepared earlier.
        ShardLinkMenu shardLinkMenu = (ShardLinkMenu) menu;
View Full Code Here

            public void rendererVisit(Menu menu) throws RendererException {
                // For menus, we render only the root menu.
                if (menu.getContainer() == null) {
                    // process the root menu

                    MenuBuffer menuBuffer = locator.getMenuBuffer(menu);
                    DOMOutputBuffer buffer
                            = (DOMOutputBuffer) menuBuffer.getOutputBuffer();

                    // Open a paragraph for the select to go in.
                    // According to openwave style guide this should be nowrap.
                    // todo: only set whitespace if it was not specified by user
                    // currently we cannot tell, fix when VBM:2005092701 is fixed
View Full Code Here

            // Get the underlying menu buffer locator.
            MenuBufferLocator bufferLocator
                    = bufferLocatorFactory.createMenuBufferLocator(
                            bufferFactory);

            MenuBuffer buffer = bufferLocator.getMenuBuffer(menu);

            SingleMenuBufferLocator atomicLocator
                    = new SingleMenuBufferLocator(buffer);

            // Numeric shortcuts were specified so return an Openwave renderer
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.menu.shared.renderer.MenuBuffer

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.