X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fjavajs%2Fswing%2FGridBagConstraints.js;h=f631d92dbec0a62077dde1a926ff7d9a05e9ece7;hp=31cf45ce947cffc0d6b667eaf496e2ddd9c4d866;hb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/javajs/swing/GridBagConstraints.js b/bin/javajs/swing/GridBagConstraints.js index 31cf45c..f631d92 100644 --- a/bin/javajs/swing/GridBagConstraints.js +++ b/bin/javajs/swing/GridBagConstraints.js @@ -1,41 +1,41 @@ -Clazz.declarePackage ("javajs.swing"); -Clazz.load (null, "javajs.swing.GridBagConstraints", ["javajs.swing.Insets"], function () { -c$ = Clazz.decorateAsClass (function () { -this.gridx = 0; -this.gridy = 0; -this.gridwidth = 0; -this.gridheight = 0; -this.weightx = 0; -this.weighty = 0; -this.anchor = 0; -this.fill = 0; -this.insets = null; -this.ipadx = 0; -this.ipady = 0; -Clazz.instantialize (this, arguments); -}, javajs.swing, "GridBagConstraints"); -Clazz.makeConstructor (c$, -function (gridx, gridy, gridwidth, gridheight, weightx, weighty, anchor, fill, insets, ipadx, ipady) { -this.gridx = gridx; -this.gridy = gridy; -this.gridwidth = gridwidth; -this.gridheight = gridheight; -this.weightx = weightx; -this.weighty = weighty; -this.anchor = anchor; -this.fill = fill; -if (insets == null) insets = new javajs.swing.Insets (0, 0, 0, 0); -this.insets = insets; -this.ipadx = ipadx; -this.ipady = ipady; -}, "~N,~N,~N,~N,~N,~N,~N,~N,javajs.swing.Insets,~N,~N"); -Clazz.defineMethod (c$, "getStyle", -function (margins) { -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")) + "'"; -}, "~B"); -Clazz.defineStatics (c$, -"NONE", 0, -"CENTER", 10, -"WEST", 17, -"EAST", 13); -}); +Clazz.declarePackage ("javajs.swing"); +Clazz.load (null, "javajs.swing.GridBagConstraints", ["javajs.swing.Insets"], function () { +c$ = Clazz.decorateAsClass (function () { +this.gridx = 0; +this.gridy = 0; +this.gridwidth = 0; +this.gridheight = 0; +this.weightx = 0; +this.weighty = 0; +this.anchor = 0; +this.fill = 0; +this.insets = null; +this.ipadx = 0; +this.ipady = 0; +Clazz.instantialize (this, arguments); +}, javajs.swing, "GridBagConstraints"); +Clazz.makeConstructor (c$, +function (gridx, gridy, gridwidth, gridheight, weightx, weighty, anchor, fill, insets, ipadx, ipady) { +this.gridx = gridx; +this.gridy = gridy; +this.gridwidth = gridwidth; +this.gridheight = gridheight; +this.weightx = weightx; +this.weighty = weighty; +this.anchor = anchor; +this.fill = fill; +if (insets == null) insets = new javajs.swing.Insets (0, 0, 0, 0); +this.insets = insets; +this.ipadx = ipadx; +this.ipady = ipady; +}, "~N,~N,~N,~N,~N,~N,~N,~N,javajs.swing.Insets,~N,~N"); +Clazz.defineMethod (c$, "getStyle", +function (margins) { +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")) + "'"; +}, "~B"); +Clazz.defineStatics (c$, +"NONE", 0, +"CENTER", 10, +"WEST", 17, +"EAST", 13); +});