private void writeWindowIcon(Device device, SInternalFrame frame,
protected void writeWindowIcon(Device device, SInternalFrame frame,
    private void writeWindowIcon(Device device, SInternalFrame frame,            int event, SIcon icon, String cssClass) throws IOException {        boolean showAsFormComponent = frame.getShowAsFormComponent();        // RequestURL addr = frame.getRequestURL();        // addr.addParameter(Utils.event(frame), event);        if (showAsFormComponent) {            device.print("<button");            if (cssClass != null) {                device.print(" class=\"");                device.print(cssClass);                device.print("\"");            }            device.print(" name=\"").print(Utils.event(frame)).print(                    "\" value=\"").print(event).print("\">");        } else {            device.print("<a");            if (cssClass != null) {                device.print(" class=\"");                device.print(cssClass);                device.print("\"");            }            device.print(" href=\"").print(                    frame.getRequestURL().addParameter(                            Utils.event(frame) + "=" + event).toString())                    .print("\">");        }        writeIcon(device, icon, null);        if (showAsFormComponent) {            device.print("</button>");        } else {            device.print("</a>");        }    }