KeyStroke acc = menuItem.getAccelerator(); if (acc != null) { device.print(" <span class=\"accelerator\">"); Utils.write(device, KeystrokeUtil.keyStroke2String(acc)); device.print("</span>"); }
    protected void writeItemContent(final Device device, SMenuItem menuItem)            throws IOException {        SIcon icon = getIcon(menuItem);        if (icon != null) {            device.print("<img align=\"middle\"");            Utils.optAttribute(device, "src", icon.getURL());            Utils.optAttribute(device, "width", icon.getIconWidth());            Utils.optAttribute(device, "height", icon.getIconHeight());            device.print(" alt=\"");            device.print(icon.getIconTitle());            device.print("\"/>");        }        String text = menuItem.getText();        if (text != null) {            Utils.write(device, text);        }    }