Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / javax / swing / JLabel.js
index 9f1cdc0..07c921b 100644 (file)
-Clazz.declarePackage ("javax.swing");\r
-Clazz.load (["javax.swing.JComponent", "$.SwingConstants"], "javax.swing.JLabel", ["java.lang.IllegalArgumentException", "javax.swing.SwingUtilities", "$.UIManager"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.mnemonic = '\0';\r
-this.mnemonicIndex = -1;\r
-this.text = "";\r
-this.defaultIcon = null;\r
-this.disabledIcon = null;\r
-this.disabledIconSet = false;\r
-this.verticalAlignment = 0;\r
-this.horizontalAlignment = 10;\r
-this.verticalTextPosition = 0;\r
-this.horizontalTextPosition = 11;\r
-this.iconTextGap = 4;\r
-this.labelFor = null;\r
-Clazz.instantialize (this, arguments);\r
-}, javax.swing, "JLabel", javax.swing.JComponent, javax.swing.SwingConstants);\r
-Clazz.makeConstructor (c$, \r
-function (text, icon, horizontalAlignment) {\r
-Clazz.superConstructor (this, javax.swing.JLabel, []);\r
-this.setText (text);\r
-this.setIcon (icon);\r
-this.setHorizontalAlignment (horizontalAlignment);\r
-this.updateUI ();\r
-this.setAlignmentX (0.0);\r
-}, "~S,javax.swing.Icon,~N");\r
-Clazz.makeConstructor (c$, \r
-function (text, horizontalAlignment) {\r
-this.construct (text, null, horizontalAlignment);\r
-}, "~S,~N");\r
-Clazz.makeConstructor (c$, \r
-function (text) {\r
-this.construct (text, null, 10);\r
-}, "~S");\r
-Clazz.makeConstructor (c$, \r
-function (image, horizontalAlignment) {\r
-this.construct (null, image, horizontalAlignment);\r
-}, "javax.swing.Icon,~N");\r
-Clazz.makeConstructor (c$, \r
-function (image) {\r
-this.construct (null, image, 0);\r
-}, "javax.swing.Icon");\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.construct ("", null, 10);\r
-});\r
-Clazz.overrideMethod (c$, "getUI", \r
-function () {\r
-return this.ui;\r
-});\r
-Clazz.defineMethod (c$, "setUI", \r
-function (ui) {\r
-Clazz.superCall (this, javax.swing.JLabel, "setUI", [ui]);\r
-if (!this.disabledIconSet && this.disabledIcon != null) {\r
-this.setDisabledIcon (null);\r
-}}, "javax.swing.plaf.LabelUI");\r
-Clazz.overrideMethod (c$, "updateUI", \r
-function () {\r
-this.setUI (javax.swing.UIManager.getUI (this));\r
-});\r
-Clazz.overrideMethod (c$, "getUIClassID", \r
-function () {\r
-return "LabelUI";\r
-});\r
-Clazz.defineMethod (c$, "getText", \r
-function () {\r
-return this.text;\r
-});\r
-Clazz.defineMethod (c$, "setText", \r
-function (text) {\r
-var oldValue = this.text;\r
-this.text = text;\r
-this.firePropertyChangeObject ("text", oldValue, text);\r
-this.setDisplayedMnemonicIndex (javax.swing.SwingUtilities.findDisplayedMnemonicIndex (text, this.getDisplayedMnemonic ()));\r
-if (text == null || oldValue == null || !text.equals (oldValue)) {\r
-this.revalidate ();\r
-this.repaint ();\r
-}}, "~S");\r
-Clazz.defineMethod (c$, "getIcon", \r
-function () {\r
-return this.defaultIcon;\r
-});\r
-Clazz.defineMethod (c$, "setIcon", \r
-function (icon) {\r
-var oldValue = this.defaultIcon;\r
-this.defaultIcon = icon;\r
-if ((this.defaultIcon !== oldValue) && !this.disabledIconSet) {\r
-this.disabledIcon = null;\r
-}this.firePropertyChangeObject ("icon", oldValue, this.defaultIcon);\r
-if (this.defaultIcon !== oldValue) {\r
-if ((this.defaultIcon == null) || (oldValue == null) || (this.defaultIcon.getIconWidth () != oldValue.getIconWidth ()) || (this.defaultIcon.getIconHeight () != oldValue.getIconHeight ())) {\r
-this.revalidate ();\r
-}this.repaint ();\r
-}}, "javax.swing.Icon");\r
-Clazz.defineMethod (c$, "getDisabledIcon", \r
-function () {\r
-if (!this.disabledIconSet && this.disabledIcon == null && this.defaultIcon != null) {\r
-this.disabledIcon = javax.swing.UIManager.getLookAndFeel ().getDisabledIcon (this, this.defaultIcon);\r
-if (this.disabledIcon != null) {\r
-this.firePropertyChangeObject ("disabledIcon", null, this.disabledIcon);\r
-}}return this.disabledIcon;\r
-});\r
-Clazz.defineMethod (c$, "setDisabledIcon", \r
-function (disabledIcon) {\r
-var oldValue = this.disabledIcon;\r
-this.disabledIcon = disabledIcon;\r
-this.disabledIconSet = (disabledIcon != null);\r
-this.firePropertyChangeObject ("disabledIcon", oldValue, disabledIcon);\r
-if (disabledIcon !== oldValue) {\r
-if (disabledIcon == null || oldValue == null || disabledIcon.getIconWidth () != oldValue.getIconWidth () || disabledIcon.getIconHeight () != oldValue.getIconHeight ()) {\r
-this.revalidate ();\r
-}if (!this.isEnabled ()) {\r
-this.repaint ();\r
-}}}, "javax.swing.Icon");\r
-Clazz.defineMethod (c$, "setDisplayedMnemonic", \r
-function (key) {\r
-var oldKey = this.mnemonic;\r
-this.mnemonic = key;\r
-this.firePropertyChangeInt ("displayedMnemonic", oldKey, this.mnemonic);\r
-this.setDisplayedMnemonicIndex (javax.swing.SwingUtilities.findDisplayedMnemonicIndex (this.getText (), this.mnemonic));\r
-if (key != oldKey) {\r
-this.revalidate ();\r
-this.repaint ();\r
-}}, "~N");\r
-Clazz.defineMethod (c$, "setDisplayedMnemonic", \r
-function (aChar) {\r
-var vk = (aChar).charCodeAt (0);\r
-if (vk >= 97 && vk <= 122) vk -= (32);\r
-this.setDisplayedMnemonic (vk);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getDisplayedMnemonic", \r
-function () {\r
-return this.mnemonic;\r
-});\r
-Clazz.defineMethod (c$, "setDisplayedMnemonicIndex", \r
-function (index) {\r
-var oldValue = this.mnemonicIndex;\r
-if (index == -1) {\r
-this.mnemonicIndex = -1;\r
-} else {\r
-var text = this.getText ();\r
-var textLength = (text == null) ? 0 : text.length;\r
-if (index < -1 || index >= textLength) {\r
-throw  new IllegalArgumentException ("index == " + index);\r
-}}this.mnemonicIndex = index;\r
-this.firePropertyChangeInt ("displayedMnemonicIndex", oldValue, index);\r
-if (index != oldValue) {\r
-this.revalidate ();\r
-this.repaint ();\r
-}}, "~N");\r
-Clazz.defineMethod (c$, "getDisplayedMnemonicIndex", \r
-function () {\r
-return this.mnemonicIndex;\r
-});\r
-Clazz.defineMethod (c$, "checkHorizontalKey", \r
-function (key, message) {\r
-if ((key == 2) || (key == 0) || (key == 4) || (key == 10) || (key == 11)) {\r
-return key;\r
-} else {\r
-throw  new IllegalArgumentException (message);\r
-}}, "~N,~S");\r
-Clazz.defineMethod (c$, "checkVerticalKey", \r
-function (key, message) {\r
-if ((key == 1) || (key == 0) || (key == 3)) {\r
-return key;\r
-} else {\r
-throw  new IllegalArgumentException (message);\r
-}}, "~N,~S");\r
-Clazz.defineMethod (c$, "getIconTextGap", \r
-function () {\r
-return this.iconTextGap;\r
-});\r
-Clazz.defineMethod (c$, "setIconTextGap", \r
-function (iconTextGap) {\r
-var oldValue = this.iconTextGap;\r
-this.iconTextGap = iconTextGap;\r
-this.firePropertyChangeInt ("iconTextGap", oldValue, iconTextGap);\r
-if (iconTextGap != oldValue) {\r
-this.revalidate ();\r
-this.repaint ();\r
-}}, "~N");\r
-Clazz.defineMethod (c$, "getVerticalAlignment", \r
-function () {\r
-return this.verticalAlignment;\r
-});\r
-Clazz.defineMethod (c$, "setVerticalAlignment", \r
-function (alignment) {\r
-if (alignment == this.verticalAlignment) return;\r
-var oldValue = this.verticalAlignment;\r
-this.verticalAlignment = this.checkVerticalKey (alignment, "verticalAlignment");\r
-this.firePropertyChangeInt ("verticalAlignment", oldValue, this.verticalAlignment);\r
-this.repaint ();\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getHorizontalAlignment", \r
-function () {\r
-return this.horizontalAlignment;\r
-});\r
-Clazz.defineMethod (c$, "setHorizontalAlignment", \r
-function (alignment) {\r
-if (alignment == this.horizontalAlignment) return;\r
-var oldValue = this.horizontalAlignment;\r
-this.horizontalAlignment = this.checkHorizontalKey (alignment, "horizontalAlignment");\r
-this.firePropertyChangeInt ("horizontalAlignment", oldValue, this.horizontalAlignment);\r
-this.repaint ();\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getVerticalTextPosition", \r
-function () {\r
-return this.verticalTextPosition;\r
-});\r
-Clazz.defineMethod (c$, "setVerticalTextPosition", \r
-function (textPosition) {\r
-if (textPosition == this.verticalTextPosition) return;\r
-var old = this.verticalTextPosition;\r
-this.verticalTextPosition = this.checkVerticalKey (textPosition, "verticalTextPosition");\r
-this.firePropertyChangeInt ("verticalTextPosition", old, this.verticalTextPosition);\r
-this.revalidate ();\r
-this.repaint ();\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getHorizontalTextPosition", \r
-function () {\r
-return this.horizontalTextPosition;\r
-});\r
-Clazz.defineMethod (c$, "setHorizontalTextPosition", \r
-function (textPosition) {\r
-var old = this.horizontalTextPosition;\r
-this.horizontalTextPosition = this.checkHorizontalKey (textPosition, "horizontalTextPosition");\r
-this.firePropertyChangeInt ("horizontalTextPosition", old, this.horizontalTextPosition);\r
-this.revalidate ();\r
-this.repaint ();\r
-}, "~N");\r
-Clazz.defineMethod (c$, "imageUpdate", \r
-function (img, infoflags, x, y, w, h) {\r
-if (!this.isShowing () || !javax.swing.SwingUtilities.doesIconReferenceImage (this.getIcon (), img) && !javax.swing.SwingUtilities.doesIconReferenceImage (this.disabledIcon, img)) {\r
-return false;\r
-}return Clazz.superCall (this, javax.swing.JLabel, "imageUpdate", [img, infoflags, x, y, w, h]);\r
-}, "java.awt.Image,~N,~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "paramString", \r
-function () {\r
-var textString = (this.text != null ? this.text : "");\r
-var defaultIconString = ((this.defaultIcon != null) && (this.defaultIcon !== this) ? this.defaultIcon.toString () : "");\r
-var disabledIconString = ((this.disabledIcon != null) && (this.disabledIcon !== this) ? this.disabledIcon.toString () : "");\r
-var labelForString = (this.labelFor != null ? this.labelFor.toString () : "");\r
-var verticalAlignmentString;\r
-if (this.verticalAlignment == 1) {\r
-verticalAlignmentString = "TOP";\r
-} else if (this.verticalAlignment == 0) {\r
-verticalAlignmentString = "CENTER";\r
-} else if (this.verticalAlignment == 3) {\r
-verticalAlignmentString = "BOTTOM";\r
-} else verticalAlignmentString = "";\r
-var horizontalAlignmentString;\r
-if (this.horizontalAlignment == 2) {\r
-horizontalAlignmentString = "LEFT";\r
-} else if (this.horizontalAlignment == 0) {\r
-horizontalAlignmentString = "CENTER";\r
-} else if (this.horizontalAlignment == 4) {\r
-horizontalAlignmentString = "RIGHT";\r
-} else if (this.horizontalAlignment == 10) {\r
-horizontalAlignmentString = "LEADING";\r
-} else if (this.horizontalAlignment == 11) {\r
-horizontalAlignmentString = "TRAILING";\r
-} else horizontalAlignmentString = "";\r
-var verticalTextPositionString;\r
-if (this.verticalTextPosition == 1) {\r
-verticalTextPositionString = "TOP";\r
-} else if (this.verticalTextPosition == 0) {\r
-verticalTextPositionString = "CENTER";\r
-} else if (this.verticalTextPosition == 3) {\r
-verticalTextPositionString = "BOTTOM";\r
-} else verticalTextPositionString = "";\r
-var horizontalTextPositionString;\r
-if (this.horizontalTextPosition == 2) {\r
-horizontalTextPositionString = "LEFT";\r
-} else if (this.horizontalTextPosition == 0) {\r
-horizontalTextPositionString = "CENTER";\r
-} else if (this.horizontalTextPosition == 4) {\r
-horizontalTextPositionString = "RIGHT";\r
-} else if (this.horizontalTextPosition == 10) {\r
-horizontalTextPositionString = "LEADING";\r
-} else if (this.horizontalTextPosition == 11) {\r
-horizontalTextPositionString = "TRAILING";\r
-} else horizontalTextPositionString = "";\r
-return Clazz.superCall (this, javax.swing.JLabel, "paramString", []) + ",defaultIcon=" + defaultIconString + ",disabledIcon=" + disabledIconString + ",horizontalAlignment=" + horizontalAlignmentString + ",horizontalTextPosition=" + horizontalTextPositionString + ",iconTextGap=" + this.iconTextGap + ",labelFor=" + labelForString + ",text=" + textString + ",verticalAlignment=" + verticalAlignmentString + ",verticalTextPosition=" + verticalTextPositionString;\r
-});\r
-Clazz.defineMethod (c$, "getLabelFor", \r
-function () {\r
-return this.labelFor;\r
-});\r
-Clazz.defineMethod (c$, "setLabelFor", \r
-function (c) {\r
-var oldC = this.labelFor;\r
-this.labelFor = c;\r
-this.firePropertyChangeObject ("labelFor", oldC, c);\r
-if (Clazz.instanceOf (oldC, javax.swing.JComponent)) {\r
-(oldC).putClientProperty ("labeledBy", null);\r
-}if (Clazz.instanceOf (c, javax.swing.JComponent)) {\r
-(c).putClientProperty ("labeledBy", this);\r
-}}, "java.awt.Component");\r
-Clazz.defineStatics (c$,\r
-"$uiClassID", "LabelUI",\r
-"LABELED_BY_PROPERTY", "labeledBy");\r
-});\r
+Clazz.declarePackage ("javax.swing");
+Clazz.load (["javax.swing.JComponent", "$.SwingConstants"], "javax.swing.JLabel", ["java.lang.IllegalArgumentException", "javax.swing.SwingUtilities", "$.UIManager"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.mnemonic = '\0';
+this.mnemonicIndex = -1;
+this.text = "";
+this.defaultIcon = null;
+this.disabledIcon = null;
+this.disabledIconSet = false;
+this.verticalAlignment = 0;
+this.horizontalAlignment = 10;
+this.verticalTextPosition = 0;
+this.horizontalTextPosition = 11;
+this.iconTextGap = 4;
+this.labelFor = null;
+Clazz.instantialize (this, arguments);
+}, javax.swing, "JLabel", javax.swing.JComponent, javax.swing.SwingConstants);
+Clazz.makeConstructor (c$, 
+function (text, icon, horizontalAlignment) {
+Clazz.superConstructor (this, javax.swing.JLabel, []);
+this.setText (text);
+this.setIcon (icon);
+this.setHorizontalAlignment (horizontalAlignment);
+this.updateUI ();
+this.setAlignmentX (0.0);
+}, "~S,javax.swing.Icon,~N");
+Clazz.makeConstructor (c$, 
+function (text, horizontalAlignment) {
+this.construct (text, null, horizontalAlignment);
+}, "~S,~N");
+Clazz.makeConstructor (c$, 
+function (text) {
+this.construct (text, null, 10);
+}, "~S");
+Clazz.makeConstructor (c$, 
+function (image, horizontalAlignment) {
+this.construct (null, image, horizontalAlignment);
+}, "javax.swing.Icon,~N");
+Clazz.makeConstructor (c$, 
+function (image) {
+this.construct (null, image, 0);
+}, "javax.swing.Icon");
+Clazz.makeConstructor (c$, 
+function () {
+this.construct ("", null, 10);
+});
+Clazz.overrideMethod (c$, "getUI", 
+function () {
+return this.ui;
+});
+Clazz.defineMethod (c$, "setUI", 
+function (ui) {
+Clazz.superCall (this, javax.swing.JLabel, "setUI", [ui]);
+if (!this.disabledIconSet && this.disabledIcon != null) {
+this.setDisabledIcon (null);
+}}, "javax.swing.plaf.LabelUI");
+Clazz.overrideMethod (c$, "updateUI", 
+function () {
+this.setUI (javax.swing.UIManager.getUI (this));
+});
+Clazz.overrideMethod (c$, "getUIClassID", 
+function () {
+return "LabelUI";
+});
+Clazz.defineMethod (c$, "getText", 
+function () {
+return this.text;
+});
+Clazz.defineMethod (c$, "setText", 
+function (text) {
+var oldValue = this.text;
+this.text = text;
+this.firePropertyChangeObject ("text", oldValue, text);
+this.setDisplayedMnemonicIndex (javax.swing.SwingUtilities.findDisplayedMnemonicIndex (text, this.getDisplayedMnemonic ()));
+if (text == null || oldValue == null || !text.equals (oldValue)) {
+this.revalidate ();
+this.repaint ();
+}}, "~S");
+Clazz.defineMethod (c$, "getIcon", 
+function () {
+return this.defaultIcon;
+});
+Clazz.defineMethod (c$, "setIcon", 
+function (icon) {
+var oldValue = this.defaultIcon;
+this.defaultIcon = icon;
+if ((this.defaultIcon !== oldValue) && !this.disabledIconSet) {
+this.disabledIcon = null;
+}this.firePropertyChangeObject ("icon", oldValue, this.defaultIcon);
+if (this.defaultIcon !== oldValue) {
+if ((this.defaultIcon == null) || (oldValue == null) || (this.defaultIcon.getIconWidth () != oldValue.getIconWidth ()) || (this.defaultIcon.getIconHeight () != oldValue.getIconHeight ())) {
+this.revalidate ();
+}this.repaint ();
+}}, "javax.swing.Icon");
+Clazz.defineMethod (c$, "getDisabledIcon", 
+function () {
+if (!this.disabledIconSet && this.disabledIcon == null && this.defaultIcon != null) {
+this.disabledIcon = javax.swing.UIManager.getLookAndFeel ().getDisabledIcon (this, this.defaultIcon);
+if (this.disabledIcon != null) {
+this.firePropertyChangeObject ("disabledIcon", null, this.disabledIcon);
+}}return this.disabledIcon;
+});
+Clazz.defineMethod (c$, "setDisabledIcon", 
+function (disabledIcon) {
+var oldValue = this.disabledIcon;
+this.disabledIcon = disabledIcon;
+this.disabledIconSet = (disabledIcon != null);
+this.firePropertyChangeObject ("disabledIcon", oldValue, disabledIcon);
+if (disabledIcon !== oldValue) {
+if (disabledIcon == null || oldValue == null || disabledIcon.getIconWidth () != oldValue.getIconWidth () || disabledIcon.getIconHeight () != oldValue.getIconHeight ()) {
+this.revalidate ();
+}if (!this.isEnabled ()) {
+this.repaint ();
+}}}, "javax.swing.Icon");
+Clazz.defineMethod (c$, "setDisplayedMnemonic", 
+function (key) {
+var oldKey = this.mnemonic;
+this.mnemonic = key;
+this.firePropertyChangeInt ("displayedMnemonic", oldKey, this.mnemonic);
+this.setDisplayedMnemonicIndex (javax.swing.SwingUtilities.findDisplayedMnemonicIndex (this.getText (), this.mnemonic));
+if (key != oldKey) {
+this.revalidate ();
+this.repaint ();
+}}, "~N");
+Clazz.defineMethod (c$, "setDisplayedMnemonic", 
+function (aChar) {
+var vk = (aChar).charCodeAt (0);
+if (vk >= 97 && vk <= 122) vk -= (32);
+this.setDisplayedMnemonic (vk);
+}, "~S");
+Clazz.defineMethod (c$, "getDisplayedMnemonic", 
+function () {
+return this.mnemonic;
+});
+Clazz.defineMethod (c$, "setDisplayedMnemonicIndex", 
+function (index) {
+var oldValue = this.mnemonicIndex;
+if (index == -1) {
+this.mnemonicIndex = -1;
+} else {
+var text = this.getText ();
+var textLength = (text == null) ? 0 : text.length;
+if (index < -1 || index >= textLength) {
+throw  new IllegalArgumentException ("index == " + index);
+}}this.mnemonicIndex = index;
+this.firePropertyChangeInt ("displayedMnemonicIndex", oldValue, index);
+if (index != oldValue) {
+this.revalidate ();
+this.repaint ();
+}}, "~N");
+Clazz.defineMethod (c$, "getDisplayedMnemonicIndex", 
+function () {
+return this.mnemonicIndex;
+});
+Clazz.defineMethod (c$, "checkHorizontalKey", 
+function (key, message) {
+if ((key == 2) || (key == 0) || (key == 4) || (key == 10) || (key == 11)) {
+return key;
+} else {
+throw  new IllegalArgumentException (message);
+}}, "~N,~S");
+Clazz.defineMethod (c$, "checkVerticalKey", 
+function (key, message) {
+if ((key == 1) || (key == 0) || (key == 3)) {
+return key;
+} else {
+throw  new IllegalArgumentException (message);
+}}, "~N,~S");
+Clazz.defineMethod (c$, "getIconTextGap", 
+function () {
+return this.iconTextGap;
+});
+Clazz.defineMethod (c$, "setIconTextGap", 
+function (iconTextGap) {
+var oldValue = this.iconTextGap;
+this.iconTextGap = iconTextGap;
+this.firePropertyChangeInt ("iconTextGap", oldValue, iconTextGap);
+if (iconTextGap != oldValue) {
+this.revalidate ();
+this.repaint ();
+}}, "~N");
+Clazz.defineMethod (c$, "getVerticalAlignment", 
+function () {
+return this.verticalAlignment;
+});
+Clazz.defineMethod (c$, "setVerticalAlignment", 
+function (alignment) {
+if (alignment == this.verticalAlignment) return;
+var oldValue = this.verticalAlignment;
+this.verticalAlignment = this.checkVerticalKey (alignment, "verticalAlignment");
+this.firePropertyChangeInt ("verticalAlignment", oldValue, this.verticalAlignment);
+this.repaint ();
+}, "~N");
+Clazz.defineMethod (c$, "getHorizontalAlignment", 
+function () {
+return this.horizontalAlignment;
+});
+Clazz.defineMethod (c$, "setHorizontalAlignment", 
+function (alignment) {
+if (alignment == this.horizontalAlignment) return;
+var oldValue = this.horizontalAlignment;
+this.horizontalAlignment = this.checkHorizontalKey (alignment, "horizontalAlignment");
+this.firePropertyChangeInt ("horizontalAlignment", oldValue, this.horizontalAlignment);
+this.repaint ();
+}, "~N");
+Clazz.defineMethod (c$, "getVerticalTextPosition", 
+function () {
+return this.verticalTextPosition;
+});
+Clazz.defineMethod (c$, "setVerticalTextPosition", 
+function (textPosition) {
+if (textPosition == this.verticalTextPosition) return;
+var old = this.verticalTextPosition;
+this.verticalTextPosition = this.checkVerticalKey (textPosition, "verticalTextPosition");
+this.firePropertyChangeInt ("verticalTextPosition", old, this.verticalTextPosition);
+this.revalidate ();
+this.repaint ();
+}, "~N");
+Clazz.defineMethod (c$, "getHorizontalTextPosition", 
+function () {
+return this.horizontalTextPosition;
+});
+Clazz.defineMethod (c$, "setHorizontalTextPosition", 
+function (textPosition) {
+var old = this.horizontalTextPosition;
+this.horizontalTextPosition = this.checkHorizontalKey (textPosition, "horizontalTextPosition");
+this.firePropertyChangeInt ("horizontalTextPosition", old, this.horizontalTextPosition);
+this.revalidate ();
+this.repaint ();
+}, "~N");
+Clazz.defineMethod (c$, "imageUpdate", 
+function (img, infoflags, x, y, w, h) {
+if (!this.isShowing () || !javax.swing.SwingUtilities.doesIconReferenceImage (this.getIcon (), img) && !javax.swing.SwingUtilities.doesIconReferenceImage (this.disabledIcon, img)) {
+return false;
+}return Clazz.superCall (this, javax.swing.JLabel, "imageUpdate", [img, infoflags, x, y, w, h]);
+}, "java.awt.Image,~N,~N,~N,~N,~N");
+Clazz.defineMethod (c$, "paramString", 
+function () {
+var textString = (this.text != null ? this.text : "");
+var defaultIconString = ((this.defaultIcon != null) && (this.defaultIcon !== this) ? this.defaultIcon.toString () : "");
+var disabledIconString = ((this.disabledIcon != null) && (this.disabledIcon !== this) ? this.disabledIcon.toString () : "");
+var labelForString = (this.labelFor != null ? this.labelFor.toString () : "");
+var verticalAlignmentString;
+if (this.verticalAlignment == 1) {
+verticalAlignmentString = "TOP";
+} else if (this.verticalAlignment == 0) {
+verticalAlignmentString = "CENTER";
+} else if (this.verticalAlignment == 3) {
+verticalAlignmentString = "BOTTOM";
+} else verticalAlignmentString = "";
+var horizontalAlignmentString;
+if (this.horizontalAlignment == 2) {
+horizontalAlignmentString = "LEFT";
+} else if (this.horizontalAlignment == 0) {
+horizontalAlignmentString = "CENTER";
+} else if (this.horizontalAlignment == 4) {
+horizontalAlignmentString = "RIGHT";
+} else if (this.horizontalAlignment == 10) {
+horizontalAlignmentString = "LEADING";
+} else if (this.horizontalAlignment == 11) {
+horizontalAlignmentString = "TRAILING";
+} else horizontalAlignmentString = "";
+var verticalTextPositionString;
+if (this.verticalTextPosition == 1) {
+verticalTextPositionString = "TOP";
+} else if (this.verticalTextPosition == 0) {
+verticalTextPositionString = "CENTER";
+} else if (this.verticalTextPosition == 3) {
+verticalTextPositionString = "BOTTOM";
+} else verticalTextPositionString = "";
+var horizontalTextPositionString;
+if (this.horizontalTextPosition == 2) {
+horizontalTextPositionString = "LEFT";
+} else if (this.horizontalTextPosition == 0) {
+horizontalTextPositionString = "CENTER";
+} else if (this.horizontalTextPosition == 4) {
+horizontalTextPositionString = "RIGHT";
+} else if (this.horizontalTextPosition == 10) {
+horizontalTextPositionString = "LEADING";
+} else if (this.horizontalTextPosition == 11) {
+horizontalTextPositionString = "TRAILING";
+} else horizontalTextPositionString = "";
+return Clazz.superCall (this, javax.swing.JLabel, "paramString", []) + ",defaultIcon=" + defaultIconString + ",disabledIcon=" + disabledIconString + ",horizontalAlignment=" + horizontalAlignmentString + ",horizontalTextPosition=" + horizontalTextPositionString + ",iconTextGap=" + this.iconTextGap + ",labelFor=" + labelForString + ",text=" + textString + ",verticalAlignment=" + verticalAlignmentString + ",verticalTextPosition=" + verticalTextPositionString;
+});
+Clazz.defineMethod (c$, "getLabelFor", 
+function () {
+return this.labelFor;
+});
+Clazz.defineMethod (c$, "setLabelFor", 
+function (c) {
+var oldC = this.labelFor;
+this.labelFor = c;
+this.firePropertyChangeObject ("labelFor", oldC, c);
+if (Clazz.instanceOf (oldC, javax.swing.JComponent)) {
+(oldC).putClientProperty ("labeledBy", null);
+}if (Clazz.instanceOf (c, javax.swing.JComponent)) {
+(c).putClientProperty ("labeledBy", this);
+}}, "java.awt.Component");
+Clazz.defineStatics (c$,
+"$uiClassID", "LabelUI",
+"LABELED_BY_PROPERTY", "labeledBy");
+});