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",
8 Clazz.overrideMethod (c$, "canDetermineObscurity",
12 Clazz.overrideMethod (c$, "isFocusable",
16 Clazz.overrideMethod (c$, "setVisible",
19 Clazz.defineMethod (c$, "show",
22 Clazz.defineMethod (c$, "hide",
25 Clazz.overrideMethod (c$, "setEnabled",
28 Clazz.defineMethod (c$, "enable",
31 Clazz.defineMethod (c$, "disable",
34 Clazz.overrideMethod (c$, "paint",
36 }, "java.awt.Graphics");
37 Clazz.overrideMethod (c$, "repaint",
38 function (tm, x, y, width, height) {
40 Clazz.overrideMethod (c$, "print",
42 }, "java.awt.Graphics");
43 Clazz.overrideMethod (c$, "setBounds",
44 function (x, y, width, height, op) {
46 Clazz.defineMethod (c$, "reshape",
47 function (x, y, width, height) {
49 Clazz.overrideMethod (c$, "coalescePaintEvent",
51 }, "java.awt.event.PaintEvent");
52 Clazz.defineMethod (c$, "handleEvent",
56 Clazz.defineMethod (c$, "handleEvent",
58 }, "java.awt.AWTEvent");
59 Clazz.overrideMethod (c$, "getPreferredSize",
61 return new java.awt.Dimension (1, 1);
63 Clazz.overrideMethod (c$, "getMinimumSize",
65 return new java.awt.Dimension (1, 1);
67 Clazz.overrideMethod (c$, "getToolkit",
71 Clazz.overrideMethod (c$, "getColorModel",
75 Clazz.overrideMethod (c$, "getGraphics",
79 Clazz.overrideMethod (c$, "getGraphicsConfiguration",
83 Clazz.overrideMethod (c$, "getFontMetrics",
87 Clazz.overrideMethod (c$, "dispose",
90 Clazz.overrideMethod (c$, "setForeground",
93 Clazz.overrideMethod (c$, "setBackground",
96 Clazz.overrideMethod (c$, "setFont",
99 Clazz.overrideMethod (c$, "updateCursorImmediately",
102 Clazz.defineMethod (c$, "setCursor",
104 }, "java.awt.Cursor");
105 Clazz.overrideMethod (c$, "requestFocus",
106 function (lightweightChild, temporary, focusedWindowChangeAllowed, time, cause) {
108 }, "java.awt.Component,~B,~B,~N,jssun.awt.CausedFocusEvent.Cause");
109 Clazz.defineMethod (c$, "createImage",
110 function (producer) {
112 }, "java.awt.image.ImageProducer");
113 Clazz.defineMethod (c$, "createImage",
114 function (width, height) {
117 Clazz.overrideMethod (c$, "prepareImage",
118 function (img, w, h, o) {
120 }, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");
121 Clazz.overrideMethod (c$, "checkImage",
122 function (img, w, h, o) {
124 }, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");
125 Clazz.defineMethod (c$, "preferredSize",
127 return this.getPreferredSize ();
129 Clazz.defineMethod (c$, "minimumSize",
131 return this.getMinimumSize ();
133 Clazz.overrideMethod (c$, "getLocationOnScreen",
135 return new java.awt.Point (0, 0);
137 Clazz.overrideMethod (c$, "getInsets",
139 return this.insets ();
141 Clazz.overrideMethod (c$, "beginValidate",
144 Clazz.overrideMethod (c$, "endValidate",
147 Clazz.defineMethod (c$, "insets",
149 return new java.awt.Insets (0, 0, 0, 0);
151 Clazz.defineMethod (c$, "isPaintPending",
155 Clazz.overrideMethod (c$, "handlesWheelScrolling",
159 Clazz.overrideMethod (c$, "createVolatileImage",
160 function (width, height) {
163 Clazz.overrideMethod (c$, "beginLayout",
166 Clazz.overrideMethod (c$, "endLayout",
169 Clazz.overrideMethod (c$, "getBackBuffer",
171 throw new IllegalStateException ("Page-flipping is not allowed on a lightweight component");
173 Clazz.overrideMethod (c$, "destroyBuffers",
176 Clazz.overrideMethod (c$, "isReparentSupported",
180 Clazz.overrideMethod (c$, "reparent",
181 function (newNativeParent) {
182 throw new UnsupportedOperationException ();
183 }, "java.awt.peer.ContainerPeer");
184 Clazz.defineMethod (c$, "restack",
186 throw new UnsupportedOperationException ();
188 Clazz.defineMethod (c$, "isRestackSupported",
192 Clazz.overrideMethod (c$, "layout",
195 Clazz.overrideMethod (c$, "getBounds",
197 return new java.awt.Rectangle (0, 0, 0, 0);