1 Clazz.declarePackage ("java.awt");
2 Clazz.load (null, "java.awt.GridBagConstraints", ["java.lang.InternalError", "java.awt.Insets"], function () {
3 c$ = Clazz.decorateAsClass (function () {
23 this.baselineResizeBehavior = null;
24 this.centerPadding = 0;
25 this.centerOffset = 0;
26 Clazz.instantialize (this, arguments);
27 }, java.awt, "GridBagConstraints", null, Cloneable);
28 Clazz.makeConstructor (c$,
38 this.insets = new java.awt.Insets (0, 0, 0, 0);
42 Clazz.makeConstructor (c$,
43 function (gridx, gridy, gridwidth, gridheight, weightx, weighty, anchor, fill, insets, ipadx, ipady) {
46 this.gridwidth = gridwidth;
47 this.gridheight = gridheight;
53 this.weightx = weightx;
54 this.weighty = weighty;
55 }, "~N,~N,~N,~N,~N,~N,~N,~N,java.awt.Insets,~N,~N");
56 Clazz.overrideMethod (c$, "toString",
58 return "[" + this.gridx + "," + this.gridy + "," + this.gridwidth + "," + this.gridheight + "," + this.fill + "," + this.ipadx + "," + this.ipady + "," + this.insets + "," + this.anchor + "," + this.weightx + "," + this.weighty + "]";
60 Clazz.defineMethod (c$, "clone",
63 var c = Clazz.superCall (this, java.awt.GridBagConstraints, "clone", []);
64 c.insets = this.insets.clone ();
67 if (Clazz.exceptionOf (e, CloneNotSupportedException)) {
68 throw new InternalError ();
74 Clazz.defineMethod (c$, "isVerticallyResizable",
76 return (this.fill == 1 || this.fill == 3);
78 Clazz.defineStatics (c$,
98 "FIRST_LINE_START", 23,
100 "LAST_LINE_START", 25,
103 "BASELINE_LEADING", 0x200,
104 "BASELINE_TRAILING", 0x300,
105 "ABOVE_BASELINE", 0x400,
106 "ABOVE_BASELINE_LEADING", 0x500,
107 "ABOVE_BASELINE_TRAILING", 0x600,
108 "BELOW_BASELINE", 0x700,
109 "BELOW_BASELINE_LEADING", 0x800,
110 "BELOW_BASELINE_TRAILING", 0x900);