Examples of MenuItemRenderer


Examples of com.jgoodies.looks.common.MenuItemRenderer

        super.installDefaults();
        if (arrowIcon == null || arrowIcon instanceof UIResource) {
            arrowIcon = UIManager.getIcon("Menu.arrowIcon");
        }
        renderer =
            new MenuItemRenderer(
                menuItem,
                false,
                acceleratorFont,
                selectionForeground,
                disabledForeground,
View Full Code Here

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

            throws RendererException {

        // Select a renderer to render the contents of each option.
        // This can be text and/or image depending on the style of the menu
        // and or content of the menu item.
        final MenuItemRenderer renderer =
                selector.selectMenuItemRenderer(menu);
        if (renderer == null) {
            // We can't find a renderer for menu items, so there's not much
            // point rendering the menu. This will happen in the pathological
            // case where both the image and text styles are set to 'none'.
            return;
        }

        // Construct a visitor which renders the menu.
        // @todo model could use Composite, External and/or Internal Iterator
        RendererMenuModelVisitor visitor = new RendererMenuModelVisitor() {

            public void rendererVisit(MenuItem item)
                    throws RendererException {
                // Use the menu item renderer which we previously selected
                // to render each menu item in a similar fashion.
                renderer.render(locator, item);
            }

            public void rendererVisit(MenuItemGroup group)
                    throws RendererException {
                // For groups of menu items, we ignore the group itself
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.