org.wings.plaf.Utils.write(device, itemPopupId);
Utils.write(device, itemPopupId);
    protected void writePopup(final Device device, SMenu menu)            throws IOException {        String componentId = menu.getName();        String popupId = componentId + "_pop";        device.print("<table cellpadding=\"0\" cellspacing=\"0\" id=\"");        org.wings.plaf.Utils.write(device, popupId);        device.print("\" class=\"pdmenu\" style=\"display:none\">");        for (int i = 0; i < menu.getMenuComponentCount(); i++) {            SComponent menuItem = menu.getMenuComponent(i);            if (menuItem.isVisible()) {                String itemComponentId = menu.getMenuComponent(i).getName();                String itemHookId = itemComponentId + "_hook";                device.print("<tr id=\"");                org.wings.plaf.Utils.write(device, itemHookId);                device.print("\"");                if (menu.getMenuComponent(i) instanceof SMenu) {                    if (menuItem.isEnabled()) {                        String itemParentId = popupId;                        String itemPopupId = itemComponentId + "_pop";                        device.print(" onMouseDown=\"Menu.prototype.toggle('");                        org.wings.plaf.Utils.write(device, itemParentId);                        device.print("','");                        org.wings.plaf.Utils.write(device, itemHookId);                        device.print("','");                        org.wings.plaf.Utils.write(device, itemPopupId);                        device.print("')\"");                        device.print(" class=\"menu\"");                    } else {                        device.print(" class=\"disabledmenu\"");                    }                } else {                    if (menuItem.isEnabled()) {                        if (menuItem instanceof SMenuItem) {                            device.print(" onClick=\"window.location.href='");                            writeAnchorAddress(device, (SMenuItem) menuItem);                            device.print("'\"");                        }                        device.print(" class=\"menuitem\"");                    } else {                        device.print(" class=\"disabledmenuitem\"");                    }                }                device.print("><td>");                menu.getMenuComponent(i).write(device);                device.print("</td><td>");                if (menu.getMenuComponent(i) instanceof SMenu) {                    device.print("<img border=\"0\" align=\"middle\" src=\"");                    org.wings.plaf.Utils.write(device, RIGHT_ARROW.getURL());                    device.print("\"");                    org.wings.plaf.Utils.optAttribute(device, "width", RIGHT_ARROW.getIconWidth());                    org.wings.plaf.Utils.optAttribute(device, "height", RIGHT_ARROW.getIconHeight());                    device.print("/>");                }                device.print("</td></tr>");            }        }        device.print("</table>");        for (int i = 0; i < menu.getMenuComponentCount(); i++) {            SComponent menuItem = menu.getMenuComponent(i);            if (menuItem.isVisible() && menuItem.isEnabled() && menuItem instanceof SMenu) {                writePopup(device, (SMenu) menu.getMenuComponent(i));            }        }    }