87c090516ce1c2e4facb3697918bad43479a9221
[jalviewjs.git] / site / swingjs / j2s / javax / swing / JToolTip.js
1 Clazz.declarePackage ("javax.swing");
2 Clazz.load (["javax.swing.JComponent"], "javax.swing.JToolTip", ["javax.swing.UIManager"], function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.tipText = null;
5 this.$component = null;
6 Clazz.instantialize (this, arguments);
7 }, javax.swing, "JToolTip", javax.swing.JComponent);
8 Clazz.makeConstructor (c$, 
9 function () {
10 Clazz.superConstructor (this, javax.swing.JToolTip, []);
11 this.setOpaque (true);
12 this.updateUI ();
13 });
14 Clazz.overrideMethod (c$, "getUI", 
15 function () {
16 return this.ui;
17 });
18 Clazz.overrideMethod (c$, "updateUI", 
19 function () {
20 this.setUI (javax.swing.UIManager.getUI (this));
21 });
22 Clazz.overrideMethod (c$, "getUIClassID", 
23 function () {
24 return "ToolTipUI";
25 });
26 Clazz.defineMethod (c$, "setTipText", 
27 function (tipText) {
28 var oldValue = this.tipText;
29 this.tipText = tipText;
30 this.firePropertyChangeObject ("tiptext", oldValue, tipText);
31 }, "~S");
32 Clazz.defineMethod (c$, "getTipText", 
33 function () {
34 return this.tipText;
35 });
36 Clazz.defineMethod (c$, "setComponent", 
37 function (c) {
38 var oldValue = this.$component;
39 this.$component = c;
40 this.firePropertyChangeObject ("component", oldValue, c);
41 }, "javax.swing.JComponent");
42 Clazz.defineMethod (c$, "getComponent", 
43 function () {
44 return this.$component;
45 });
46 Clazz.overrideMethod (c$, "alwaysOnTop", 
47 function () {
48 return true;
49 });
50 Clazz.defineMethod (c$, "paramString", 
51 function () {
52 var tipTextString = (this.tipText != null ? this.tipText : "");
53 return Clazz.superCall (this, javax.swing.JToolTip, "paramString", []) + ",tipText=" + tipTextString;
54 });
55 Clazz.defineStatics (c$,
56 "$uiClassID", "ToolTipUI");
57 });