01: /*
02: * Copyright Javelin Software, All rights reserved.
03: */
04:
05: package com.javelin.swinglets.plaf.javascript;
06:
07: import java.awt.*;
08: import java.util.*;
09: import java.io.*;
10:
11: import javax.servlet.*;
12:
13: import com.javelin.swinglets.*;
14: import com.javelin.swinglets.plaf.*;
15: import com.javelin.swinglets.plaf.html.*;
16:
17: /**
18: * JSSplitPaneUI defines a look and feel for default Java Script.
19: *
20: * @author Robin Sharp
21: */
22:
23: public class JSSplitPaneUI extends HTMLSplitPaneUI implements
24: JSContainerUI {
25: /**
26: * Render the script code for a text the PrintWriter.
27: */
28: public void updateScript(PrintWriter out, SComponent c) {
29: JSUtility.updateScript(out, c);
30:
31: //Loop through all the children updating the script
32: SContainer container = (SContainer) c;
33: SComponentUI ui = null;
34:
35: for (int index = 0; index < container.getComponentCount(); index++) {
36: ui = container.getComponent(index).getUI();
37: if (ui != null)
38: ui.updateScript(out, container.getComponent(index));
39: }
40:
41: }
42:
43: }
|