KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > UIManager


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: UIManager.java,v $
11    Revision 1.7 2004/05/05 12:43:21 bobintetley
12    Patches/new files from Laurent Martell
13
14    Revision 1.6 2004/04/15 11:24:33 bobintetley
15    (Dan Naab) ComponentUI, UIDefaults/UIManager and Accessibility support.
16    (Antonio Weber) TableColumnModelListener implementation and support
17
18    Revision 1.5 2004/01/26 08:11:00 bobintetley
19    Many bugfixes and addition of SwingSet
20
21    Revision 1.4 2004/01/16 15:53:32 bobintetley
22    Many compatibility methods added to Container, Component, JInternalFrame,
23       UIManager, SwingUtilities, JTabbedPane, JPasswordField, JCheckBox
24       and JRadioButton.
25
26    Revision 1.3 2003/12/14 09:13:38 bobintetley
27    Added CVS log to source headers
28
29 */

30
31 package swingwtx.swing;
32
33 import swingwt.awt.Font;
34
35 /**
36  * Dumb skeleton of UI manager that should be good enough to fool
37  * any programs attempting to change the Swing L&F. Note that I have
38  * no intention of implementation the plaf package as that is just
39  * too damn far ;-)
40  * @author Robin Rawson-Tetley
41  */

42 public class UIManager {
43     
44     public UIManager() {}
45
46     public static class LookAndFeelInfo {
47         private String JavaDoc name;
48         private String JavaDoc className;
49         public LookAndFeelInfo(String JavaDoc name, String JavaDoc className) { this.name = name; this.className = className; }
50         public String JavaDoc getClassName() { return className; }
51         public String JavaDoc getName() { return name; }
52     }
53     
54     public static Object JavaDoc get(String JavaDoc key) { return null; }
55     public static Object JavaDoc put(Object JavaDoc key, Object JavaDoc value) { return null;}
56     public static Font getFont(Object JavaDoc key) { return null; }
57
58     public static LookAndFeelInfo[] getInstalledLookAndFeels() {
59         return new LookAndFeelInfo[]{ new LookAndFeelInfo("SWTNative", "swingwtx.swing.UIManager") };
60     }
61     public static UIDefaults getLookAndFeelDefaults() { return new UIDefaults(); }
62     public static void setLookAndFeelDefaults(UIDefaults defaults) { }
63     public static void setInstalledLookAndFeels(LookAndFeelInfo[] infos) throws SecurityException JavaDoc {}
64     public static void installLookAndFeel(LookAndFeelInfo info) {}
65     public static void installLookAndFeel(String JavaDoc name, String JavaDoc className) {}
66     public static LookAndFeel getLookAndFeel() { return null; }
67     public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException {}
68     public static void setLookAndFeel(String JavaDoc className) throws ClassNotFoundException JavaDoc, InstantiationException JavaDoc, IllegalAccessException JavaDoc, UnsupportedLookAndFeelException {}
69     public static String JavaDoc getSystemLookAndFeelClassName() { return "swingwtx.swing.UIManager"; }
70     public static String JavaDoc getCrossPlatformLookAndFeelClassName() { return "swingwtx.swing.UIManager"; }
71     
72 }
73
Popular Tags