writeText(d, text);
writeText(d, text, preformatted);
    public void writeContent(final Device device, final SComponent component)            throws IOException {        final SLabel label = (SLabel) component;        final String text = label.getText();        final SIcon icon = label.isEnabled() ? label.getIcon() : label.getDisabledIcon();        final int horizontalTextPosition = label.getHorizontalTextPosition();        final int verticalTextPosition = label.getVerticalTextPosition();        if (icon == null && text != null)            writeText(device, text);        else if (icon != null && text == null)            writeIcon(device, icon);        else if (icon != null && text != null) {            new IconTextCompound() {                protected void text(Device d) throws IOException {                    writeText(d, text);                }                protected void icon(Device d) throws IOException {                    writeIcon(d, icon);                }            }.writeCompound(device, component, horizontalTextPosition, verticalTextPosition);        }    }