Examples of ModelMenuItem


Examples of org.ofbiz.widget.menu.ModelMenuItem

    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

Examples of org.ofbiz.widget.menu.ModelMenuItem

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