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 com.javelin.swinglets.*;
12: import com.javelin.swinglets.plaf.*;
13:
14: /**
15: * HTMLServletUI defines a look and feel for default HTML.
16: * <p>
17: * This class requires the ServletManager.getURL() to define the names of the other
18: * frames in the split pane. The name must be set on the components that are set
19: * this name is then appended to the URL in the frameset.
20: *
21: * @author Robin Sharp
22: */
23:
24: public class HTMLServletUI extends HTMLComponentUI {
25: /**
26: * Render the UI on the PrintWriter
27: */
28: public void update(PrintWriter out, SComponent c) {
29: if (!c.isVisible())
30: return;
31:
32: SServlet servlet = (SServlet) c;
33:
34: out.print(" SRC=\"./" + servlet.getClassName() + "\"");
35:
36: }
37: }
|