X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjavax%2Fswing%2Fevent%2FTreeModelEvent.js;fp=site%2Fswingjs%2Fj2s%2Fjavax%2Fswing%2Fevent%2FTreeModelEvent.js;h=57b3a2814a04928d748640f1232845c46128fcc5;hp=0dffcbf68e36d8649ffa76961a71d9e889662f3f;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/javax/swing/event/TreeModelEvent.js b/site/swingjs/j2s/javax/swing/event/TreeModelEvent.js index 0dffcbf..57b3a28 100644 --- a/site/swingjs/j2s/javax/swing/event/TreeModelEvent.js +++ b/site/swingjs/j2s/javax/swing/event/TreeModelEvent.js @@ -1,74 +1,74 @@ -Clazz.declarePackage ("javax.swing.event"); -Clazz.load (["java.util.EventObject"], "javax.swing.event.TreeModelEvent", ["java.lang.StringBuffer", "javax.swing.tree.TreePath"], function () { -c$ = Clazz.decorateAsClass (function () { -this.path = null; -this.childIndices = null; -this.children = null; -Clazz.instantialize (this, arguments); -}, javax.swing.event, "TreeModelEvent", java.util.EventObject); -Clazz.makeConstructor (c$, -function (source, path, childIndices, children) { -this.construct (source, new javax.swing.tree.TreePath (path), childIndices, children); -}, "~O,~A,~A,~A"); -Clazz.makeConstructor (c$, -function (source, path, childIndices, children) { -Clazz.superConstructor (this, javax.swing.event.TreeModelEvent, [source]); -this.path = path; -this.childIndices = childIndices; -this.children = children; -}, "~O,javax.swing.tree.TreePath,~A,~A"); -Clazz.makeConstructor (c$, -function (source, path) { -this.construct (source, new javax.swing.tree.TreePath (path)); -}, "~O,~A"); -Clazz.makeConstructor (c$, -function (source, path) { -Clazz.superConstructor (this, javax.swing.event.TreeModelEvent, [source]); -this.path = path; -this.childIndices = Clazz.newIntArray (0, 0); -}, "~O,javax.swing.tree.TreePath"); -Clazz.defineMethod (c$, "getTreePath", -function () { -return this.path; -}); -Clazz.defineMethod (c$, "getPath", -function () { -if (this.path != null) return this.path.getPath (); -return null; -}); -Clazz.defineMethod (c$, "getChildren", -function () { -if (this.children != null) { -var cCount = this.children.length; -var retChildren = new Array (cCount); -System.arraycopy (this.children, 0, retChildren, 0, cCount); -return retChildren; -}return null; -}); -Clazz.defineMethod (c$, "getChildIndices", -function () { -if (this.childIndices != null) { -var cCount = this.childIndices.length; -var retArray = Clazz.newIntArray (cCount, 0); -System.arraycopy (this.childIndices, 0, retArray, 0, cCount); -return retArray; -}return null; -}); -Clazz.overrideMethod (c$, "toString", -function () { -var retBuffer = new StringBuffer (); -retBuffer.append (this.getClass ().getName () + " " + Integer.toString (this.hashCode ())); -if (this.path != null) retBuffer.append (" path " + this.path); -if (this.childIndices != null) { -retBuffer.append (" indices [ "); -for (var counter = 0; counter < this.childIndices.length; counter++) retBuffer.append (Integer.toString (this.childIndices[counter]) + " "); - -retBuffer.append ("]"); -}if (this.children != null) { -retBuffer.append (" children [ "); -for (var counter = 0; counter < this.children.length; counter++) retBuffer.append (this.children[counter] + " "); - -retBuffer.append ("]"); -}return retBuffer.toString (); -}); -}); +Clazz.declarePackage ("javax.swing.event"); +Clazz.load (["java.util.EventObject"], "javax.swing.event.TreeModelEvent", ["java.lang.StringBuffer", "javax.swing.tree.TreePath"], function () { +c$ = Clazz.decorateAsClass (function () { +this.path = null; +this.childIndices = null; +this.children = null; +Clazz.instantialize (this, arguments); +}, javax.swing.event, "TreeModelEvent", java.util.EventObject); +Clazz.makeConstructor (c$, +function (source, path, childIndices, children) { +this.construct (source, new javax.swing.tree.TreePath (path), childIndices, children); +}, "~O,~A,~A,~A"); +Clazz.makeConstructor (c$, +function (source, path, childIndices, children) { +Clazz.superConstructor (this, javax.swing.event.TreeModelEvent, [source]); +this.path = path; +this.childIndices = childIndices; +this.children = children; +}, "~O,javax.swing.tree.TreePath,~A,~A"); +Clazz.makeConstructor (c$, +function (source, path) { +this.construct (source, new javax.swing.tree.TreePath (path)); +}, "~O,~A"); +Clazz.makeConstructor (c$, +function (source, path) { +Clazz.superConstructor (this, javax.swing.event.TreeModelEvent, [source]); +this.path = path; +this.childIndices = Clazz.newIntArray (0, 0); +}, "~O,javax.swing.tree.TreePath"); +Clazz.defineMethod (c$, "getTreePath", +function () { +return this.path; +}); +Clazz.defineMethod (c$, "getPath", +function () { +if (this.path != null) return this.path.getPath (); +return null; +}); +Clazz.defineMethod (c$, "getChildren", +function () { +if (this.children != null) { +var cCount = this.children.length; +var retChildren = new Array (cCount); +System.arraycopy (this.children, 0, retChildren, 0, cCount); +return retChildren; +}return null; +}); +Clazz.defineMethod (c$, "getChildIndices", +function () { +if (this.childIndices != null) { +var cCount = this.childIndices.length; +var retArray = Clazz.newIntArray (cCount, 0); +System.arraycopy (this.childIndices, 0, retArray, 0, cCount); +return retArray; +}return null; +}); +Clazz.overrideMethod (c$, "toString", +function () { +var retBuffer = new StringBuffer (); +retBuffer.append (this.getClass ().getName () + " " + Integer.toString (this.hashCode ())); +if (this.path != null) retBuffer.append (" path " + this.path); +if (this.childIndices != null) { +retBuffer.append (" indices [ "); +for (var counter = 0; counter < this.childIndices.length; counter++) retBuffer.append (Integer.toString (this.childIndices[counter]) + " "); + +retBuffer.append ("]"); +}if (this.children != null) { +retBuffer.append (" children [ "); +for (var counter = 0; counter < this.children.length; counter++) retBuffer.append (this.children[counter] + " "); + +retBuffer.append ("]"); +}return retBuffer.toString (); +}); +});