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

Examples of com.volantis.mcs.protocols.menu.renderer.MenuRenderer.render()


        // Make sure that it is of the appropriate type.
        assertTrue("Incorrect renderer returned: " + renderer,
                   renderer instanceof OpenwaveMenuRenderer);

        // Render the menu.
        renderer.render(menu);

        // Check the markup output.
        String expected
                = "<BLOCK style='mcs-menu-link-style: numeric-shortcut; white-space: nowrap'>"
                + "<select>"
View Full Code Here


                        shortcutProperties.setActive(true);
                    }
                }

                // Process the menu
                renderer.render(menu);
            }
        } catch (BuilderException be) {
            logger.error("menu-building-error", be);
            throw new PAPIException(
                    exceptionLocalizer.format("menu-building-error"), be);
View Full Code Here

            // Render the sub-menu in a separate renderer
            MenuRenderer renderer = rendererSelector.
                    selectMenuRenderer(menu);

            renderer.render(menu);

            // Sub-menus' content should not be visited here since they
            // are processed separately above

        }
View Full Code Here

            ShardLinkMenu menu = builder.buildShardLinkMenuModel(attributes);

            // Render the shard link menu.
            MenuRenderer menuRenderer = getShardLinkMenuModule().
                getMenuRendererSelector().selectMenuRenderer(menu);
            menuRenderer.render(menu);
        } catch (RendererException e) {
            throw new ProtocolException(e.getMessage(), e);
        }

        context.popOutputBuffer(dom);
View Full Code Here

                    ShardLinkMenu menu = builder.buildShardLinkMenuModel(attributes);

                    // Render the shard link menu.
                    MenuRenderer menuRenderer = getShardLinkMenuModule().
                            getMenuRendererSelector().selectMenuRenderer(menu);
                    menuRenderer.render(menu);
                } catch (RendererException e) {
                    throw new ProtocolException(e.getMessage(), e);
                }

            }
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.