X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjava%2Fawt%2FGridBagLayoutInfo.js;fp=site%2Fswingjs%2Fj2s%2Fjava%2Fawt%2FGridBagLayoutInfo.js;h=dfefb05c4bac0a92aab38d375d2ea04bf9716f04;hp=4186dc4dce1b2b591d4764b3e2d0d302955ffd54;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/java/awt/GridBagLayoutInfo.js b/site/swingjs/j2s/java/awt/GridBagLayoutInfo.js index 4186dc4..dfefb05 100644 --- a/site/swingjs/j2s/java/awt/GridBagLayoutInfo.js +++ b/site/swingjs/j2s/java/awt/GridBagLayoutInfo.js @@ -1,31 +1,31 @@ -Clazz.declarePackage ("java.awt"); -Clazz.load (null, "java.awt.GridBagLayoutInfo", ["java.awt.Component"], function () { -c$ = Clazz.decorateAsClass (function () { -this.width = 0; -this.height = 0; -this.startx = 0; -this.starty = 0; -this.minWidth = null; -this.minHeight = null; -this.weightX = null; -this.weightY = null; -this.$hasBaseline = false; -this.baselineType = null; -this.maxAscent = null; -this.maxDescent = null; -Clazz.instantialize (this, arguments); -}, java.awt, "GridBagLayoutInfo"); -Clazz.makeConstructor (c$, -function (width, height) { -this.width = width; -this.height = height; -}, "~N,~N"); -Clazz.defineMethod (c$, "hasConstantDescent", -function (row) { -return ((this.baselineType[row] & (1 << java.awt.Component.BaselineResizeBehavior.CONSTANT_DESCENT.ordinal ())) != 0); -}, "~N"); -Clazz.defineMethod (c$, "hasBaseline", -function (row) { -return (this.$hasBaseline && this.baselineType[row] != 0); -}, "~N"); -}); +Clazz.declarePackage ("java.awt"); +Clazz.load (null, "java.awt.GridBagLayoutInfo", ["java.awt.Component"], function () { +c$ = Clazz.decorateAsClass (function () { +this.width = 0; +this.height = 0; +this.startx = 0; +this.starty = 0; +this.minWidth = null; +this.minHeight = null; +this.weightX = null; +this.weightY = null; +this.$hasBaseline = false; +this.baselineType = null; +this.maxAscent = null; +this.maxDescent = null; +Clazz.instantialize (this, arguments); +}, java.awt, "GridBagLayoutInfo"); +Clazz.makeConstructor (c$, +function (width, height) { +this.width = width; +this.height = height; +}, "~N,~N"); +Clazz.defineMethod (c$, "hasConstantDescent", +function (row) { +return ((this.baselineType[row] & (1 << java.awt.Component.BaselineResizeBehavior.CONSTANT_DESCENT.ordinal ())) != 0); +}, "~N"); +Clazz.defineMethod (c$, "hasBaseline", +function (row) { +return (this.$hasBaseline && this.baselineType[row] != 0); +}, "~N"); +});