Package org.zeroexchange.web.navigation.menu.model

Examples of org.zeroexchange.web.navigation.menu.model.Leaf


            @Override
            protected void populateItem(ListItem item) {
                MenuItem menuItem = (MenuItem) item.getModelObject();
               
                Leaf leaf = menuItem.getFirstLeaf();
                if(leaf != null) {
                    Class<Page> pageClass = leaf.getPageClass();
                    try {
                        Link link = linkFactory.getLink("leftMenuLink", new PageTarget(pageClass));
                        link.add(new Label("leftMenuSign", menuService.getTitle(menuItem)).setEscapeModelStrings(false));
                        item.add(link);
                    } catch (BusinessLogicException e) {
View Full Code Here


        //TODO: create the separate 'TopMenu' component
        add(new ListView("topMenuItem", menuService.filterAccordingPermissions(menuService.getTopItems())) {
            @Override
            protected void populateItem(ListItem item) {
                MenuItem menuItem = (MenuItem) item.getModelObject();
                Leaf leaf = menuItem.getFirstLeaf();
                if(leaf != null) {
                    Class<Page> pageClass = leaf.getPageClass();
                    try {
                        Link link = linkFactory.getLink("topMenuRef", new PageTarget(pageClass));
                        link.getLocalizer();
                        link.add(new Label("topMenuSign", menuService.getTitle(menuItem)).setEscapeModelStrings(false));
                        link.add(new ContextImage("topMenuImage", MENU_IMAGES_FOLDER + menuService.getImage(menuItem)));
View Full Code Here

TOP

Related Classes of org.zeroexchange.web.navigation.menu.model.Leaf

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.