01: // (c) copyright 2006 by eXXcellent solutions, Ulm. Author: bschmid
02:
03: package foo.bar.plaf;
04:
05: import org.wings.io.Device;
06: import foo.bar.MyComponent;
07:
08: import java.io.IOException;
09:
10: /**
11: * A special component CG for specific browsers. Here only for the Microsoft IE.
12: *
13: * @author Benjamin Schmid <B.Schmid@exxcellent.de>
14: */
15: public final class MyComponentCGForMSIE extends MyComponentCG {
16:
17: @Override
18: public void writeInternal(final Device device,
19: final MyComponent myComponent) throws IOException {
20: writeTablePrefix(device, myComponent);
21: device.print("<div onclick=\"foobar()\">")
22: .print("msieversion:").print(myComponent.getPayload())
23: .print("</div>");
24: writeTableSuffix(device, myComponent);
25: }
26: }
|