X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjava%2Futil%2FListResourceBundle.js;fp=site%2Fswingjs%2Fj2s%2Fjava%2Futil%2FListResourceBundle.js;h=a7fb6b945a3d3e2d0ede757112d416688c243e24;hp=f9cf93c1d9b83f13acdaf77001cfa2f18e6c3d20;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/java/util/ListResourceBundle.js b/site/swingjs/j2s/java/util/ListResourceBundle.js index f9cf93c..a7fb6b9 100644 --- a/site/swingjs/j2s/java/util/ListResourceBundle.js +++ b/site/swingjs/j2s/java/util/ListResourceBundle.js @@ -1,46 +1,46 @@ -Clazz.declarePackage ("java.util"); -Clazz.load (["java.util.ResourceBundle"], "java.util.ListResourceBundle", ["java.lang.NullPointerException", "java.util.HashMap", "jssun.util.ResourceBundleEnumeration"], function () { -c$ = Clazz.decorateAsClass (function () { -this.lookup = null; -Clazz.instantialize (this, arguments); -}, java.util, "ListResourceBundle", java.util.ResourceBundle); -Clazz.makeConstructor (c$, -function () { -Clazz.superConstructor (this, java.util.ListResourceBundle, []); -}); -Clazz.overrideMethod (c$, "handleGetObject", -function (key) { -if (this.lookup == null) { -this.loadLookup (); -}if (key == null) { -throw new NullPointerException (); -}return this.lookup.get (key); -}, "~S"); -Clazz.defineMethod (c$, "getKeys", -function () { -if (this.lookup == null) { -this.loadLookup (); -}var parent = this.parent; -return new jssun.util.ResourceBundleEnumeration (this.lookup.keySet (), (parent != null) ? parent.getKeys () : null); -}); -Clazz.overrideMethod (c$, "handleKeySet", -function () { -if (this.lookup == null) { -this.loadLookup (); -}return this.lookup.keySet (); -}); -Clazz.defineMethod (c$, "loadLookup", - function () { -if (this.lookup != null) return; -var contents = this.getContents (); -var temp = new java.util.HashMap (contents.length); -for (var i = 0; i < contents.length; ++i) { -var key = contents[i][0]; -var value = contents[i][1]; -if (key == null || value == null) { -throw new NullPointerException (); -}temp.put (key, value); -} -this.lookup = temp; -}); -}); +Clazz.declarePackage ("java.util"); +Clazz.load (["java.util.ResourceBundle"], "java.util.ListResourceBundle", ["java.lang.NullPointerException", "java.util.HashMap", "jssun.util.ResourceBundleEnumeration"], function () { +c$ = Clazz.decorateAsClass (function () { +this.lookup = null; +Clazz.instantialize (this, arguments); +}, java.util, "ListResourceBundle", java.util.ResourceBundle); +Clazz.makeConstructor (c$, +function () { +Clazz.superConstructor (this, java.util.ListResourceBundle, []); +}); +Clazz.overrideMethod (c$, "handleGetObject", +function (key) { +if (this.lookup == null) { +this.loadLookup (); +}if (key == null) { +throw new NullPointerException (); +}return this.lookup.get (key); +}, "~S"); +Clazz.defineMethod (c$, "getKeys", +function () { +if (this.lookup == null) { +this.loadLookup (); +}var parent = this.parent; +return new jssun.util.ResourceBundleEnumeration (this.lookup.keySet (), (parent != null) ? parent.getKeys () : null); +}); +Clazz.overrideMethod (c$, "handleKeySet", +function () { +if (this.lookup == null) { +this.loadLookup (); +}return this.lookup.keySet (); +}); +Clazz.defineMethod (c$, "loadLookup", + function () { +if (this.lookup != null) return; +var contents = this.getContents (); +var temp = new java.util.HashMap (contents.length); +for (var i = 0; i < contents.length; ++i) { +var key = contents[i][0]; +var value = contents[i][1]; +if (key == null || value == null) { +throw new NullPointerException (); +}temp.put (key, value); +} +this.lookup = temp; +}); +});