JAL-1807 update
[jalviewjs.git] / site / j2s / java / awt / GridBagLayoutInfo.js
1 Clazz.declarePackage ("java.awt");
2 Clazz.load (null, "java.awt.GridBagLayoutInfo", ["java.awt.Component"], function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.width = 0;
5 this.height = 0;
6 this.startx = 0;
7 this.starty = 0;
8 this.minWidth = null;
9 this.minHeight = null;
10 this.weightX = null;
11 this.weightY = null;
12 this.$hasBaseline = false;
13 this.baselineType = null;
14 this.maxAscent = null;
15 this.maxDescent = null;
16 Clazz.instantialize (this, arguments);
17 }, java.awt, "GridBagLayoutInfo");
18 Clazz.makeConstructor (c$, 
19 function (width, height) {
20 this.width = width;
21 this.height = height;
22 }, "~N,~N");
23 Clazz.defineMethod (c$, "hasConstantDescent", 
24 function (row) {
25 return ((this.baselineType[row] & (1 << java.awt.Component.BaselineResizeBehavior.CONSTANT_DESCENT.ordinal ())) != 0);
26 }, "~N");
27 Clazz.defineMethod (c$, "hasBaseline", 
28 function (row) {
29 return (this.$hasBaseline && this.baselineType[row] != 0);
30 }, "~N");
31 });