Package org.ofbiz.widget.menu

Examples of org.ofbiz.widget.menu.ModelMenuItem$Image


        //if (Debug.infoOn()) Debug.logInfo("in init, delegator:" + delegator, module);
        try {
            List menuItemList = modelMenu.getMenuItemList();
            Iterator iter = menuItemList.iterator();
            while (iter.hasNext()) {
               ModelMenuItem menuItem = (ModelMenuItem)iter.next();
               String contentId = menuItem.getAssociatedContentId(dummyMap);
               //if (Debug.infoOn()) Debug.logInfo("in init, contentId:" + contentId, module);
               GenericValue webSitePublishPoint = delegator.findByPrimaryKeyCache("WebSitePublishPoint", UtilMisc.toMap("contentId", contentId));
               String menuItemName = menuItem.getName();
               //if (Debug.infoOn()) Debug.logInfo("in init, menuItemName:" + menuItemName, module);
               //if (Debug.infoOn()) Debug.logInfo("in init, webSitePublishPoint:" + webSitePublishPoint, module);
               putInContext(menuItemName, "WebSitePublishPoint", webSitePublishPoint);
            }
        } catch (GenericEntityException e) {
View Full Code Here


    public void renderFormatSimpleWrapperRows(StringBuffer buffer, Map context, Object menuObj) {

        List menuItemList = ((ModelMenu)menuObj).getMenuItemList();
        Iterator menuItemIter = menuItemList.iterator();
        ModelMenuItem currentMenuItem = null;

        while (menuItemIter.hasNext()) {
            currentMenuItem = (ModelMenuItem)menuItemIter.next();
            renderMenuItem(buffer, context, currentMenuItem);
        }
View Full Code Here

            buffer.append(" id=\"");
            buffer.append(id);
            buffer.append("\"");
        }
       
        ModelMenuItem menuItem = link.getLinkMenuItem();
/*
        boolean isSelected = menuItem.isSelected(context);
       
        String style = null;
       
        if (isSelected) {
            style = menuItem.getSelectedStyle();
        } else {
            style = link.getStyle(context);
            if (UtilValidate.isEmpty(style))
                style = menuItem.getTitleStyle();
            if (UtilValidate.isEmpty(style))
                style = menuItem.getWidgetStyle();
        }
       
        if (menuItem.getDisabled()) {
            style = menuItem.getDisabledTitleStyle();
        }
       
        if (UtilValidate.isNotEmpty(style)) {
            buffer.append(" class=\"");
            buffer.append(style);
            buffer.append("\"");
        }
*/
        String name = link.getName(context);
        if (UtilValidate.isNotEmpty(name)) {
            buffer.append(" name=\"");
            buffer.append(name);
            buffer.append("\"");
        }
        String targetWindow = link.getTargetWindow(context);
        if (UtilValidate.isNotEmpty(targetWindow)) {
            buffer.append(" target=\"");
            buffer.append(targetWindow);
            buffer.append("\"");
        }
        String target = link.getTarget(context);
        if (menuItem.getDisabled()) {
            target = null;
        }
        if (UtilValidate.isNotEmpty(target)) {
            buffer.append(" href=\"");
            String urlMode = link.getUrlMode();
View Full Code Here

TOP

Related Classes of org.ofbiz.widget.menu.ModelMenuItem$Image

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.