Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / javax / swing / LookAndFeel.js
index 2207b3b..0b9a27c 100644 (file)
@@ -1,98 +1,98 @@
-Clazz.declarePackage ("javax.swing");\r
-Clazz.load (null, "javax.swing.LookAndFeel", ["javax.swing.JPasswordField", "$.UIManager", "javax.swing.plaf.UIResource", "jssun.swing.DefaultLayoutStyle", "swingjs.JSToolkit"], function () {\r
-c$ = Clazz.declareType (javax.swing, "LookAndFeel");\r
-c$.installColors = Clazz.defineMethod (c$, "installColors", \r
-function (c, defaultBgName, defaultFgName) {\r
-var bg = c.getBackground ();\r
-if (bg == null || Clazz.instanceOf (bg, javax.swing.plaf.UIResource)) c.setBackground (javax.swing.UIManager.getColor (defaultBgName));\r
-var fg = c.getForeground ();\r
-if (fg == null || Clazz.instanceOf (fg, javax.swing.plaf.UIResource)) c.setForeground (javax.swing.UIManager.getColor (defaultFgName));\r
-}, "javax.swing.JComponent,~S,~S");\r
-c$.installColorsAndFont = Clazz.defineMethod (c$, "installColorsAndFont", \r
-function (c, defaultBgName, defaultFgName, defaultFontName) {\r
-var f = c.getFont ();\r
-if (f == null || Clazz.instanceOf (f, javax.swing.plaf.UIResource)) {\r
-c.setFont (javax.swing.UIManager.getFont (defaultFontName));\r
-}javax.swing.LookAndFeel.installColors (c, defaultBgName, defaultFgName);\r
-}, "javax.swing.JComponent,~S,~S,~S");\r
-c$.installBorder = Clazz.defineMethod (c$, "installBorder", \r
-function (c, defaultBorderName) {\r
-swingjs.JSToolkit.notImplemented (null);\r
-}, "javax.swing.JComponent,~S");\r
-c$.uninstallBorder = Clazz.defineMethod (c$, "uninstallBorder", \r
-function (c) {\r
-swingjs.JSToolkit.notImplemented (null);\r
-}, "javax.swing.JComponent");\r
-c$.installProperty = Clazz.defineMethod (c$, "installProperty", \r
-function (c, propertyName, propertyValue) {\r
-if (Clazz.instanceOf (c, javax.swing.JPasswordField)) {\r
-if (!(c).customSetUIProperty (propertyName, propertyValue)) {\r
-c.setUIProperty (propertyName, propertyValue);\r
-}} else {\r
-c.setUIProperty (propertyName, propertyValue);\r
-}}, "javax.swing.JComponent,~S,~O");\r
-c$.makeKeyBindings = Clazz.defineMethod (c$, "makeKeyBindings", \r
-function (keyBindingList) {\r
-swingjs.JSToolkit.notImplemented (null);\r
-return null;\r
-}, "~A");\r
-c$.makeInputMap = Clazz.defineMethod (c$, "makeInputMap", \r
-function (keys) {\r
-swingjs.JSToolkit.notImplemented (null);\r
-return null;\r
-}, "~A");\r
-c$.makeComponentInputMap = Clazz.defineMethod (c$, "makeComponentInputMap", \r
-function (c, keys) {\r
-swingjs.JSToolkit.notImplemented (null);\r
-return null;\r
-}, "javax.swing.JComponent,~A");\r
-c$.loadKeyBindings = Clazz.defineMethod (c$, "loadKeyBindings", \r
-function (retMap, keys) {\r
-swingjs.JSToolkit.notImplemented (null);\r
-}, "javax.swing.InputMap,~A");\r
-c$.makeIcon = Clazz.defineMethod (c$, "makeIcon", \r
-function (baseClass, gifFile) {\r
-swingjs.JSToolkit.notImplemented (null);\r
-return null;\r
-}, "Class,~S");\r
-Clazz.defineMethod (c$, "getLayoutStyle", \r
-function () {\r
-return jssun.swing.DefaultLayoutStyle.getInstance ();\r
-});\r
-Clazz.defineMethod (c$, "provideErrorFeedback", \r
-function (component) {\r
-swingjs.JSToolkit.notImplemented (null);\r
-}, "java.awt.Component");\r
-c$.getDesktopPropertyValue = Clazz.defineMethod (c$, "getDesktopPropertyValue", \r
-function (systemPropertyName, fallbackValue) {\r
-swingjs.JSToolkit.notImplemented (null);\r
-return fallbackValue;\r
-}, "~S,~O");\r
-Clazz.defineMethod (c$, "getDisabledIcon", \r
-function (component, icon) {\r
-swingjs.JSToolkit.notImplemented (null);\r
-return null;\r
-}, "javax.swing.JComponent,javax.swing.Icon");\r
-Clazz.defineMethod (c$, "getDisabledSelectedIcon", \r
-function (component, icon) {\r
-return this.getDisabledIcon (component, icon);\r
-}, "javax.swing.JComponent,javax.swing.Icon");\r
-Clazz.defineMethod (c$, "getSupportsWindowDecorations", \r
-function () {\r
-return false;\r
-});\r
-Clazz.defineMethod (c$, "initialize", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "uninitialize", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "getDefaults", \r
-function () {\r
-return null;\r
-});\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-return "[" + this.getDescription () + " - " + this.getClass ().getName () + "]";\r
-});\r
-});\r
+Clazz.declarePackage ("javax.swing");
+Clazz.load (null, "javax.swing.LookAndFeel", ["javax.swing.JPasswordField", "$.UIManager", "javax.swing.plaf.UIResource", "jssun.swing.DefaultLayoutStyle", "swingjs.JSToolkit"], function () {
+c$ = Clazz.declareType (javax.swing, "LookAndFeel");
+c$.installColors = Clazz.defineMethod (c$, "installColors", 
+function (c, defaultBgName, defaultFgName) {
+var bg = c.getBackground ();
+if (bg == null || Clazz.instanceOf (bg, javax.swing.plaf.UIResource)) c.setBackground (javax.swing.UIManager.getColor (defaultBgName));
+var fg = c.getForeground ();
+if (fg == null || Clazz.instanceOf (fg, javax.swing.plaf.UIResource)) c.setForeground (javax.swing.UIManager.getColor (defaultFgName));
+}, "javax.swing.JComponent,~S,~S");
+c$.installColorsAndFont = Clazz.defineMethod (c$, "installColorsAndFont", 
+function (c, defaultBgName, defaultFgName, defaultFontName) {
+var f = c.getFont ();
+if (f == null || Clazz.instanceOf (f, javax.swing.plaf.UIResource)) {
+c.setFont (javax.swing.UIManager.getFont (defaultFontName));
+}javax.swing.LookAndFeel.installColors (c, defaultBgName, defaultFgName);
+}, "javax.swing.JComponent,~S,~S,~S");
+c$.installBorder = Clazz.defineMethod (c$, "installBorder", 
+function (c, defaultBorderName) {
+swingjs.JSToolkit.notImplemented (null);
+}, "javax.swing.JComponent,~S");
+c$.uninstallBorder = Clazz.defineMethod (c$, "uninstallBorder", 
+function (c) {
+swingjs.JSToolkit.notImplemented (null);
+}, "javax.swing.JComponent");
+c$.installProperty = Clazz.defineMethod (c$, "installProperty", 
+function (c, propertyName, propertyValue) {
+if (Clazz.instanceOf (c, javax.swing.JPasswordField)) {
+if (!(c).customSetUIProperty (propertyName, propertyValue)) {
+c.setUIProperty (propertyName, propertyValue);
+}} else {
+c.setUIProperty (propertyName, propertyValue);
+}}, "javax.swing.JComponent,~S,~O");
+c$.makeKeyBindings = Clazz.defineMethod (c$, "makeKeyBindings", 
+function (keyBindingList) {
+swingjs.JSToolkit.notImplemented (null);
+return null;
+}, "~A");
+c$.makeInputMap = Clazz.defineMethod (c$, "makeInputMap", 
+function (keys) {
+swingjs.JSToolkit.notImplemented (null);
+return null;
+}, "~A");
+c$.makeComponentInputMap = Clazz.defineMethod (c$, "makeComponentInputMap", 
+function (c, keys) {
+swingjs.JSToolkit.notImplemented (null);
+return null;
+}, "javax.swing.JComponent,~A");
+c$.loadKeyBindings = Clazz.defineMethod (c$, "loadKeyBindings", 
+function (retMap, keys) {
+swingjs.JSToolkit.notImplemented (null);
+}, "javax.swing.InputMap,~A");
+c$.makeIcon = Clazz.defineMethod (c$, "makeIcon", 
+function (baseClass, gifFile) {
+swingjs.JSToolkit.notImplemented (null);
+return null;
+}, "Class,~S");
+Clazz.defineMethod (c$, "getLayoutStyle", 
+function () {
+return jssun.swing.DefaultLayoutStyle.getInstance ();
+});
+Clazz.defineMethod (c$, "provideErrorFeedback", 
+function (component) {
+swingjs.JSToolkit.notImplemented (null);
+}, "java.awt.Component");
+c$.getDesktopPropertyValue = Clazz.defineMethod (c$, "getDesktopPropertyValue", 
+function (systemPropertyName, fallbackValue) {
+swingjs.JSToolkit.notImplemented (null);
+return fallbackValue;
+}, "~S,~O");
+Clazz.defineMethod (c$, "getDisabledIcon", 
+function (component, icon) {
+swingjs.JSToolkit.notImplemented (null);
+return null;
+}, "javax.swing.JComponent,javax.swing.Icon");
+Clazz.defineMethod (c$, "getDisabledSelectedIcon", 
+function (component, icon) {
+return this.getDisabledIcon (component, icon);
+}, "javax.swing.JComponent,javax.swing.Icon");
+Clazz.defineMethod (c$, "getSupportsWindowDecorations", 
+function () {
+return false;
+});
+Clazz.defineMethod (c$, "initialize", 
+function () {
+});
+Clazz.defineMethod (c$, "uninitialize", 
+function () {
+});
+Clazz.defineMethod (c$, "getDefaults", 
+function () {
+return null;
+});
+Clazz.overrideMethod (c$, "toString", 
+function () {
+return "[" + this.getDescription () + " - " + this.getClass ().getName () + "]";
+});
+});