1 Clazz.declarePackage ("javax.swing");
\r
2 Clazz.load (null, "javax.swing.LookAndFeel", ["javax.swing.JPasswordField", "$.UIManager", "javax.swing.plaf.UIResource", "jssun.swing.DefaultLayoutStyle", "swingjs.JSToolkit"], function () {
\r
3 c$ = Clazz.declareType (javax.swing, "LookAndFeel");
\r
4 c$.installColors = Clazz.defineMethod (c$, "installColors",
\r
5 function (c, defaultBgName, defaultFgName) {
\r
6 var bg = c.getBackground ();
\r
7 if (bg == null || Clazz.instanceOf (bg, javax.swing.plaf.UIResource)) c.setBackground (javax.swing.UIManager.getColor (defaultBgName));
\r
8 var fg = c.getForeground ();
\r
9 if (fg == null || Clazz.instanceOf (fg, javax.swing.plaf.UIResource)) c.setForeground (javax.swing.UIManager.getColor (defaultFgName));
\r
10 }, "javax.swing.JComponent,~S,~S");
\r
11 c$.installColorsAndFont = Clazz.defineMethod (c$, "installColorsAndFont",
\r
12 function (c, defaultBgName, defaultFgName, defaultFontName) {
\r
13 var f = c.getFont ();
\r
14 if (f == null || Clazz.instanceOf (f, javax.swing.plaf.UIResource)) {
\r
15 c.setFont (javax.swing.UIManager.getFont (defaultFontName));
\r
16 }javax.swing.LookAndFeel.installColors (c, defaultBgName, defaultFgName);
\r
17 }, "javax.swing.JComponent,~S,~S,~S");
\r
18 c$.installBorder = Clazz.defineMethod (c$, "installBorder",
\r
19 function (c, defaultBorderName) {
\r
20 swingjs.JSToolkit.notImplemented (null);
\r
21 }, "javax.swing.JComponent,~S");
\r
22 c$.uninstallBorder = Clazz.defineMethod (c$, "uninstallBorder",
\r
24 swingjs.JSToolkit.notImplemented (null);
\r
25 }, "javax.swing.JComponent");
\r
26 c$.installProperty = Clazz.defineMethod (c$, "installProperty",
\r
27 function (c, propertyName, propertyValue) {
\r
28 if (Clazz.instanceOf (c, javax.swing.JPasswordField)) {
\r
29 if (!(c).customSetUIProperty (propertyName, propertyValue)) {
\r
30 c.setUIProperty (propertyName, propertyValue);
\r
32 c.setUIProperty (propertyName, propertyValue);
\r
33 }}, "javax.swing.JComponent,~S,~O");
\r
34 c$.makeKeyBindings = Clazz.defineMethod (c$, "makeKeyBindings",
\r
35 function (keyBindingList) {
\r
36 swingjs.JSToolkit.notImplemented (null);
\r
39 c$.makeInputMap = Clazz.defineMethod (c$, "makeInputMap",
\r
41 swingjs.JSToolkit.notImplemented (null);
\r
44 c$.makeComponentInputMap = Clazz.defineMethod (c$, "makeComponentInputMap",
\r
45 function (c, keys) {
\r
46 swingjs.JSToolkit.notImplemented (null);
\r
48 }, "javax.swing.JComponent,~A");
\r
49 c$.loadKeyBindings = Clazz.defineMethod (c$, "loadKeyBindings",
\r
50 function (retMap, keys) {
\r
51 swingjs.JSToolkit.notImplemented (null);
\r
52 }, "javax.swing.InputMap,~A");
\r
53 c$.makeIcon = Clazz.defineMethod (c$, "makeIcon",
\r
54 function (baseClass, gifFile) {
\r
55 swingjs.JSToolkit.notImplemented (null);
\r
58 Clazz.defineMethod (c$, "getLayoutStyle",
\r
60 return jssun.swing.DefaultLayoutStyle.getInstance ();
\r
62 Clazz.defineMethod (c$, "provideErrorFeedback",
\r
63 function (component) {
\r
64 swingjs.JSToolkit.notImplemented (null);
\r
65 }, "java.awt.Component");
\r
66 c$.getDesktopPropertyValue = Clazz.defineMethod (c$, "getDesktopPropertyValue",
\r
67 function (systemPropertyName, fallbackValue) {
\r
68 swingjs.JSToolkit.notImplemented (null);
\r
69 return fallbackValue;
\r
71 Clazz.defineMethod (c$, "getDisabledIcon",
\r
72 function (component, icon) {
\r
73 swingjs.JSToolkit.notImplemented (null);
\r
75 }, "javax.swing.JComponent,javax.swing.Icon");
\r
76 Clazz.defineMethod (c$, "getDisabledSelectedIcon",
\r
77 function (component, icon) {
\r
78 return this.getDisabledIcon (component, icon);
\r
79 }, "javax.swing.JComponent,javax.swing.Icon");
\r
80 Clazz.defineMethod (c$, "getSupportsWindowDecorations",
\r
84 Clazz.defineMethod (c$, "initialize",
\r
87 Clazz.defineMethod (c$, "uninitialize",
\r
90 Clazz.defineMethod (c$, "getDefaults",
\r
94 Clazz.overrideMethod (c$, "toString",
\r
96 return "[" + this.getDescription () + " - " + this.getClass ().getName () + "]";
\r