1 Clazz.declarePackage ("swingjs");
2 Clazz.load (["java.awt.peer.LightweightPeer"], "swingjs.JSComponentPeer", ["swingjs.JSToolkit"], function () {
3 c$ = Clazz.decorateAsClass (function () {
6 Clazz.instantialize (this, arguments);
7 }, swingjs, "JSComponentPeer", null, java.awt.peer.LightweightPeer);
8 Clazz.makeConstructor (c$,
11 this.ui = swingjs.JSToolkit.getUI (target, false);
12 }, "java.awt.Component");
13 Clazz.overrideMethod (c$, "isObscured",
17 Clazz.overrideMethod (c$, "canDetermineObscurity",
21 Clazz.overrideMethod (c$, "setVisible",
24 Clazz.overrideMethod (c$, "setEnabled",
27 Clazz.overrideMethod (c$, "paint",
29 }, "java.awt.Graphics");
30 Clazz.overrideMethod (c$, "repaint",
31 function (tm, x, y, width, height) {
33 Clazz.overrideMethod (c$, "print",
35 }, "java.awt.Graphics");
36 Clazz.overrideMethod (c$, "setBounds",
37 function (x, y, width, height, op) {
39 Clazz.overrideMethod (c$, "handleEvent",
41 }, "java.awt.AWTEvent");
42 Clazz.overrideMethod (c$, "coalescePaintEvent",
44 }, "java.awt.event.PaintEvent");
45 Clazz.overrideMethod (c$, "getLocationOnScreen",
49 Clazz.overrideMethod (c$, "getPreferredSize",
53 Clazz.overrideMethod (c$, "getMinimumSize",
57 Clazz.overrideMethod (c$, "getColorModel",
61 Clazz.overrideMethod (c$, "getToolkit",
65 Clazz.overrideMethod (c$, "getGraphics",
69 Clazz.overrideMethod (c$, "getFontMetrics",
73 Clazz.overrideMethod (c$, "dispose",
76 Clazz.overrideMethod (c$, "setForeground",
79 Clazz.overrideMethod (c$, "setBackground",
82 Clazz.overrideMethod (c$, "setFont",
85 Clazz.overrideMethod (c$, "updateCursorImmediately",
88 Clazz.overrideMethod (c$, "requestFocus",
89 function (lightweightChild, temporary, focusedWindowChangeAllowed, time, cause) {
91 }, "java.awt.Component,~B,~B,~N,jssun.awt.CausedFocusEvent.Cause");
92 Clazz.overrideMethod (c$, "isFocusable",
96 Clazz.defineMethod (c$, "createImage",
99 }, "java.awt.image.ImageProducer");
100 Clazz.defineMethod (c$, "createImage",
101 function (width, height) {
104 Clazz.overrideMethod (c$, "createVolatileImage",
105 function (width, height) {
108 Clazz.overrideMethod (c$, "prepareImage",
109 function (img, w, h, o) {
111 }, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");
112 Clazz.overrideMethod (c$, "checkImage",
113 function (img, w, h, o) {
115 }, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");
116 Clazz.overrideMethod (c$, "getGraphicsConfiguration",
120 Clazz.overrideMethod (c$, "handlesWheelScrolling",
124 Clazz.overrideMethod (c$, "getBackBuffer",
128 Clazz.overrideMethod (c$, "destroyBuffers",
131 Clazz.overrideMethod (c$, "reparent",
132 function (newContainer) {
133 }, "java.awt.peer.ContainerPeer");
134 Clazz.overrideMethod (c$, "isReparentSupported",
138 Clazz.overrideMethod (c$, "layout",
141 Clazz.overrideMethod (c$, "getBounds",