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