else
} else {
    private void writeButton(Device device, SScrollBar scrollBar, SIcon icon, String event) throws IOException {        boolean childSelectorWorkaround = !scrollBar.getSession().getUserAgent().supportsCssChildSelector();        boolean showAsFormComponent = scrollBar.getShowAsFormComponent();        if (showAsFormComponent)            device.print("<button name=\"")                    .print(Utils.event(scrollBar))                    .print("\" value=\"")                    .print(event)                    .print("\"");        else            device.print("<a href=\"")                    .print(scrollBar.getRequestURL()                    .addParameter(Utils.event(scrollBar) + "=" + event).toString())                    .print("\"");        device.print(">");        device.print("<img");        Utils.optAttribute(device, "src", icon.getURL());        Utils.optAttribute(device, "width", icon.getIconWidth());        Utils.optAttribute(device, "height", icon.getIconHeight());        device.print("/>");        if (showAsFormComponent)            device.print("</button>\n");        else            device.print("</a>\n");    }