1 Clazz.declarePackage ("javax.swing");
2 Clazz.load (["java.awt.Container"], "javax.swing.CellRendererPane", null, function () {
3 c$ = Clazz.declareType (javax.swing, "CellRendererPane", java.awt.Container);
4 Clazz.makeConstructor (c$,
6 Clazz.superConstructor (this, javax.swing.CellRendererPane);
8 this.setVisible (false);
10 Clazz.overrideMethod (c$, "invalidate",
13 Clazz.overrideMethod (c$, "paint",
15 }, "java.awt.Graphics");
16 Clazz.overrideMethod (c$, "update",
18 }, "java.awt.Graphics");
19 Clazz.overrideMethod (c$, "addImpl",
20 function (x, constraints, index) {
21 if (x.getParent () === this) {
24 return this.addImplSAEM (x, constraints, index);
25 }}, "java.awt.Component,~O,~N");
26 Clazz.defineMethod (c$, "paintComponent",
27 function (g, c, p, x, y, w, h, shouldValidate) {
30 var oldColor = g.getColor ();
31 g.setColor (p.getBackground ());
32 g.fillRect (x, y, w, h);
33 g.setColor (oldColor);
35 }if (c.getParent () !== this) {
37 }c.setBounds (x, y, w, h);
40 }var cg = g.create4 (x, y, w, h);
46 c.setBounds (-w, -h, 0, 0);
47 }, "java.awt.Graphics,java.awt.Component,java.awt.Container,~N,~N,~N,~N,~B");
48 Clazz.defineMethod (c$, "paintComponent",
49 function (g, c, p, x, y, w, h) {
50 this.paintComponent (g, c, p, x, y, w, h, false);
51 }, "java.awt.Graphics,java.awt.Component,java.awt.Container,~N,~N,~N,~N");
52 Clazz.defineMethod (c$, "paintComponent",
53 function (g, c, p, r) {
54 this.paintComponent (g, c, p, r.x, r.y, r.width, r.height);
55 }, "java.awt.Graphics,java.awt.Component,java.awt.Container,java.awt.Rectangle");