Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / javax / swing / event / TreeSelectionEvent.js
index b8ae5bb..7f00bf1 100644 (file)
@@ -1,69 +1,69 @@
-Clazz.declarePackage ("javax.swing.event");\r
-Clazz.load (["java.util.EventObject"], "javax.swing.event.TreeSelectionEvent", ["java.lang.IllegalArgumentException"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.paths = null;\r
-this.areNew = null;\r
-this.oldLeadSelectionPath = null;\r
-this.newLeadSelectionPath = null;\r
-Clazz.instantialize (this, arguments);\r
-}, javax.swing.event, "TreeSelectionEvent", java.util.EventObject);\r
-Clazz.makeConstructor (c$, \r
-function (source, paths, areNew, oldLeadSelectionPath, newLeadSelectionPath) {\r
-Clazz.superConstructor (this, javax.swing.event.TreeSelectionEvent, [source]);\r
-this.paths = paths;\r
-this.areNew = areNew;\r
-this.oldLeadSelectionPath = oldLeadSelectionPath;\r
-this.newLeadSelectionPath = newLeadSelectionPath;\r
-}, "~O,~A,~A,javax.swing.tree.TreePath,javax.swing.tree.TreePath");\r
-Clazz.makeConstructor (c$, \r
-function (source, path, isNew, oldLeadSelectionPath, newLeadSelectionPath) {\r
-Clazz.superConstructor (this, javax.swing.event.TreeSelectionEvent, [source]);\r
-this.paths =  new Array (1);\r
-this.paths[0] = path;\r
-this.areNew =  Clazz.newBooleanArray (1, false);\r
-this.areNew[0] = isNew;\r
-this.oldLeadSelectionPath = oldLeadSelectionPath;\r
-this.newLeadSelectionPath = newLeadSelectionPath;\r
-}, "~O,javax.swing.tree.TreePath,~B,javax.swing.tree.TreePath,javax.swing.tree.TreePath");\r
-Clazz.defineMethod (c$, "getPaths", \r
-function () {\r
-var numPaths;\r
-var retPaths;\r
-numPaths = this.paths.length;\r
-retPaths =  new Array (numPaths);\r
-System.arraycopy (this.paths, 0, retPaths, 0, numPaths);\r
-return retPaths;\r
-});\r
-Clazz.defineMethod (c$, "getPath", \r
-function () {\r
-return this.paths[0];\r
-});\r
-Clazz.defineMethod (c$, "isAddedPath", \r
-function () {\r
-return this.areNew[0];\r
-});\r
-Clazz.defineMethod (c$, "isAddedPath", \r
-function (path) {\r
-for (var counter = this.paths.length - 1; counter >= 0; counter--) if (this.paths[counter].equals (path)) return this.areNew[counter];\r
-\r
-throw  new IllegalArgumentException ("path is not a path identified by the TreeSelectionEvent");\r
-}, "javax.swing.tree.TreePath");\r
-Clazz.defineMethod (c$, "isAddedPath", \r
-function (index) {\r
-if (this.paths == null || index < 0 || index >= this.paths.length) {\r
-throw  new IllegalArgumentException ("index is beyond range of added paths identified by TreeSelectionEvent");\r
-}return this.areNew[index];\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getOldLeadSelectionPath", \r
-function () {\r
-return this.oldLeadSelectionPath;\r
-});\r
-Clazz.defineMethod (c$, "getNewLeadSelectionPath", \r
-function () {\r
-return this.newLeadSelectionPath;\r
-});\r
-Clazz.defineMethod (c$, "cloneWithSource", \r
-function (newSource) {\r
-return  new javax.swing.event.TreeSelectionEvent (newSource, this.paths, this.areNew, this.oldLeadSelectionPath, this.newLeadSelectionPath);\r
-}, "~O");\r
-});\r
+Clazz.declarePackage ("javax.swing.event");
+Clazz.load (["java.util.EventObject"], "javax.swing.event.TreeSelectionEvent", ["java.lang.IllegalArgumentException"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.paths = null;
+this.areNew = null;
+this.oldLeadSelectionPath = null;
+this.newLeadSelectionPath = null;
+Clazz.instantialize (this, arguments);
+}, javax.swing.event, "TreeSelectionEvent", java.util.EventObject);
+Clazz.makeConstructor (c$, 
+function (source, paths, areNew, oldLeadSelectionPath, newLeadSelectionPath) {
+Clazz.superConstructor (this, javax.swing.event.TreeSelectionEvent, [source]);
+this.paths = paths;
+this.areNew = areNew;
+this.oldLeadSelectionPath = oldLeadSelectionPath;
+this.newLeadSelectionPath = newLeadSelectionPath;
+}, "~O,~A,~A,javax.swing.tree.TreePath,javax.swing.tree.TreePath");
+Clazz.makeConstructor (c$, 
+function (source, path, isNew, oldLeadSelectionPath, newLeadSelectionPath) {
+Clazz.superConstructor (this, javax.swing.event.TreeSelectionEvent, [source]);
+this.paths =  new Array (1);
+this.paths[0] = path;
+this.areNew =  Clazz.newBooleanArray (1, false);
+this.areNew[0] = isNew;
+this.oldLeadSelectionPath = oldLeadSelectionPath;
+this.newLeadSelectionPath = newLeadSelectionPath;
+}, "~O,javax.swing.tree.TreePath,~B,javax.swing.tree.TreePath,javax.swing.tree.TreePath");
+Clazz.defineMethod (c$, "getPaths", 
+function () {
+var numPaths;
+var retPaths;
+numPaths = this.paths.length;
+retPaths =  new Array (numPaths);
+System.arraycopy (this.paths, 0, retPaths, 0, numPaths);
+return retPaths;
+});
+Clazz.defineMethod (c$, "getPath", 
+function () {
+return this.paths[0];
+});
+Clazz.defineMethod (c$, "isAddedPath", 
+function () {
+return this.areNew[0];
+});
+Clazz.defineMethod (c$, "isAddedPath", 
+function (path) {
+for (var counter = this.paths.length - 1; counter >= 0; counter--) if (this.paths[counter].equals (path)) return this.areNew[counter];
+
+throw  new IllegalArgumentException ("path is not a path identified by the TreeSelectionEvent");
+}, "javax.swing.tree.TreePath");
+Clazz.defineMethod (c$, "isAddedPath", 
+function (index) {
+if (this.paths == null || index < 0 || index >= this.paths.length) {
+throw  new IllegalArgumentException ("index is beyond range of added paths identified by TreeSelectionEvent");
+}return this.areNew[index];
+}, "~N");
+Clazz.defineMethod (c$, "getOldLeadSelectionPath", 
+function () {
+return this.oldLeadSelectionPath;
+});
+Clazz.defineMethod (c$, "getNewLeadSelectionPath", 
+function () {
+return this.newLeadSelectionPath;
+});
+Clazz.defineMethod (c$, "cloneWithSource", 
+function (newSource) {
+return  new javax.swing.event.TreeSelectionEvent (newSource, this.paths, this.areNew, this.oldLeadSelectionPath, this.newLeadSelectionPath);
+}, "~O");
+});