org.wings.plaf.Utils.optAttribute(device, "focus", renderer.getName());
Utils.optAttribute(device, "focus", renderer.getName());
    public void writeAnchorList(Device device, SList list)            throws IOException {        boolean showAsFormComponent = list.getShowAsFormComponent();        boolean renderSelection = list.getSelectionMode() != SConstants.NO_SELECTION;        device.print("<");        org.wings.plaf.Utils.write(device, list.getType());        org.wings.plaf.Utils.optAttribute(device, "type", list.getOrderType());        org.wings.plaf.Utils.optAttribute(device, "start", list.getStart());        Utils.innerPreferredSize(device, list.getPreferredSize());        device.print(">");        javax.swing.ListModel model = list.getModel();        SListCellRenderer cellRenderer = list.getCellRenderer();        SCellRendererPane rendererPane = list.getCellRendererPane();        int start = 0;        int end = model.getSize();        java.awt.Rectangle viewport = list.getViewportSize();        if (viewport != null) {            start = viewport.y;            end = start + viewport.height;        }        for (int i = start; i < end; i++) {            boolean selected = list.isSelectedIndex(i);            if (renderSelection && selected)                device.print("<li selected=\"true\">");            else                device.print("<li>");            SComponent renderer = cellRenderer.getListCellRendererComponent(list, model.getElementAt(i), selected, i);            if (renderSelection) {                if (showAsFormComponent) {                    device.print("<button type=\"submit\" name=\"");                    org.wings.plaf.Utils.write(device, Utils.event(list));                    device.print("\" value=\"");                    org.wings.plaf.Utils.write(device, list.getToggleSelectionParameter(i));                    device.print("\"");                } else {                    RequestURL selectionAddr = list.getRequestURL();                    selectionAddr.addParameter(Utils.event(list), list.getToggleSelectionParameter(i));                    device.write("<a href=\"".getBytes());                    org.wings.plaf.Utils.write(device, selectionAddr.toString());                    device.print("\"");                }                org.wings.plaf.Utils.optAttribute(device, "focus", renderer.getName());                device.print(">");            } else                device.print("<span>");            rendererPane.writeComponent(device, renderer, list);            if (renderSelection) {                if (showAsFormComponent)                    device.print("</button>");                else                    device.print("</a>");            } else                device.print("</span>");            device.print("</li>\n");        }        device.print("</");        org.wings.plaf.Utils.write(device, list.getType());        device.print(">");    }