01: package org.wings.plaf.css;
02:
03: import java.io.IOException;
04:
05: import org.wings.SComponent;
06: import org.wings.SRawTextComponent;
07: import org.wings.io.Device;
08:
09: public final class RawTextComponentCG extends AbstractComponentCG
10: implements org.wings.plaf.RawTextComponentCG {
11:
12: private static final long serialVersionUID = 1L;
13:
14: public void writeInternal(Device device, SComponent component)
15: throws IOException {
16: SRawTextComponent _c = (SRawTextComponent) component;
17: device.print("<span");
18: Utils.optAttribute(device, "id", _c.getName());
19: device.print(">");
20: device.print(_c.getText());
21: device.print("</span>");
22: }
23: }
|