Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / text / FieldPosition.js
index d578d15..3d30b75 100644 (file)
-Clazz.declarePackage ("java.text");\r
-Clazz.load (["java.text.Format"], "java.text.FieldPosition", null, function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.field = 0;\r
-this.endIndex = 0;\r
-this.beginIndex = 0;\r
-this.attribute = null;\r
-if (!Clazz.isClassDefined ("java.text.FieldPosition.Delegate")) {\r
-java.text.FieldPosition.$FieldPosition$Delegate$ ();\r
-}\r
-Clazz.instantialize (this, arguments);\r
-}, java.text, "FieldPosition");\r
-Clazz.makeConstructor (c$, \r
-function (field) {\r
-this.field = field;\r
-}, "~N");\r
-Clazz.makeConstructor (c$, \r
-function (attribute) {\r
-this.construct (attribute, -1);\r
-}, "java.text.Format.Field");\r
-Clazz.makeConstructor (c$, \r
-function (attribute, fieldID) {\r
-this.attribute = attribute;\r
-this.field = fieldID;\r
-}, "java.text.Format.Field,~N");\r
-Clazz.defineMethod (c$, "getFieldAttribute", \r
-function () {\r
-return this.attribute;\r
-});\r
-Clazz.defineMethod (c$, "getField", \r
-function () {\r
-return this.field;\r
-});\r
-Clazz.defineMethod (c$, "getBeginIndex", \r
-function () {\r
-return this.beginIndex;\r
-});\r
-Clazz.defineMethod (c$, "getEndIndex", \r
-function () {\r
-return this.endIndex;\r
-});\r
-Clazz.defineMethod (c$, "setBeginIndex", \r
-function (bi) {\r
-this.beginIndex = bi;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "setEndIndex", \r
-function (ei) {\r
-this.endIndex = ei;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getFieldDelegate", \r
-function () {\r
-return Clazz.innerTypeInstance (java.text.FieldPosition.Delegate, this, null);\r
-});\r
-Clazz.overrideMethod (c$, "equals", \r
-function (obj) {\r
-if (obj == null) return false;\r
-if (!(Clazz.instanceOf (obj, java.text.FieldPosition))) return false;\r
-var other = obj;\r
-if (this.attribute == null) {\r
-if (other.attribute != null) {\r
-return false;\r
-}} else if (!this.attribute.equals (other.attribute)) {\r
-return false;\r
-}return (this.beginIndex == other.beginIndex && this.endIndex == other.endIndex && this.field == other.field);\r
-}, "~O");\r
-Clazz.overrideMethod (c$, "hashCode", \r
-function () {\r
-return (this.field << 24) | (this.beginIndex << 16) | this.endIndex;\r
-});\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-return this.getClass ().getName () + "[field=" + this.field + ",attribute=" + this.attribute + ",beginIndex=" + this.beginIndex + ",endIndex=" + this.endIndex + ']';\r
-});\r
-Clazz.defineMethod (c$, "matchesField", \r
- function (attribute) {\r
-if (this.attribute != null) {\r
-return this.attribute.equals (attribute);\r
-}return false;\r
-}, "java.text.Format.Field");\r
-Clazz.defineMethod (c$, "matchesField", \r
- function (attribute, field) {\r
-if (this.attribute != null) {\r
-return this.attribute.equals (attribute);\r
-}return (field == this.field);\r
-}, "java.text.Format.Field,~N");\r
-c$.$FieldPosition$Delegate$ = function () {\r
-Clazz.pu$h(self.c$);\r
-c$ = Clazz.decorateAsClass (function () {\r
-Clazz.prepareCallback (this, arguments);\r
-this.encounteredField = false;\r
-Clazz.instantialize (this, arguments);\r
-}, java.text.FieldPosition, "Delegate", null, java.text.Format.FieldDelegate);\r
-Clazz.defineMethod (c$, "formatted", \r
-function (a, b, c, d, e) {\r
-if (!this.encounteredField && this.b$["java.text.FieldPosition"].matchesField (a)) {\r
-this.b$["java.text.FieldPosition"].setBeginIndex (c);\r
-this.b$["java.text.FieldPosition"].setEndIndex (d);\r
-this.encounteredField = (c != d);\r
-}}, "java.text.Format.Field,~O,~N,~N,StringBuffer");\r
-Clazz.defineMethod (c$, "formatted", \r
-function (a, b, c, d, e, f) {\r
-if (!this.encounteredField && this.b$["java.text.FieldPosition"].matchesField (b, a)) {\r
-this.b$["java.text.FieldPosition"].setBeginIndex (d);\r
-this.b$["java.text.FieldPosition"].setEndIndex (e);\r
-this.encounteredField = (d != e);\r
-}}, "~N,java.text.Format.Field,~O,~N,~N,StringBuffer");\r
-c$ = Clazz.p0p ();\r
-};\r
-});\r
+Clazz.declarePackage ("java.text");
+Clazz.load (["java.text.Format"], "java.text.FieldPosition", null, function () {
+c$ = Clazz.decorateAsClass (function () {
+this.field = 0;
+this.endIndex = 0;
+this.beginIndex = 0;
+this.attribute = null;
+if (!Clazz.isClassDefined ("java.text.FieldPosition.Delegate")) {
+java.text.FieldPosition.$FieldPosition$Delegate$ ();
+}
+Clazz.instantialize (this, arguments);
+}, java.text, "FieldPosition");
+Clazz.makeConstructor (c$, 
+function (field) {
+this.field = field;
+}, "~N");
+Clazz.makeConstructor (c$, 
+function (attribute) {
+this.construct (attribute, -1);
+}, "java.text.Format.Field");
+Clazz.makeConstructor (c$, 
+function (attribute, fieldID) {
+this.attribute = attribute;
+this.field = fieldID;
+}, "java.text.Format.Field,~N");
+Clazz.defineMethod (c$, "getFieldAttribute", 
+function () {
+return this.attribute;
+});
+Clazz.defineMethod (c$, "getField", 
+function () {
+return this.field;
+});
+Clazz.defineMethod (c$, "getBeginIndex", 
+function () {
+return this.beginIndex;
+});
+Clazz.defineMethod (c$, "getEndIndex", 
+function () {
+return this.endIndex;
+});
+Clazz.defineMethod (c$, "setBeginIndex", 
+function (bi) {
+this.beginIndex = bi;
+}, "~N");
+Clazz.defineMethod (c$, "setEndIndex", 
+function (ei) {
+this.endIndex = ei;
+}, "~N");
+Clazz.defineMethod (c$, "getFieldDelegate", 
+function () {
+return Clazz.innerTypeInstance (java.text.FieldPosition.Delegate, this, null);
+});
+Clazz.overrideMethod (c$, "equals", 
+function (obj) {
+if (obj == null) return false;
+if (!(Clazz.instanceOf (obj, java.text.FieldPosition))) return false;
+var other = obj;
+if (this.attribute == null) {
+if (other.attribute != null) {
+return false;
+}} else if (!this.attribute.equals (other.attribute)) {
+return false;
+}return (this.beginIndex == other.beginIndex && this.endIndex == other.endIndex && this.field == other.field);
+}, "~O");
+Clazz.overrideMethod (c$, "hashCode", 
+function () {
+return (this.field << 24) | (this.beginIndex << 16) | this.endIndex;
+});
+Clazz.overrideMethod (c$, "toString", 
+function () {
+return this.getClass ().getName () + "[field=" + this.field + ",attribute=" + this.attribute + ",beginIndex=" + this.beginIndex + ",endIndex=" + this.endIndex + ']';
+});
+Clazz.defineMethod (c$, "matchesField", 
+ function (attribute) {
+if (this.attribute != null) {
+return this.attribute.equals (attribute);
+}return false;
+}, "java.text.Format.Field");
+Clazz.defineMethod (c$, "matchesField", 
+ function (attribute, field) {
+if (this.attribute != null) {
+return this.attribute.equals (attribute);
+}return (field == this.field);
+}, "java.text.Format.Field,~N");
+c$.$FieldPosition$Delegate$ = function () {
+Clazz.pu$h(self.c$);
+c$ = Clazz.decorateAsClass (function () {
+Clazz.prepareCallback (this, arguments);
+this.encounteredField = false;
+Clazz.instantialize (this, arguments);
+}, java.text.FieldPosition, "Delegate", null, java.text.Format.FieldDelegate);
+Clazz.defineMethod (c$, "formatted", 
+function (a, b, c, d, e) {
+if (!this.encounteredField && this.b$["java.text.FieldPosition"].matchesField (a)) {
+this.b$["java.text.FieldPosition"].setBeginIndex (c);
+this.b$["java.text.FieldPosition"].setEndIndex (d);
+this.encounteredField = (c != d);
+}}, "java.text.Format.Field,~O,~N,~N,StringBuffer");
+Clazz.defineMethod (c$, "formatted", 
+function (a, b, c, d, e, f) {
+if (!this.encounteredField && this.b$["java.text.FieldPosition"].matchesField (b, a)) {
+this.b$["java.text.FieldPosition"].setBeginIndex (d);
+this.b$["java.text.FieldPosition"].setEndIndex (e);
+this.encounteredField = (d != e);
+}}, "~N,java.text.Format.Field,~O,~N,~N,StringBuffer");
+c$ = Clazz.p0p ();
+};
+});