1 30 31 package swingwtx.swing; 32 33 import swingwt.awt.Font; 34 35 42 public class UIManager { 43 44 public UIManager() {} 45 46 public static class LookAndFeelInfo { 47 private String name; 48 private String className; 49 public LookAndFeelInfo(String name, String className) { this.name = name; this.className = className; } 50 public String getClassName() { return className; } 51 public String getName() { return name; } 52 } 53 54 public static Object get(String key) { return null; } 55 public static Object put(Object key, Object value) { return null;} 56 public static Font getFont(Object 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 {} 64 public static void installLookAndFeel(LookAndFeelInfo info) {} 65 public static void installLookAndFeel(String name, String className) {} 66 public static LookAndFeel getLookAndFeel() { return null; } 67 public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException {} 68 public static void setLookAndFeel(String className) throws ClassNotFoundException , InstantiationException , IllegalAccessException , UnsupportedLookAndFeelException {} 69 public static String getSystemLookAndFeelClassName() { return "swingwtx.swing.UIManager"; } 70 public static String getCrossPlatformLookAndFeelClassName() { return "swingwtx.swing.UIManager"; } 71 72 } 73 | Popular Tags |