device.write(__style); org.wings.plaf.Utils.write(device, styleString); device.write(___1);
device.print(" style=\""); Utils.write(device, styleString); device.print("\"");
    protected void writeFormList(Device device, SList list) throws IOException {        device.write(__select);        org.wings.plaf.Utils.optAttribute(device, "name", Utils.event(list));        org.wings.plaf.Utils.optAttribute(device, "tabindex", list.getFocusTraversalIndex());        org.wings.plaf.Utils.optAttribute(device, "size", list.getVisibleRowCount());        org.wings.plaf.Utils.optAttribute(device, "multiple", (list.getSelectionMode() == SConstants.MULTIPLE_SELECTION) ? "multiple" : null);        org.wings.plaf.Utils.optAttribute(device, "focus", list.getName());        if (!list.isEnabled()) {            device.write(__disabled_1);        }        list.removeScriptListener(selectListener);        if (list.getListSelectionListeners().length > 0) {            list.addScriptListener(selectListener);        }        Utils.innerPreferredSize(device, list.getPreferredSize());        Utils.writeEvents(device, list);        device.write(">".getBytes());        javax.swing.ListModel model = list.getModel();        int size = model.getSize();        SListCellRenderer cellRenderer = list.getCellRenderer();        for (int i = 0; i < size; i++) {            SComponent renderer = null;            if (cellRenderer != null) {                renderer = cellRenderer.getListCellRendererComponent(list, model.getElementAt(i), false, i);            }            device.write(__option);            org.wings.plaf.Utils.optAttribute(device, "value", list.getSelectionParameter(i));            if (list.isSelectedIndex(i)) {                device.write(__selected_selec);            }            org.wings.io.StringBufferDevice stringBufferDevice = getStringBufferDevice();            org.wings.plaf.xhtml.Utils.writeAttributes(stringBufferDevice, renderer);            String styleString = stringBufferDevice.toString();            if (styleString != null && styleString.length() > 0) {                device.write(__style);                org.wings.plaf.Utils.write(device, styleString);                device.write(___1);            }            device.write(">".getBytes());            if (renderer != null) {                // Hack: remove all tags, because in form selections, looks ugly.                org.wings.io.StringBufferDevice string = getStringBufferDevice();                renderer.write(string);                char[] chars = string.toString().toCharArray();                int pos = 0;                for (int c = 0; c < chars.length; c++) {                    switch (chars[c]) {                        case '<':                            device.print(chars, pos, c - pos);                            break;                        case '>':                            pos = c + 1;                    }                }                device.print(chars, pos, chars.length - pos);            } else {                device.print(model.getElementAt(i).toString());            }            device.write(__option_1);        }        device.write(__select_1);        device.write(__input_type_hid);        org.wings.plaf.Utils.optAttribute(device, "name", Utils.event(list));        org.wings.plaf.Utils.optAttribute(device, "value", -1);        device.write(___2);    }