X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjava%2Futil%2FPropertyResourceBundle.js;fp=site%2Fswingjs%2Fj2s%2Fjava%2Futil%2FPropertyResourceBundle.js;h=078fa84671019497375c26c4feca05b673bcdf75;hp=81fa9f9e0695c25e228fbbc967094abb6920ed72;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/java/util/PropertyResourceBundle.js b/site/swingjs/j2s/java/util/PropertyResourceBundle.js index 81fa9f9..078fa84 100644 --- a/site/swingjs/j2s/java/util/PropertyResourceBundle.js +++ b/site/swingjs/j2s/java/util/PropertyResourceBundle.js @@ -1,45 +1,45 @@ -Clazz.declarePackage ("java.util"); -Clazz.load (["java.util.ResourceBundle"], "java.util.PropertyResourceBundle", ["java.lang.NullPointerException", "java.util.HashMap", "java.util.Properties", "jssun.util.ResourceBundleEnumeration"], function () { -c$ = Clazz.decorateAsClass (function () { -this.lookup = null; -Clazz.instantialize (this, arguments); -}, java.util, "PropertyResourceBundle", java.util.ResourceBundle); -Clazz.makeConstructor (c$, -function (stream) { -Clazz.superConstructor (this, java.util.PropertyResourceBundle, []); -this.setStream (stream); -}, "java.io.InputStream"); -Clazz.defineMethod (c$, "setStream", -function (stream) { -var properties = new java.util.Properties (); -properties.load (stream); -this.lookup = new java.util.HashMap (properties); -return this; -}, "java.io.InputStream"); -Clazz.makeConstructor (c$, -function (reader) { -Clazz.superConstructor (this, java.util.PropertyResourceBundle, []); -var properties = new java.util.Properties (); -properties.load (reader); -this.lookup = new java.util.HashMap (properties); -}, "java.io.Reader"); -Clazz.makeConstructor (c$, -function () { -Clazz.superConstructor (this, java.util.PropertyResourceBundle, []); -}); -Clazz.overrideMethod (c$, "handleGetObject", -function (key) { -if (key == null) { -throw new NullPointerException (); -}return this.lookup.get (key); -}, "~S"); -Clazz.defineMethod (c$, "getKeys", -function () { -var parent = this.parent; -return new jssun.util.ResourceBundleEnumeration (this.lookup.keySet (), (parent != null) ? parent.getKeys () : null); -}); -Clazz.overrideMethod (c$, "handleKeySet", -function () { -return this.lookup.keySet (); -}); -}); +Clazz.declarePackage ("java.util"); +Clazz.load (["java.util.ResourceBundle"], "java.util.PropertyResourceBundle", ["java.lang.NullPointerException", "java.util.HashMap", "java.util.Properties", "jssun.util.ResourceBundleEnumeration"], function () { +c$ = Clazz.decorateAsClass (function () { +this.lookup = null; +Clazz.instantialize (this, arguments); +}, java.util, "PropertyResourceBundle", java.util.ResourceBundle); +Clazz.makeConstructor (c$, +function (stream) { +Clazz.superConstructor (this, java.util.PropertyResourceBundle, []); +this.setStream (stream); +}, "java.io.InputStream"); +Clazz.defineMethod (c$, "setStream", +function (stream) { +var properties = new java.util.Properties (); +properties.load (stream); +this.lookup = new java.util.HashMap (properties); +return this; +}, "java.io.InputStream"); +Clazz.makeConstructor (c$, +function (reader) { +Clazz.superConstructor (this, java.util.PropertyResourceBundle, []); +var properties = new java.util.Properties (); +properties.load (reader); +this.lookup = new java.util.HashMap (properties); +}, "java.io.Reader"); +Clazz.makeConstructor (c$, +function () { +Clazz.superConstructor (this, java.util.PropertyResourceBundle, []); +}); +Clazz.overrideMethod (c$, "handleGetObject", +function (key) { +if (key == null) { +throw new NullPointerException (); +}return this.lookup.get (key); +}, "~S"); +Clazz.defineMethod (c$, "getKeys", +function () { +var parent = this.parent; +return new jssun.util.ResourceBundleEnumeration (this.lookup.keySet (), (parent != null) ? parent.getKeys () : null); +}); +Clazz.overrideMethod (c$, "handleKeySet", +function () { +return this.lookup.keySet (); +}); +});