JAL-1807 test
[jalviewjs.git] / bin / javajs / awt / Container.js
index fe3fb75..5bb85ea 100644 (file)
@@ -1,65 +1,65 @@
-Clazz.declarePackage ("javajs.awt");\r
-Clazz.load (["javajs.awt.Component"], "javajs.awt.Container", ["javajs.util.Lst"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.list = null;\r
-this.cList = null;\r
-Clazz.instantialize (this, arguments);\r
-}, javajs.awt, "Container", javajs.awt.Component);\r
-Clazz.defineMethod (c$, "getComponent", \r
-function (i) {\r
-return this.list.get (i);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getComponentCount", \r
-function () {\r
-return (this.list == null ? 0 : this.list.size ());\r
-});\r
-Clazz.defineMethod (c$, "getComponents", \r
-function () {\r
-if (this.cList == null) {\r
-if (this.list == null) return  new Array (0);\r
-this.cList = this.list.toArray ();\r
-}return this.cList;\r
-});\r
-Clazz.defineMethod (c$, "add", \r
-function (component) {\r
-return this.addComponent (component);\r
-}, "javajs.awt.Component");\r
-Clazz.defineMethod (c$, "addComponent", \r
-function (component) {\r
-if (this.list == null) this.list =  new javajs.util.Lst ();\r
-this.list.addLast (component);\r
-this.cList = null;\r
-component.parent = this;\r
-return component;\r
-}, "javajs.awt.Component");\r
-Clazz.defineMethod (c$, "insertComponent", \r
-function (component, index) {\r
-if (this.list == null) return this.addComponent (component);\r
-this.list.add (index, component);\r
-this.cList = null;\r
-component.parent = this;\r
-return component;\r
-}, "javajs.awt.Component,~N");\r
-Clazz.defineMethod (c$, "remove", \r
-function (i) {\r
-var c = this.list.remove (i);\r
-c.parent = null;\r
-this.cList = null;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "removeAll", \r
-function () {\r
-if (this.list != null) {\r
-for (var i = this.list.size (); --i >= 0; ) this.list.get (i).parent = null;\r
-\r
-this.list.clear ();\r
-}this.cList = null;\r
-});\r
-Clazz.defineMethod (c$, "getSubcomponentWidth", \r
-function () {\r
-return (this.list != null && this.list.size () == 1 ? this.list.get (0).getSubcomponentWidth () : 0);\r
-});\r
-Clazz.defineMethod (c$, "getSubcomponentHeight", \r
-function () {\r
-return (this.list != null && this.list.size () == 1 ? this.list.get (0).getSubcomponentHeight () : 0);\r
-});\r
-});\r
+Clazz.declarePackage ("javajs.awt");
+Clazz.load (["javajs.awt.Component"], "javajs.awt.Container", ["javajs.util.Lst"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.list = null;
+this.cList = null;
+Clazz.instantialize (this, arguments);
+}, javajs.awt, "Container", javajs.awt.Component);
+Clazz.defineMethod (c$, "getComponent", 
+function (i) {
+return this.list.get (i);
+}, "~N");
+Clazz.defineMethod (c$, "getComponentCount", 
+function () {
+return (this.list == null ? 0 : this.list.size ());
+});
+Clazz.defineMethod (c$, "getComponents", 
+function () {
+if (this.cList == null) {
+if (this.list == null) return  new Array (0);
+this.cList = this.list.toArray ();
+}return this.cList;
+});
+Clazz.defineMethod (c$, "add", 
+function (component) {
+return this.addComponent (component);
+}, "javajs.awt.Component");
+Clazz.defineMethod (c$, "addComponent", 
+function (component) {
+if (this.list == null) this.list =  new javajs.util.Lst ();
+this.list.addLast (component);
+this.cList = null;
+component.parent = this;
+return component;
+}, "javajs.awt.Component");
+Clazz.defineMethod (c$, "insertComponent", 
+function (component, index) {
+if (this.list == null) return this.addComponent (component);
+this.list.add (index, component);
+this.cList = null;
+component.parent = this;
+return component;
+}, "javajs.awt.Component,~N");
+Clazz.defineMethod (c$, "remove", 
+function (i) {
+var c = this.list.remove (i);
+c.parent = null;
+this.cList = null;
+}, "~N");
+Clazz.defineMethod (c$, "removeAll", 
+function () {
+if (this.list != null) {
+for (var i = this.list.size (); --i >= 0; ) this.list.get (i).parent = null;
+
+this.list.clear ();
+}this.cList = null;
+});
+Clazz.defineMethod (c$, "getSubcomponentWidth", 
+function () {
+return (this.list != null && this.list.size () == 1 ? this.list.get (0).getSubcomponentWidth () : 0);
+});
+Clazz.defineMethod (c$, "getSubcomponentHeight", 
+function () {
+return (this.list != null && this.list.size () == 1 ? this.list.get (0).getSubcomponentHeight () : 0);
+});
+});