JAL-1807 Bob
[jalviewjs.git] / site / j2s / swingjs / JSComponentPeer.js
1 Clazz.declarePackage ("swingjs");
2 Clazz.load (["java.awt.peer.LightweightPeer"], "swingjs.JSComponentPeer", ["swingjs.JSToolkit"], function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.target = null;
5 this.ui = null;
6 Clazz.instantialize (this, arguments);
7 }, swingjs, "JSComponentPeer", null, java.awt.peer.LightweightPeer);
8 Clazz.makeConstructor (c$, 
9 function (target) {
10 this.target = target;
11 this.ui = swingjs.JSToolkit.getUI (target, false);
12 }, "java.awt.Component");
13 Clazz.overrideMethod (c$, "isObscured", 
14 function () {
15 return false;
16 });
17 Clazz.overrideMethod (c$, "canDetermineObscurity", 
18 function () {
19 return false;
20 });
21 Clazz.overrideMethod (c$, "setVisible", 
22 function (b) {
23 }, "~B");
24 Clazz.overrideMethod (c$, "setEnabled", 
25 function (b) {
26 }, "~B");
27 Clazz.overrideMethod (c$, "paint", 
28 function (g) {
29 }, "java.awt.Graphics");
30 Clazz.overrideMethod (c$, "repaint", 
31 function (tm, x, y, width, height) {
32 }, "~N,~N,~N,~N,~N");
33 Clazz.overrideMethod (c$, "print", 
34 function (g) {
35 }, "java.awt.Graphics");
36 Clazz.overrideMethod (c$, "setBounds", 
37 function (x, y, width, height, op) {
38 }, "~N,~N,~N,~N,~N");
39 Clazz.overrideMethod (c$, "handleEvent", 
40 function (e) {
41 }, "java.awt.AWTEvent");
42 Clazz.overrideMethod (c$, "coalescePaintEvent", 
43 function (e) {
44 }, "java.awt.event.PaintEvent");
45 Clazz.overrideMethod (c$, "getLocationOnScreen", 
46 function () {
47 return null;
48 });
49 Clazz.overrideMethod (c$, "getPreferredSize", 
50 function () {
51 return null;
52 });
53 Clazz.overrideMethod (c$, "getMinimumSize", 
54 function () {
55 return null;
56 });
57 Clazz.overrideMethod (c$, "getColorModel", 
58 function () {
59 return null;
60 });
61 Clazz.overrideMethod (c$, "getToolkit", 
62 function () {
63 return null;
64 });
65 Clazz.overrideMethod (c$, "getGraphics", 
66 function () {
67 return null;
68 });
69 Clazz.overrideMethod (c$, "getFontMetrics", 
70 function (font) {
71 return null;
72 }, "java.awt.Font");
73 Clazz.overrideMethod (c$, "dispose", 
74 function () {
75 });
76 Clazz.overrideMethod (c$, "setForeground", 
77 function (c) {
78 }, "java.awt.Color");
79 Clazz.overrideMethod (c$, "setBackground", 
80 function (c) {
81 }, "java.awt.Color");
82 Clazz.overrideMethod (c$, "setFont", 
83 function (f) {
84 }, "java.awt.Font");
85 Clazz.overrideMethod (c$, "updateCursorImmediately", 
86 function () {
87 });
88 Clazz.overrideMethod (c$, "requestFocus", 
89 function (lightweightChild, temporary, focusedWindowChangeAllowed, time, cause) {
90 return false;
91 }, "java.awt.Component,~B,~B,~N,jssun.awt.CausedFocusEvent.Cause");
92 Clazz.overrideMethod (c$, "isFocusable", 
93 function () {
94 return false;
95 });
96 Clazz.defineMethod (c$, "createImage", 
97 function (producer) {
98 return null;
99 }, "java.awt.image.ImageProducer");
100 Clazz.defineMethod (c$, "createImage", 
101 function (width, height) {
102 return null;
103 }, "~N,~N");
104 Clazz.overrideMethod (c$, "createVolatileImage", 
105 function (width, height) {
106 return null;
107 }, "~N,~N");
108 Clazz.overrideMethod (c$, "prepareImage", 
109 function (img, w, h, o) {
110 return false;
111 }, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");
112 Clazz.overrideMethod (c$, "checkImage", 
113 function (img, w, h, o) {
114 return 0;
115 }, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");
116 Clazz.overrideMethod (c$, "getGraphicsConfiguration", 
117 function () {
118 return null;
119 });
120 Clazz.overrideMethod (c$, "handlesWheelScrolling", 
121 function () {
122 return false;
123 });
124 Clazz.overrideMethod (c$, "getBackBuffer", 
125 function () {
126 return null;
127 });
128 Clazz.overrideMethod (c$, "destroyBuffers", 
129 function () {
130 });
131 Clazz.overrideMethod (c$, "reparent", 
132 function (newContainer) {
133 }, "java.awt.peer.ContainerPeer");
134 Clazz.overrideMethod (c$, "isReparentSupported", 
135 function () {
136 return false;
137 });
138 Clazz.overrideMethod (c$, "layout", 
139 function () {
140 });
141 Clazz.overrideMethod (c$, "getBounds", 
142 function () {
143 return null;
144 });
145 });