5aa8dcbf2e64a4594eebd8049519d0bd75c2d89e
[jalviewjs.git] / site / swingjs / j2s / jssun / awt / NullComponentPeer.js
1 Clazz.declarePackage ("jssun.awt");
2 Clazz.load (["java.awt.peer.CanvasPeer", "$.LightweightPeer", "$.PanelPeer"], "jssun.awt.NullComponentPeer", ["java.lang.IllegalStateException", "$.UnsupportedOperationException", "java.awt.Dimension", "$.Insets", "$.Point", "$.Rectangle"], function () {
3 c$ = Clazz.declareType (jssun.awt, "NullComponentPeer", null, [java.awt.peer.LightweightPeer, java.awt.peer.CanvasPeer, java.awt.peer.PanelPeer]);
4 Clazz.overrideMethod (c$, "isObscured", 
5 function () {
6 return false;
7 });
8 Clazz.overrideMethod (c$, "canDetermineObscurity", 
9 function () {
10 return false;
11 });
12 Clazz.overrideMethod (c$, "isFocusable", 
13 function () {
14 return false;
15 });
16 Clazz.overrideMethod (c$, "setVisible", 
17 function (b) {
18 }, "~B");
19 Clazz.defineMethod (c$, "show", 
20 function () {
21 });
22 Clazz.defineMethod (c$, "hide", 
23 function () {
24 });
25 Clazz.overrideMethod (c$, "setEnabled", 
26 function (b) {
27 }, "~B");
28 Clazz.defineMethod (c$, "enable", 
29 function () {
30 });
31 Clazz.defineMethod (c$, "disable", 
32 function () {
33 });
34 Clazz.overrideMethod (c$, "paint", 
35 function (g) {
36 }, "java.awt.Graphics");
37 Clazz.overrideMethod (c$, "repaint", 
38 function (tm, x, y, width, height) {
39 }, "~N,~N,~N,~N,~N");
40 Clazz.overrideMethod (c$, "print", 
41 function (g) {
42 }, "java.awt.Graphics");
43 Clazz.overrideMethod (c$, "setBounds", 
44 function (x, y, width, height, op) {
45 }, "~N,~N,~N,~N,~N");
46 Clazz.defineMethod (c$, "reshape", 
47 function (x, y, width, height) {
48 }, "~N,~N,~N,~N");
49 Clazz.overrideMethod (c$, "coalescePaintEvent", 
50 function (e) {
51 }, "java.awt.event.PaintEvent");
52 Clazz.defineMethod (c$, "handleEvent", 
53 function (e) {
54 return false;
55 }, "java.awt.Event");
56 Clazz.defineMethod (c$, "handleEvent", 
57 function (arg0) {
58 }, "java.awt.AWTEvent");
59 Clazz.overrideMethod (c$, "getPreferredSize", 
60 function () {
61 return  new java.awt.Dimension (1, 1);
62 });
63 Clazz.overrideMethod (c$, "getMinimumSize", 
64 function () {
65 return  new java.awt.Dimension (1, 1);
66 });
67 Clazz.overrideMethod (c$, "getToolkit", 
68 function () {
69 return null;
70 });
71 Clazz.overrideMethod (c$, "getColorModel", 
72 function () {
73 return null;
74 });
75 Clazz.overrideMethod (c$, "getGraphics", 
76 function () {
77 return null;
78 });
79 Clazz.overrideMethod (c$, "getGraphicsConfiguration", 
80 function () {
81 return null;
82 });
83 Clazz.overrideMethod (c$, "getFontMetrics", 
84 function (font) {
85 return null;
86 }, "java.awt.Font");
87 Clazz.overrideMethod (c$, "dispose", 
88 function () {
89 });
90 Clazz.overrideMethod (c$, "setForeground", 
91 function (c) {
92 }, "java.awt.Color");
93 Clazz.overrideMethod (c$, "setBackground", 
94 function (c) {
95 }, "java.awt.Color");
96 Clazz.overrideMethod (c$, "setFont", 
97 function (f) {
98 }, "java.awt.Font");
99 Clazz.overrideMethod (c$, "updateCursorImmediately", 
100 function () {
101 });
102 Clazz.defineMethod (c$, "setCursor", 
103 function (cursor) {
104 }, "java.awt.Cursor");
105 Clazz.overrideMethod (c$, "requestFocus", 
106 function (lightweightChild, temporary, focusedWindowChangeAllowed, time, cause) {
107 return false;
108 }, "java.awt.Component,~B,~B,~N,jssun.awt.CausedFocusEvent.Cause");
109 Clazz.defineMethod (c$, "createImage", 
110 function (producer) {
111 return null;
112 }, "java.awt.image.ImageProducer");
113 Clazz.defineMethod (c$, "createImage", 
114 function (width, height) {
115 return null;
116 }, "~N,~N");
117 Clazz.overrideMethod (c$, "prepareImage", 
118 function (img, w, h, o) {
119 return false;
120 }, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");
121 Clazz.overrideMethod (c$, "checkImage", 
122 function (img, w, h, o) {
123 return 0;
124 }, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");
125 Clazz.defineMethod (c$, "preferredSize", 
126 function () {
127 return this.getPreferredSize ();
128 });
129 Clazz.defineMethod (c$, "minimumSize", 
130 function () {
131 return this.getMinimumSize ();
132 });
133 Clazz.overrideMethod (c$, "getLocationOnScreen", 
134 function () {
135 return  new java.awt.Point (0, 0);
136 });
137 Clazz.overrideMethod (c$, "getInsets", 
138 function () {
139 return this.insets ();
140 });
141 Clazz.overrideMethod (c$, "beginValidate", 
142 function () {
143 });
144 Clazz.overrideMethod (c$, "endValidate", 
145 function () {
146 });
147 Clazz.defineMethod (c$, "insets", 
148 function () {
149 return  new java.awt.Insets (0, 0, 0, 0);
150 });
151 Clazz.defineMethod (c$, "isPaintPending", 
152 function () {
153 return false;
154 });
155 Clazz.overrideMethod (c$, "handlesWheelScrolling", 
156 function () {
157 return false;
158 });
159 Clazz.overrideMethod (c$, "createVolatileImage", 
160 function (width, height) {
161 return null;
162 }, "~N,~N");
163 Clazz.overrideMethod (c$, "beginLayout", 
164 function () {
165 });
166 Clazz.overrideMethod (c$, "endLayout", 
167 function () {
168 });
169 Clazz.overrideMethod (c$, "getBackBuffer", 
170 function () {
171 throw  new IllegalStateException ("Page-flipping is not allowed on a lightweight component");
172 });
173 Clazz.overrideMethod (c$, "destroyBuffers", 
174 function () {
175 });
176 Clazz.overrideMethod (c$, "isReparentSupported", 
177 function () {
178 return false;
179 });
180 Clazz.overrideMethod (c$, "reparent", 
181 function (newNativeParent) {
182 throw  new UnsupportedOperationException ();
183 }, "java.awt.peer.ContainerPeer");
184 Clazz.defineMethod (c$, "restack", 
185 function () {
186 throw  new UnsupportedOperationException ();
187 });
188 Clazz.defineMethod (c$, "isRestackSupported", 
189 function () {
190 return false;
191 });
192 Clazz.overrideMethod (c$, "layout", 
193 function () {
194 });
195 Clazz.overrideMethod (c$, "getBounds", 
196 function () {
197 return  new java.awt.Rectangle (0, 0, 0, 0);
198 });
199 });