01: /*
02: * Copyright Javelin Software, All rights reserved.
03: */
04:
05: package com.javelin.swinglets.plaf.html;
06:
07: import java.awt.*;
08: import java.util.*;
09: import java.io.*;
10:
11: import javax.swing.*;
12:
13: import com.javelin.swinglets.*;
14: import com.javelin.swinglets.plaf.*;
15:
16: /**
17: * HTMLHiddenUI defines a look and feel for default HTML.
18: *
19: * @author Robin Sharp
20: */
21:
22: public class HTMLHiddenUI extends HTMLComponentUI {
23: /**
24: * Render the UI on the PrintWriter
25: */
26: public void update(PrintWriter out, SComponent c) {
27: if (!c.isVisible())
28: return;
29:
30: SHidden hidden = (SHidden) c;
31:
32: out.print("<INPUT TYPE=\"HIDDEN\"");
33:
34: HTMLUtility.setName(out, hidden);
35:
36: if (hidden.getValue() != null) {
37: out.print(" VALUE=\"");
38: out.print(hidden.getValue());
39: out.print("\"");
40: }
41:
42: updateEvent(out, c);
43:
44: out.println(" >");
45: }
46:
47: }
|