if (showAsFormComponent && !useIconsInForm && text == null)
if (showAsFormComponent && !useIconsInForms && text == null)
    public void writeContent(final Device device, final SComponent component)            throws IOException {        final SAbstractButton button = (SAbstractButton) component;        final boolean showAsFormComponent = button.getShowAsFormComponent();        final String text = button.getText();        final SIcon icon = getIcon(button);        if (showAsFormComponent && useIconsInForm) {            device.print("<button");            Utils.write(device, Utils.event(button));            Utils.optAttribute(device, "tabindex", button.getFocusTraversalIndex());            Utils.optAttribute(device, "accesskey", button.getMnemonic());            Utils.writeEvents(device, button);        } else if (showAsFormComponent && !useIconsInForm)            device.print("<span");        else {            RequestURL addr = button.getRequestURL();            addr.addParameter(button, button.getToggleSelectionParameter());            writeLinkStart(device, addr);            Utils.optAttribute(device, "accesskey", button.getMnemonic());            Utils.writeEvents(device, button);        }        Utils.printCSSInlineFullSize(device, component.getPreferredSize());        if (!button.isEnabled())            device.print(" disabled=\"true\"");        if (button.isSelected())            device.print(" checked=\"true\"");        if (component.isFocusOwner())            Utils.optAttribute(device, "focus", component.getName());        device.print(">");        if (showAsFormComponent && !useIconsInForm && text == null)            inputTypeCheckbox(device, button);        else if (icon != null && text == null)            writeIcon(device, icon);        else if (text != null && icon == null)            writeText(device, text);        else if (text != null) {            new IconTextCompound() {                protected void text(Device device) throws IOException {                    writeText(device, text);                }                protected void icon(Device device) throws IOException {                    if (showAsFormComponent && !useIconsInForm)                        inputTypeCheckbox(device, button);                    else                        writeIcon(device, icon);                }            }.writeCompound(device, component, button.getHorizontalTextPosition(), button.getVerticalTextPosition());        }        if (showAsFormComponent && useIconsInForm)            device.print("</button>");        else if (showAsFormComponent && !useIconsInForm)            device.print("</span>");        else            device.print("</a>");    }