1 Clazz.declarePackage ("javajs.swing");
2 Clazz.load (null, "javajs.swing.GridBagConstraints", ["javajs.swing.Insets"], function () {
3 c$ = Clazz.decorateAsClass (function () {
15 Clazz.instantialize (this, arguments);
16 }, javajs.swing, "GridBagConstraints");
17 Clazz.makeConstructor (c$,
18 function (gridx, gridy, gridwidth, gridheight, weightx, weighty, anchor, fill, insets, ipadx, ipady) {
21 this.gridwidth = gridwidth;
22 this.gridheight = gridheight;
23 this.weightx = weightx;
24 this.weighty = weighty;
27 if (insets == null) insets = new javajs.swing.Insets (0, 0, 0, 0);
31 }, "~N,~N,~N,~N,~N,~N,~N,~N,javajs.swing.Insets,~N,~N");
32 Clazz.defineMethod (c$, "getStyle",
34 return "style='" + (margins ? "margin:" + this.insets.top + "px " + (this.ipady + this.insets.right) + "px " + this.insets.bottom + "px " + (this.ipadx + this.insets.left) + "px;" : "text-align:" + (this.anchor == 13 ? "right" : this.anchor == 17 ? "left" : "center")) + "'";
36 Clazz.defineStatics (c$,