device.write(__class_menu);
device.print(" class=\"menu\"");
    protected void writePopup(final Device device, SPopupMenu menu)            throws IOException {        String componentId = menu.getName();        String popupId = componentId + "_pop";        device.write(__table_cellpadd);        org.wings.plaf.Utils.write(device, popupId);        device.write(__class_pdmenu_s);        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.write(__tr_id);                org.wings.plaf.Utils.write(device, itemHookId);                device.write(__);                if (menu.getMenuComponent(i) instanceof SMenu) {                    if (menuItem.isEnabled()) {                        String itemParentId = popupId;                        String itemPopupId = itemComponentId + "_pop";                        device.write(__onMouseDown_Me);                        org.wings.plaf.Utils.write(device, itemParentId);                        device.write(___1);                        org.wings.plaf.Utils.write(device, itemHookId);                        device.write(___1);                        org.wings.plaf.Utils.write(device, itemPopupId);                        device.write(___2);                        device.write(__class_menu);                    } else {                        device.write(__class_disabled);                    }                } else {                    if (menuItem.isEnabled()) {                        if (menuItem instanceof SMenuItem) {                            device.write(__onClick_window);                            writeAnchorAddress(device, (SMenuItem) menuItem);                            device.write(___3);                        }                        device.write(__class_menuitem);                    } else {                        device.write(__class_disabled_1);                    }                }                device.write(__td);                menu.getMenuComponent(i).write(device);                device.write(__td_td);                if (menu.getMenuComponent(i) instanceof SMenu) {                    device.write(__img_border_0_a);                    org.wings.plaf.Utils.write(device, RIGHT_ARROW.getURL());                    device.write(__);                    org.wings.plaf.Utils.optAttribute(device, "width", RIGHT_ARROW.getIconWidth());                    org.wings.plaf.Utils.optAttribute(device, "height", RIGHT_ARROW.getIconHeight());                    device.write(___4);                }                device.write(__td_tr);            }        }        device.write(__table);        for (int i = 0; i < menu.getMenuComponentCount(); i++) {            SComponent menuItem = menu.getMenuComponent(i);            if (menuItem.isVisible() && menuItem.isEnabled() && menuItem instanceof SMenu) {                writePopup(device, (SPopupMenu) menu.getMenuComponent(i));            }        }    }