1 Clazz.declarePackage ("javajs.swing");
\r
2 Clazz.load (null, "javajs.swing.GridBagConstraints", ["javajs.swing.Insets"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
15 Clazz.instantialize (this, arguments);
\r
16 }, javajs.swing, "GridBagConstraints");
\r
17 Clazz.makeConstructor (c$,
\r
18 function (gridx, gridy, gridwidth, gridheight, weightx, weighty, anchor, fill, insets, ipadx, ipady) {
\r
21 this.gridwidth = gridwidth;
\r
22 this.gridheight = gridheight;
\r
23 this.weightx = weightx;
\r
24 this.weighty = weighty;
\r
25 this.anchor = anchor;
\r
27 if (insets == null) insets = new javajs.swing.Insets (0, 0, 0, 0);
\r
28 this.insets = insets;
\r
31 }, "~N,~N,~N,~N,~N,~N,~N,~N,javajs.swing.Insets,~N,~N");
\r
32 Clazz.defineMethod (c$, "getStyle",
\r
33 function (margins) {
\r
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")) + "'";
\r
36 Clazz.defineStatics (c$,
\r