Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / awt / Component.js
index 31a2fe2..5c6892b 100644 (file)
-Clazz.declarePackage ("java.awt");\r
-Clazz.load (["java.lang.Enum", "java.awt.image.ImageObserver", "java.util.HashMap", "java.awt.ComponentOrientation"], "java.awt.Component", ["java.lang.Boolean", "$.Character", "$.Double", "$.Float", "$.IllegalArgumentException", "$.Long", "$.NullPointerException", "$.Short", "$.Thread", "java.awt.AWTEventMulticaster", "$.Cursor", "$.Dimension", "$.EventQueue", "$.IllegalComponentStateException", "$.Point", "$.Rectangle", "$.Toolkit", "java.awt.event.ComponentEvent", "$.ComponentListener", "$.FocusEvent", "$.FocusListener", "$.HierarchyBoundsListener", "$.HierarchyEvent", "$.HierarchyListener", "$.InputEvent", "$.InputMethodEvent", "$.InputMethodListener", "$.KeyEvent", "$.KeyListener", "$.MouseEvent", "$.MouseListener", "$.MouseMotionListener", "$.MouseWheelEvent", "$.MouseWheelListener", "$.PaintEvent", "java.awt.peer.LightweightPeer", "java.beans.PropertyChangeListener", "$.PropertyChangeSupport", "jssun.awt.AppContext", "$.SunToolkit", "jssun.font.FontDesignMetrics", "swingjs.JSToolkit"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.threadGroup = null;\r
-this.myThread = null;\r
-this.peer = null;\r
-this.parent = null;\r
-this.appContext = null;\r
-this.x = 0;\r
-this.y = 0;\r
-this.width = 0;\r
-this.height = 0;\r
-this.foreground = null;\r
-this.background = null;\r
-this.font = null;\r
-this.peerFont = null;\r
-this.cursor = null;\r
-this.locale = null;\r
-this.visible = true;\r
-this.enabled = true;\r
-this.valid = false;\r
-this.popups = null;\r
-this.name = null;\r
-this.nameExplicitlySet = false;\r
-this.focusable = true;\r
-this.$isFocusTraversableOverridden = 0;\r
-this.focusTraversalKeysEnabled = false;\r
-this.minSize = null;\r
-this.minSizeSet = false;\r
-this.prefSize = null;\r
-this.prefSizeSet = false;\r
-this.maxSize = null;\r
-this.maxSizeSet = false;\r
-this.componentOrientation = null;\r
-this.newEventsOnly = false;\r
-this.componentListener = null;\r
-this.focusListener = null;\r
-this.hierarchyListener = null;\r
-this.hierarchyBoundsListener = null;\r
-this.keyListener = null;\r
-this.mouseListener = null;\r
-this.mouseMotionListener = null;\r
-this.mouseWheelListener = null;\r
-this.inputMethodListener = null;\r
-this.windowClosingException = null;\r
-this.eventMask = 4096;\r
-this.changeSupport = null;\r
-this.changeSupportLock = null;\r
-this.isPacked = false;\r
-this.boundsOp = 3;\r
-this.isAddNotifyComplete = false;\r
-this.backgroundEraseDisabled = false;\r
-this.htmlName = null;\r
-this.num = 0;\r
-this.graphicsConfig = null;\r
-this.eventCache = null;\r
-this.coalescingEnabled = false;\r
-this.autoFocusTransferOnDisposal = true;\r
-Clazz.instantialize (this, arguments);\r
-}, java.awt, "Component", null, java.awt.image.ImageObserver);\r
-Clazz.prepareFields (c$, function () {\r
-this.componentOrientation = java.awt.ComponentOrientation.UNKNOWN;\r
-this.changeSupportLock =  new Clazz._O ();\r
-this.coalescingEnabled = this.checkCoalescing ();\r
-});\r
-Clazz.defineMethod (c$, "getAppContext", \r
-function () {\r
-return this.appContext;\r
-});\r
-Clazz.defineMethod (c$, "getChangeSupportLock", \r
- function () {\r
-return this.changeSupportLock;\r
-});\r
-Clazz.defineMethod (c$, "getBoundsOp", \r
-function () {\r
-return this.boundsOp;\r
-});\r
-Clazz.defineMethod (c$, "setBoundsOp", \r
-function (op) {\r
-if (op == 5) {\r
-this.boundsOp = 3;\r
-} else if (this.boundsOp == 3) {\r
-this.boundsOp = op;\r
-}}, "~N");\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.setAppContext ();\r
-});\r
-Clazz.defineMethod (c$, "setAppContext", \r
-function () {\r
-this.appContext = jssun.awt.AppContext.getAppContext ();\r
-this.num = ++java.awt.Component.incr;\r
-});\r
-Clazz.defineMethod (c$, "getHTMLName", \r
-function (uid) {\r
-return (this.htmlName == null ? this.htmlName = this.appContext.getThreadGroup ().getName () + "_" + uid + "_" + this.num : this.htmlName);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "constructComponentName", \r
-function () {\r
-return null;\r
-});\r
-Clazz.defineMethod (c$, "getName", \r
-function () {\r
-if (this.name == null && !this.nameExplicitlySet) {\r
-{\r
-if (this.name == null && !this.nameExplicitlySet) this.name = this.constructComponentName ();\r
-}}return this.name;\r
-});\r
-Clazz.defineMethod (c$, "setName", \r
-function (name) {\r
-var oldName;\r
-{\r
-oldName = this.name;\r
-this.name = name;\r
-this.nameExplicitlySet = true;\r
-}this.firePropertyChangeObject ("name", oldName, name);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getParent", \r
-function () {\r
-return this.getParent_NoClientCode ();\r
-});\r
-Clazz.defineMethod (c$, "getParent_NoClientCode", \r
-function () {\r
-return this.parent;\r
-});\r
-Clazz.defineMethod (c$, "getContainer", \r
-function () {\r
-return this.getParent ();\r
-});\r
-Clazz.defineMethod (c$, "getPeer", \r
-function () {\r
-return this.peer;\r
-});\r
-Clazz.defineMethod (c$, "getGraphicsConfiguration", \r
-function () {\r
-return swingjs.JSToolkit.getGraphicsConfiguration ();\r
-});\r
-Clazz.defineMethod (c$, "resetGC", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "getToolkit", \r
-function () {\r
-return this.getToolkitImpl ();\r
-});\r
-Clazz.defineMethod (c$, "getToolkitImpl", \r
-function () {\r
-var peer = this.peer;\r
-if ((peer != null) && !(Clazz.instanceOf (peer, java.awt.peer.LightweightPeer))) {\r
-return peer.getToolkit ();\r
-}var parent = this.parent;\r
-if (parent != null) {\r
-return parent.getToolkitImpl ();\r
-}return java.awt.Toolkit.getDefaultToolkit ();\r
-});\r
-Clazz.defineMethod (c$, "isValid", \r
-function () {\r
-return this.valid;\r
-});\r
-Clazz.defineMethod (c$, "isDisplayable", \r
-function () {\r
-return true;\r
-});\r
-Clazz.defineMethod (c$, "isVisible", \r
-function () {\r
-return this.isVisible_NoClientCode ();\r
-});\r
-Clazz.defineMethod (c$, "isVisible_NoClientCode", \r
-function () {\r
-return this.visible;\r
-});\r
-Clazz.defineMethod (c$, "isRecursivelyVisible", \r
-function () {\r
-return this.visible && (this.parent == null || this.parent.isRecursivelyVisible ());\r
-});\r
-Clazz.defineMethod (c$, "pointRelativeToComponent", \r
-function (absolute) {\r
-var compCoords = this.getLocationOnScreen ();\r
-return  new java.awt.Point (absolute.x - compCoords.x, absolute.y - compCoords.y);\r
-}, "java.awt.Point");\r
-Clazz.defineMethod (c$, "getMousePosition", \r
-function () {\r
-return null;\r
-});\r
-Clazz.defineMethod (c$, "isSameOrAncestorOf", \r
-function (comp, allowChildren) {\r
-return comp === this;\r
-}, "java.awt.Component,~B");\r
-Clazz.defineMethod (c$, "isShowing", \r
-function () {\r
-if (this.visible) {\r
-var parent = this.parent;\r
-return (parent == null) || parent.isShowing ();\r
-}return false;\r
-});\r
-Clazz.defineMethod (c$, "isEnabled", \r
-function () {\r
-return this.isEnabledImpl ();\r
-});\r
-Clazz.defineMethod (c$, "isEnabledImpl", \r
-function () {\r
-return this.enabled;\r
-});\r
-Clazz.defineMethod (c$, "setEnabled", \r
-function (b) {\r
-this.enable (b);\r
-}, "~B");\r
-Clazz.defineMethod (c$, "enable", \r
-function () {\r
-if (!this.enabled) {\r
-this.enabled = true;\r
-var peer = this.peer;\r
-if (peer != null) {\r
-peer.setEnabled (true);\r
-if (this.visible) {\r
-this.updateCursorImmediately ();\r
-}}}});\r
-Clazz.defineMethod (c$, "enable", \r
-function (b) {\r
-if (b) {\r
-this.enable ();\r
-} else {\r
-this.disable ();\r
-}}, "~B");\r
-Clazz.defineMethod (c$, "disable", \r
-function () {\r
-if (this.enabled) {\r
-this.enabled = false;\r
-var peer = this.peer;\r
-if (peer != null) {\r
-peer.setEnabled (false);\r
-if (this.visible) {\r
-this.updateCursorImmediately ();\r
-}}}});\r
-Clazz.defineMethod (c$, "isDoubleBuffered", \r
-function () {\r
-return false;\r
-});\r
-Clazz.defineMethod (c$, "setVisible", \r
-function (b) {\r
-this.show (b);\r
-}, "~B");\r
-Clazz.defineMethod (c$, "show", \r
-function () {\r
-if (!this.visible) {\r
-this.visible = true;\r
-var peer = this.peer;\r
-if (peer != null) {\r
-peer.setVisible (true);\r
-this.createHierarchyEvents (1400, this, this.parent, 4, java.awt.Toolkit.enabledOnToolkit (32768));\r
-if (Clazz.instanceOf (peer, java.awt.peer.LightweightPeer)) {\r
-this.repaint ();\r
-}this.updateCursorImmediately ();\r
-}if (this.componentListener != null || (this.eventMask & 1) != 0 || java.awt.Toolkit.enabledOnToolkit (1)) {\r
-var e =  new java.awt.event.ComponentEvent (this, 102);\r
-java.awt.Toolkit.getEventQueue ().postEvent (e);\r
-}}var parent = this.parent;\r
-if (parent != null) {\r
-parent.invalidate ();\r
-}});\r
-Clazz.defineMethod (c$, "containsFocus", \r
-function () {\r
-return this.isFocusOwner ();\r
-});\r
-Clazz.defineMethod (c$, "clearCurrentFocusCycleRootOnHide", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "hide", \r
-function () {\r
-this.isPacked = false;\r
-if (this.visible) {\r
-this.clearCurrentFocusCycleRootOnHide ();\r
-this.visible = false;\r
-this.mixOnHiding (this.isLightweight ());\r
-var peer = this.peer;\r
-if (peer != null) {\r
-peer.setVisible (false);\r
-this.createHierarchyEvents (1400, this, this.parent, 4, java.awt.Toolkit.enabledOnToolkit (32768));\r
-if (Clazz.instanceOf (peer, java.awt.peer.LightweightPeer)) {\r
-this.repaint ();\r
-}this.updateCursorImmediately ();\r
-}if (this.componentListener != null || (this.eventMask & 1) != 0 || java.awt.Toolkit.enabledOnToolkit (1)) {\r
-var e =  new java.awt.event.ComponentEvent (this, 103);\r
-java.awt.Toolkit.getEventQueue ().postEvent (e);\r
-}}var parent = this.parent;\r
-if (parent != null) {\r
-parent.invalidate ();\r
-}});\r
-Clazz.defineMethod (c$, "getForeground", \r
-function () {\r
-var foreground = this.foreground;\r
-if (foreground != null) {\r
-return foreground;\r
-}var parent = this.parent;\r
-return (parent != null) ? parent.getForeground () : null;\r
-});\r
-Clazz.defineMethod (c$, "setForeground", \r
-function (c) {\r
-var oldColor = this.foreground;\r
-var peer = this.peer;\r
-this.foreground = c;\r
-if (peer != null) {\r
-c = this.getForeground ();\r
-if (c != null) {\r
-peer.setForeground (c);\r
-}}this.firePropertyChangeObject ("foreground", oldColor, c);\r
-}, "java.awt.Color");\r
-Clazz.defineMethod (c$, "isForegroundSet", \r
-function () {\r
-return (this.foreground != null);\r
-});\r
-Clazz.defineMethod (c$, "getBackground", \r
-function () {\r
-var background = this.background;\r
-if (background != null) {\r
-return background;\r
-}var parent = this.parent;\r
-return (parent != null) ? parent.getBackground () : null;\r
-});\r
-Clazz.defineMethod (c$, "setBackground", \r
-function (c) {\r
-var oldColor = this.background;\r
-var peer = this.peer;\r
-this.background = c;\r
-if (peer != null) {\r
-c = this.getBackground ();\r
-if (c != null) {\r
-peer.setBackground (c);\r
-}}this.firePropertyChangeObject ("background", oldColor, c);\r
-}, "java.awt.Color");\r
-Clazz.defineMethod (c$, "isBackgroundSet", \r
-function () {\r
-return (this.background != null);\r
-});\r
-Clazz.defineMethod (c$, "getFont", \r
-function () {\r
-return this.getFont_NoClientCode ();\r
-});\r
-Clazz.defineMethod (c$, "getFont_NoClientCode", \r
-function () {\r
-var font = this.font;\r
-if (font != null) {\r
-return font;\r
-}var parent = this.parent;\r
-return (parent != null) ? parent.getFont_NoClientCode () : null;\r
-});\r
-Clazz.defineMethod (c$, "setFont", \r
-function (f) {\r
-this.setFontComp (f);\r
-}, "java.awt.Font");\r
-Clazz.defineMethod (c$, "setFontComp", \r
-function (f) {\r
-var oldFont;\r
-var newFont;\r
-oldFont = this.font;\r
-newFont = this.font = f;\r
-{\r
-{\r
-}var peer = this.peer;\r
-if (peer != null) {\r
-f = this.getFont ();\r
-if (f != null) {\r
-peer.setFont (f);\r
-this.peerFont = f;\r
-}}}this.firePropertyChangeObject ("font", oldFont, newFont);\r
-if (f !== oldFont && (oldFont == null || !oldFont.equals (f))) {\r
-this.invalidateIfValid ();\r
-}}, "java.awt.Font");\r
-Clazz.defineMethod (c$, "isFontSet", \r
-function () {\r
-return (this.font != null);\r
-});\r
-Clazz.defineMethod (c$, "getLocale", \r
-function () {\r
-var locale = this.locale;\r
-if (locale != null) {\r
-return locale;\r
-}var parent = this.parent;\r
-if (parent == null) {\r
-throw  new java.awt.IllegalComponentStateException ("This component must have a parent in order to determine its locale");\r
-} else {\r
-return parent.getLocale ();\r
-}});\r
-Clazz.defineMethod (c$, "setLocale", \r
-function (l) {\r
-var oldValue = this.locale;\r
-this.locale = l;\r
-this.firePropertyChangeObject ("locale", oldValue, l);\r
-this.invalidateIfValid ();\r
-}, "java.util.Locale");\r
-Clazz.defineMethod (c$, "getLocation", \r
-function () {\r
-return this.location ();\r
-});\r
-Clazz.defineMethod (c$, "getLocationOnScreen", \r
-function () {\r
-return this.getLocationOnScreen_NoTreeLock ();\r
-});\r
-Clazz.defineMethod (c$, "getLocationOnScreen_NoTreeLock", \r
-function () {\r
-if (this.isShowing ()) {\r
-if (Clazz.instanceOf (this.peer, java.awt.peer.LightweightPeer)) {\r
-var host = this.getNativeContainer ();\r
-var pt = host.peer.getLocationOnScreen ();\r
-for (var c = this; c !== host; c = c.getParent ()) {\r
-pt.x += c.x;\r
-pt.y += c.y;\r
-}\r
-return pt;\r
-} else {\r
-var pt = this.peer.getLocationOnScreen ();\r
-return pt;\r
-}} else {\r
-throw  new java.awt.IllegalComponentStateException ("component must be showing on the screen to determine its location");\r
-}});\r
-Clazz.defineMethod (c$, "location", \r
-function () {\r
-return this.location_NoClientCode ();\r
-});\r
-Clazz.defineMethod (c$, "location_NoClientCode", \r
- function () {\r
-return  new java.awt.Point (this.x, this.y);\r
-});\r
-Clazz.defineMethod (c$, "setLocation", \r
-function (x, y) {\r
-this.setBoundsOp (1);\r
-this.setBounds (x, y, this.width, this.height);\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "setLocation", \r
-function (p) {\r
-this.setLocation (p.x, p.y);\r
-}, "java.awt.Point");\r
-Clazz.defineMethod (c$, "getSize", \r
-function () {\r
-return this.size ();\r
-});\r
-Clazz.defineMethod (c$, "size", \r
-function () {\r
-return  new java.awt.Dimension (this.width, this.height);\r
-});\r
-Clazz.defineMethod (c$, "setSize", \r
-function (width, height) {\r
-{\r
-if (arguments.length == 1) {\r
-var d = arguments[0];\r
-width = d.width;\r
-height = d.height;\r
-}\r
-}this.resize (width, height);\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "resize", \r
-function (width, height) {\r
-this.setBoundsOp (2);\r
-this.setBounds (this.x, this.y, width, height);\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "setBounds", \r
-function (x, y, width, height) {\r
-this.reshape (x, y, width, height);\r
-}, "~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "setBounds", \r
-function (r) {\r
-this.setBounds (r.x, r.y, r.width, r.height);\r
-}, "java.awt.Rectangle");\r
-Clazz.defineMethod (c$, "reshape", \r
-function (x, y, width, height) {\r
-try {\r
-this.setBoundsOp (3);\r
-var resized = (this.width != width) || (this.height != height);\r
-var moved = (this.x != x) || (this.y != y);\r
-if (!resized && !moved) {\r
-return;\r
-}var oldX = this.x;\r
-var oldY = this.y;\r
-var oldWidth = this.width;\r
-var oldHeight = this.height;\r
-this.x = x;\r
-this.y = y;\r
-this.width = width;\r
-this.height = height;\r
-if (resized) {\r
-this.isPacked = false;\r
-System.out.println ("C " + swingjs.JSToolkit.getClassName (this) + " resized to " + this.getBounds ());\r
-}var needNotify = true;\r
-this.mixOnReshaping ();\r
-if (this.peer != null) {\r
-this.reshapeNativePeer (x, y, width, height, this.getBoundsOp ());\r
-resized = (oldWidth != this.width) || (oldHeight != this.height);\r
-moved = (oldX != this.x) || (oldY != this.y);\r
-if (Clazz.instanceOf (this, java.awt.Window)) {\r
-needNotify = false;\r
-}if (resized) {\r
-this.invalidate ();\r
-}if (this.parent != null) {\r
-this.parent.invalidateIfValid ();\r
-}}if (needNotify) {\r
-this.notifyNewBounds (resized, moved);\r
-}this.repaintParentIfNeeded (oldX, oldY, oldWidth, oldHeight);\r
-} finally {\r
-this.setBoundsOp (5);\r
-}\r
-}, "~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "repaintParentIfNeeded", \r
- function (oldX, oldY, oldWidth, oldHeight) {\r
-if (this.parent != null && Clazz.instanceOf (this.peer, java.awt.peer.LightweightPeer) && this.isShowing ()) {\r
-this.parent.repaint (oldX, oldY, oldWidth, oldHeight);\r
-this.repaint ();\r
-}}, "~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "reshapeNativePeer", \r
- function (x, y, width, height, op) {\r
-var nativeX = x;\r
-var nativeY = y;\r
-for (var c = this.parent; (c != null) && (Clazz.instanceOf (c.peer, java.awt.peer.LightweightPeer)); c = c.parent) {\r
-nativeX += c.x;\r
-nativeY += c.y;\r
-}\r
-this.peer.setBounds (nativeX, nativeY, width, height, op);\r
-}, "~N,~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "notifyNewBounds", \r
- function (resized, moved) {\r
-if (this.componentListener != null || (this.eventMask & 1) != 0 || java.awt.Toolkit.enabledOnToolkit (1)) {\r
-if (resized) {\r
-var e =  new java.awt.event.ComponentEvent (this, 101);\r
-java.awt.Toolkit.getEventQueue ().postEvent (e);\r
-}if (moved) {\r
-var e =  new java.awt.event.ComponentEvent (this, 100);\r
-java.awt.Toolkit.getEventQueue ().postEvent (e);\r
-}} else {\r
-if (Clazz.instanceOf (this, java.awt.Container) && (this).countComponents () > 0) {\r
-var enabledOnToolkit = java.awt.Toolkit.enabledOnToolkit (65536);\r
-if (resized) {\r
-(this).createChildHierarchyEvents (1402, 0, enabledOnToolkit);\r
-}if (moved) {\r
-(this).createChildHierarchyEvents (1401, 0, enabledOnToolkit);\r
-}}}}, "~B,~B");\r
-Clazz.defineMethod (c$, "getX", \r
-function () {\r
-return this.x;\r
-});\r
-Clazz.defineMethod (c$, "getY", \r
-function () {\r
-return this.y;\r
-});\r
-Clazz.defineMethod (c$, "getWidth", \r
-function () {\r
-return this.width;\r
-});\r
-Clazz.defineMethod (c$, "getHeight", \r
-function () {\r
-return this.height;\r
-});\r
-Clazz.defineMethod (c$, "getBounds", \r
-function (rv) {\r
-if (rv == null) return  new java.awt.Rectangle (this.getX (), this.getY (), this.getWidth (), this.getHeight ());\r
-rv.reshape (this.getX (), this.getY (), this.getWidth (), this.getHeight ());\r
-return rv;\r
-}, "java.awt.Rectangle");\r
-Clazz.defineMethod (c$, "getSize", \r
-function (rv) {\r
-if (rv == null) {\r
-return  new java.awt.Dimension (this.getWidth (), this.getHeight ());\r
-} else {\r
-rv.setSize (this.getWidth (), this.getHeight ());\r
-return rv;\r
-}}, "java.awt.Dimension");\r
-Clazz.defineMethod (c$, "getLocation", \r
-function (rv) {\r
-if (rv == null) {\r
-return  new java.awt.Point (this.getX (), this.getY ());\r
-} else {\r
-rv.setLocation (this.getX (), this.getY ());\r
-return rv;\r
-}}, "java.awt.Point");\r
-Clazz.defineMethod (c$, "isOpaque", \r
-function () {\r
-return true;\r
-});\r
-Clazz.defineMethod (c$, "isLightweight", \r
-function () {\r
-return false;\r
-});\r
-Clazz.defineMethod (c$, "setPreferredSize", \r
-function (preferredSize) {\r
-this.setPrefSizeComp (preferredSize);\r
-}, "java.awt.Dimension");\r
-Clazz.defineMethod (c$, "setPrefSizeComp", \r
-function (preferredSize) {\r
-var old = (this.prefSizeSet ? this.prefSize : null);\r
-this.prefSize = preferredSize;\r
-this.prefSizeSet = (preferredSize != null);\r
-this.firePropertyChangeObject ("preferredSize", old, preferredSize);\r
-}, "java.awt.Dimension");\r
-Clazz.defineMethod (c$, "isPreferredSizeSet", \r
-function () {\r
-return this.prefSizeSet;\r
-});\r
-Clazz.defineMethod (c$, "getPreferredSize", \r
-function () {\r
-return this.preferredSize ();\r
-});\r
-Clazz.defineMethod (c$, "preferredSize", \r
-function () {\r
-return this.prefSizeComp ();\r
-});\r
-Clazz.defineMethod (c$, "prefSizeComp", \r
-function () {\r
-var dim = this.prefSize;\r
-if (dim == null || !(this.isPreferredSizeSet () || this.isValid ())) {\r
-this.prefSize = this.getMinimumSize ();\r
-dim = this.prefSize;\r
-}return  new java.awt.Dimension (dim);\r
-});\r
-Clazz.defineMethod (c$, "setMinimumSize", \r
-function (minimumSize) {\r
-var old;\r
-if (this.minSizeSet) {\r
-old = this.minSize;\r
-} else {\r
-old = null;\r
-}this.minSize = minimumSize;\r
-this.minSizeSet = (minimumSize != null);\r
-this.firePropertyChangeObject ("minimumSize", old, minimumSize);\r
-}, "java.awt.Dimension");\r
-Clazz.defineMethod (c$, "isMinimumSizeSet", \r
-function () {\r
-return this.minSizeSet;\r
-});\r
-Clazz.defineMethod (c$, "getMinimumSize", \r
-function () {\r
-return this.minimumSize ();\r
-});\r
-Clazz.defineMethod (c$, "minimumSize", \r
-function () {\r
-var dim = this.minSize;\r
-if (dim == null || !(this.isMinimumSizeSet () || this.isValid ())) {\r
-this.minSize = this.getSize ();\r
-dim = this.minSize;\r
-}return  new java.awt.Dimension (dim);\r
-});\r
-Clazz.defineMethod (c$, "setMaximumSize", \r
-function (maximumSize) {\r
-var old;\r
-if (this.maxSizeSet) {\r
-old = this.maxSize;\r
-} else {\r
-old = null;\r
-}this.maxSize = maximumSize;\r
-this.maxSizeSet = (maximumSize != null);\r
-this.firePropertyChangeObject ("maximumSize", old, maximumSize);\r
-}, "java.awt.Dimension");\r
-Clazz.defineMethod (c$, "isMaximumSizeSet", \r
-function () {\r
-return this.maxSizeSet;\r
-});\r
-Clazz.defineMethod (c$, "getMaximumSize", \r
-function () {\r
-return this.getMaxSizeComp ();\r
-});\r
-Clazz.defineMethod (c$, "getMaxSizeComp", \r
-function () {\r
-if (this.isMaximumSizeSet ()) {\r
-return  new java.awt.Dimension (this.maxSize);\r
-}return  new java.awt.Dimension (32767, 32767);\r
-});\r
-Clazz.defineMethod (c$, "getAlignmentX", \r
-function () {\r
-return this.getAlignmentXComp ();\r
-});\r
-Clazz.defineMethod (c$, "getAlignmentXComp", \r
-function () {\r
-return 0.5;\r
-});\r
-Clazz.defineMethod (c$, "getAlignmentY", \r
-function () {\r
-return this.getAlignmentYComp ();\r
-});\r
-Clazz.defineMethod (c$, "getAlignmentYComp", \r
-function () {\r
-return 0.5;\r
-});\r
-Clazz.defineMethod (c$, "getBaseline", \r
-function (width, height) {\r
-if (width < 0 || height < 0) {\r
-throw  new IllegalArgumentException ("Width and height must be >= 0");\r
-}return -1;\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "getBaselineResizeBehavior", \r
-function () {\r
-return java.awt.Component.BaselineResizeBehavior.OTHER;\r
-});\r
-Clazz.defineMethod (c$, "doLayout", \r
-function () {\r
-this.layout ();\r
-});\r
-Clazz.defineMethod (c$, "layout", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "validate", \r
-function () {\r
-this.validateComponent ();\r
-});\r
-Clazz.defineMethod (c$, "validateComponent", \r
-function () {\r
-{\r
-var peer = this.peer;\r
-var wasValid = this.isValid ();\r
-if (!wasValid && peer != null) {\r
-var newfont = this.getFont ();\r
-var oldfont = this.peerFont;\r
-if (newfont !== oldfont && (oldfont == null || !oldfont.equals (newfont))) {\r
-peer.setFont (newfont);\r
-this.peerFont = newfont;\r
-}peer.layout ();\r
-}this.valid = true;\r
-if (!wasValid) {\r
-this.mixOnValidating ();\r
-}}});\r
-Clazz.defineMethod (c$, "invalidate", \r
-function () {\r
-this.invalidateComp ();\r
-});\r
-Clazz.defineMethod (c$, "invalidateComp", \r
-function () {\r
-this.valid = false;\r
-if (!this.isPreferredSizeSet ()) {\r
-this.prefSize = null;\r
-}if (!this.isMinimumSizeSet ()) {\r
-this.minSize = null;\r
-}if (!this.isMaximumSizeSet ()) {\r
-this.maxSize = null;\r
-}if (this.parent != null) {\r
-this.parent.invalidateIfValid ();\r
-}});\r
-Clazz.defineMethod (c$, "invalidateIfValid", \r
-function () {\r
-if (this.isValid ()) {\r
-this.invalidate ();\r
-}});\r
-Clazz.defineMethod (c$, "getGraphics", \r
-function () {\r
-if (Clazz.instanceOf (this.peer, java.awt.peer.LightweightPeer)) {\r
-if (this.parent == null) return null;\r
-var g = this.parent.getGraphics ();\r
-if (g == null) return null;\r
-g.setFont (this.getFont ());\r
-return g;\r
-} else {\r
-var peer = this.peer;\r
-return (peer != null) ? peer.getGraphics () : null;\r
-}});\r
-Clazz.defineMethod (c$, "getTreeLock", \r
-function () {\r
-return this;\r
-});\r
-Clazz.defineMethod (c$, "getFontMetrics", \r
-function (font) {\r
-return jssun.font.FontDesignMetrics.getMetrics (font);\r
-}, "java.awt.Font");\r
-Clazz.defineMethod (c$, "setCursor", \r
-function (cursor) {\r
-this.cursor = cursor;\r
-this.updateCursorImmediately ();\r
-}, "java.awt.Cursor");\r
-Clazz.defineMethod (c$, "updateCursorImmediately", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "getCursor", \r
-function () {\r
-return this.getCursor_NoClientCode ();\r
-});\r
-Clazz.defineMethod (c$, "getCursor_NoClientCode", \r
-function () {\r
-var cursor = this.cursor;\r
-if (cursor != null) {\r
-return cursor;\r
-}var parent = this.parent;\r
-if (parent != null) {\r
-return parent.getCursor_NoClientCode ();\r
-} else {\r
-return java.awt.Cursor.getPredefinedCursor (0);\r
-}});\r
-Clazz.defineMethod (c$, "isCursorSet", \r
-function () {\r
-return (this.cursor != null);\r
-});\r
-Clazz.defineMethod (c$, "paint", \r
-function (g) {\r
-}, "java.awt.Graphics");\r
-Clazz.defineMethod (c$, "update", \r
-function (g) {\r
-this.paint (g);\r
-}, "java.awt.Graphics");\r
-Clazz.defineMethod (c$, "paintAll", \r
-function (g) {\r
-}, "java.awt.Graphics");\r
-Clazz.defineMethod (c$, "lightweightPaint", \r
-function (g) {\r
-this.lwPaintComp (g);\r
-}, "java.awt.Graphics");\r
-Clazz.defineMethod (c$, "lwPaintComp", \r
-function (g) {\r
-this.paint (g);\r
-}, "java.awt.Graphics");\r
-Clazz.defineMethod (c$, "paintHeavyweightComponents", \r
-function (g) {\r
-}, "java.awt.Graphics");\r
-Clazz.defineMethod (c$, "repaint", \r
-function () {\r
-this.repaintImpl (0, 0, 0, this.width, this.height);\r
-});\r
-Clazz.defineMethod (c$, "repaint", \r
-function (tm) {\r
-this.repaintImpl (tm, 0, 0, this.width, this.height);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "repaint", \r
-function (x, y, width, height) {\r
-this.repaintImpl (0, x, y, width, height);\r
-}, "~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "repaint", \r
-function (tm, x, y, width, height) {\r
-this.repaintImpl (tm, x, y, width, height);\r
-}, "~N,~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "repaintImpl", \r
-function (tm, x, y, width, height) {\r
-if (Clazz.instanceOf (this.peer, java.awt.peer.LightweightPeer)) {\r
-if (this.parent != null) {\r
-var px = this.x + ((x < 0) ? 0 : x);\r
-var py = this.y + ((y < 0) ? 0 : y);\r
-var pwidth = (width > this.width) ? this.width : width;\r
-var pheight = (height > this.height) ? this.height : height;\r
-this.parent.repaint (tm, px, py, pwidth, pheight);\r
-}} else {\r
-if (this.isVisible () && (this.peer != null) && (width > 0) && (height > 0)) {\r
-var e =  new java.awt.event.PaintEvent (this, 801,  new java.awt.Rectangle (x, y, width, height));\r
-java.awt.Toolkit.getEventQueue ().postEvent (e);\r
-}}}, "~N,~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "print", \r
-function (g) {\r
-this.paint (g);\r
-}, "java.awt.Graphics");\r
-Clazz.defineMethod (c$, "printAll", \r
-function (g) {\r
-}, "java.awt.Graphics");\r
-Clazz.defineMethod (c$, "printHeavyweightComponents", \r
-function (g) {\r
-}, "java.awt.Graphics");\r
-Clazz.overrideMethod (c$, "imageUpdate", \r
-function (img, infoflags, x, y, w, h) {\r
-return false;\r
-}, "java.awt.Image,~N,~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "createImage", \r
-function (producer) {\r
-return this.getToolkit ().createImage (producer);\r
-}, "java.awt.image.ImageProducer");\r
-Clazz.defineMethod (c$, "createImage", \r
-function (width, height) {\r
-return java.awt.Toolkit.getDefaultToolkit ().createImage (null, width, height);\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "createVolatileImage", \r
-function (width, height) {\r
-return null;\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "createVolatileImage", \r
-function (width, height, caps) {\r
-return this.createVolatileImage (width, height);\r
-}, "~N,~N,java.awt.ImageCapabilities");\r
-Clazz.defineMethod (c$, "prepareImage", \r
-function (image, observer) {\r
-return this.prepareImage (image, -1, -1, observer);\r
-}, "java.awt.Image,java.awt.image.ImageObserver");\r
-Clazz.defineMethod (c$, "prepareImage", \r
-function (image, width, height, observer) {\r
-return false;\r
-}, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");\r
-Clazz.defineMethod (c$, "checkImage", \r
-function (image, observer) {\r
-return this.checkImage (image, -1, -1, observer);\r
-}, "java.awt.Image,java.awt.image.ImageObserver");\r
-Clazz.defineMethod (c$, "checkImage", \r
-function (image, width, height, observer) {\r
-return 0;\r
-}, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");\r
-Clazz.defineMethod (c$, "setIgnoreRepaint", \r
-function (ignoreRepaint) {\r
-}, "~B");\r
-Clazz.defineMethod (c$, "getIgnoreRepaint", \r
-function () {\r
-return false;\r
-});\r
-Clazz.defineMethod (c$, "contains", \r
-function (x, y) {\r
-return this.inside (x, y);\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "inside", \r
-function (x, y) {\r
-return (x >= 0) && (x < this.width) && (y >= 0) && (y < this.height);\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "getComponentAt", \r
-function (x, y) {\r
-return this.locate (x, y);\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "locate", \r
-function (x, y) {\r
-return this.contains (x, y) ? this : null;\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "getComponentAt", \r
-function (p) {\r
-return this.getComponentAt (p.x, p.y);\r
-}, "java.awt.Point");\r
-Clazz.defineMethod (c$, "deliverEvent", \r
-function (e) {\r
-this.postEvent (e);\r
-}, "java.awt.Event");\r
-Clazz.defineMethod (c$, "dispatchEvent", \r
-function (e) {\r
-this.dispatchEventImpl (e);\r
-}, "java.awt.AWTEvent");\r
-Clazz.defineMethod (c$, "dispatchEventImpl", \r
-function (e) {\r
-this.dispatchEventImplComp (e);\r
-}, "java.awt.AWTEvent");\r
-Clazz.defineMethod (c$, "dispatchEventImplComp", \r
-function (e) {\r
-var id = e.getID ();\r
-java.awt.EventQueue.setCurrentEventAndMostRecentTime (e);\r
-if (!e.focusManagerIsDispatching) {\r
-if (e.isPosted) {\r
-e.isPosted = true;\r
-}}if (!e.isConsumed ()) {\r
-if (Clazz.instanceOf (e, java.awt.event.KeyEvent)) {\r
-if (e.isConsumed ()) {\r
-return;\r
-}}}if (this.areInputMethodsEnabled ()) {\r
-if ((Clazz.instanceOf (e, java.awt.event.InputEvent)) || (Clazz.instanceOf (e, java.awt.event.FocusEvent))) {\r
-}} else {\r
-if (id == 1004) {\r
-}}switch (id) {\r
-case 401:\r
-case 402:\r
-var p = ((Clazz.instanceOf (this, java.awt.Container)) ? this : this.parent);\r
-if (p != null) {\r
-p.preProcessKeyEvent (e);\r
-}break;\r
-case 201:\r
-break;\r
-default:\r
-break;\r
-}\r
-if (this.newEventsOnly) {\r
-if (this.eventEnabled (e)) {\r
-this.processEvent (e);\r
-}} else if (id == 507) {\r
-this.autoProcessMouseWheel (e);\r
-} else if (!(Clazz.instanceOf (e, java.awt.event.MouseEvent) && !this.postsOldMouseEvents ())) {\r
-}if (id == 201 && !e.isConsumed ()) {\r
-}if (!(Clazz.instanceOf (e, java.awt.event.KeyEvent))) {\r
-}}, "java.awt.AWTEvent");\r
-Clazz.defineMethod (c$, "autoProcessMouseWheel", \r
-function (e) {\r
-}, "java.awt.event.MouseWheelEvent");\r
-Clazz.defineMethod (c$, "dispatchMouseWheelToAncestor", \r
-function (e) {\r
-var newX;\r
-var newY;\r
-newX = e.getX () + this.getX ();\r
-newY = e.getY () + this.getY ();\r
-var newMWE;\r
-{\r
-var anc = this.getParent ();\r
-while (anc != null && !anc.eventEnabled (e)) {\r
-newX += anc.getX ();\r
-newY += anc.getY ();\r
-if (!(Clazz.instanceOf (anc, java.awt.Window))) {\r
-anc = anc.getParent ();\r
-} else {\r
-break;\r
-}}\r
-if (anc != null && anc.eventEnabled (e)) {\r
-newMWE =  new java.awt.event.MouseWheelEvent (anc, e.getID (), e.getWhen (), e.getModifiers (), newX, newY, e.getXOnScreen (), e.getYOnScreen (), e.getClickCount (), e.isPopupTrigger (), e.getScrollType (), e.getScrollAmount (), e.getWheelRotation ());\r
-(e).copyPrivateDataInto (newMWE);\r
-anc.dispatchEventToSelf (newMWE);\r
-}}return true;\r
-}, "java.awt.event.MouseWheelEvent");\r
-Clazz.defineMethod (c$, "checkWindowClosingException", \r
-function () {\r
-if (this.windowClosingException != null) {\r
-if (Clazz.instanceOf (this, java.awt.Dialog)) {\r
-(this).interruptBlocking ();\r
-} else {\r
-this.windowClosingException.fillInStackTrace ();\r
-this.windowClosingException.printStackTrace ();\r
-this.windowClosingException = null;\r
-}return true;\r
-}return false;\r
-});\r
-Clazz.defineMethod (c$, "areInputMethodsEnabled", \r
-function () {\r
-return ((this.eventMask & 4096) != 0) && ((this.eventMask & 8) != 0 || this.keyListener != null);\r
-});\r
-Clazz.defineMethod (c$, "eventEnabled", \r
-function (e) {\r
-return this.eventTypeEnabled (e.id);\r
-}, "java.awt.AWTEvent");\r
-Clazz.defineMethod (c$, "eventTypeEnabled", \r
-function (type) {\r
-switch (type) {\r
-case 100:\r
-case 101:\r
-case 102:\r
-case 103:\r
-if ((this.eventMask & 1) != 0 || this.componentListener != null) {\r
-return true;\r
-}break;\r
-case 1004:\r
-case 1005:\r
-if ((this.eventMask & 4) != 0 || this.focusListener != null) {\r
-return true;\r
-}break;\r
-case 401:\r
-case 402:\r
-case 400:\r
-if ((this.eventMask & 8) != 0 || this.keyListener != null) {\r
-return true;\r
-}break;\r
-case 501:\r
-case 502:\r
-case 504:\r
-case 505:\r
-case 500:\r
-if ((this.eventMask & 16) != 0 || this.mouseListener != null) {\r
-return true;\r
-}break;\r
-case 503:\r
-case 506:\r
-if ((this.eventMask & 32) != 0 || this.mouseMotionListener != null) {\r
-return true;\r
-}break;\r
-case 507:\r
-if ((this.eventMask & 131072) != 0 || this.mouseWheelListener != null) {\r
-return true;\r
-}break;\r
-case 1100:\r
-case 1101:\r
-if ((this.eventMask & 2048) != 0 || this.inputMethodListener != null) {\r
-return true;\r
-}break;\r
-case 1400:\r
-if ((this.eventMask & 32768) != 0 || this.hierarchyListener != null) {\r
-return true;\r
-}break;\r
-case 1401:\r
-case 1402:\r
-if ((this.eventMask & 65536) != 0 || this.hierarchyBoundsListener != null) {\r
-return true;\r
-}break;\r
-case 1001:\r
-if ((this.eventMask & 128) != 0) {\r
-return true;\r
-}break;\r
-case 900:\r
-if ((this.eventMask & 1024) != 0) {\r
-return true;\r
-}break;\r
-case 701:\r
-if ((this.eventMask & 512) != 0) {\r
-return true;\r
-}break;\r
-case 601:\r
-if ((this.eventMask & 256) != 0) {\r
-return true;\r
-}break;\r
-default:\r
-break;\r
-}\r
-if (type > 1999) {\r
-return true;\r
-}return false;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "postEvent", \r
-function (e) {\r
-if (this.handleEvent (e)) {\r
-e.consume ();\r
-return true;\r
-}var parent = this.parent;\r
-var eventx = e.x;\r
-var eventy = e.y;\r
-if (parent != null) {\r
-e.translate (this.x, this.y);\r
-if (parent.postEvent (e)) {\r
-e.consume ();\r
-return true;\r
-}e.x = eventx;\r
-e.y = eventy;\r
-}return false;\r
-}, "java.awt.Event");\r
-Clazz.defineMethod (c$, "addComponentListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.componentListener = java.awt.AWTEventMulticaster.add (this.componentListener, l);\r
-this.newEventsOnly = true;\r
-}, "java.awt.event.ComponentListener");\r
-Clazz.defineMethod (c$, "removeComponentListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.componentListener = java.awt.AWTEventMulticaster.remove (this.componentListener, l);\r
-}, "java.awt.event.ComponentListener");\r
-Clazz.defineMethod (c$, "getComponentListeners", \r
-function () {\r
-return (this.getListeners (java.awt.event.ComponentListener));\r
-});\r
-Clazz.defineMethod (c$, "addFocusListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.focusListener = java.awt.AWTEventMulticaster.add (this.focusListener, l);\r
-this.newEventsOnly = true;\r
-}, "java.awt.event.FocusListener");\r
-Clazz.defineMethod (c$, "removeFocusListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.focusListener = java.awt.AWTEventMulticaster.remove (this.focusListener, l);\r
-}, "java.awt.event.FocusListener");\r
-Clazz.defineMethod (c$, "getFocusListeners", \r
-function () {\r
-return (this.getListeners (java.awt.event.FocusListener));\r
-});\r
-Clazz.defineMethod (c$, "addHierarchyListener", \r
-function (l) {\r
-}, "java.awt.event.HierarchyListener");\r
-Clazz.defineMethod (c$, "removeHierarchyListener", \r
-function (l) {\r
-}, "java.awt.event.HierarchyListener");\r
-Clazz.defineMethod (c$, "getHierarchyListeners", \r
-function () {\r
-return (this.getListeners (java.awt.event.HierarchyListener));\r
-});\r
-Clazz.defineMethod (c$, "addHierarchyBoundsListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}var notifyAncestors;\r
-{\r
-notifyAncestors = (this.hierarchyBoundsListener == null && (this.eventMask & 65536) == 0);\r
-this.hierarchyBoundsListener = java.awt.AWTEventMulticaster.add (this.hierarchyBoundsListener, l);\r
-notifyAncestors = (notifyAncestors && this.hierarchyBoundsListener != null);\r
-this.newEventsOnly = true;\r
-}if (notifyAncestors) {\r
-{\r
-this.adjustListeningChildrenOnParent (65536, 1);\r
-}}}, "java.awt.event.HierarchyBoundsListener");\r
-Clazz.defineMethod (c$, "removeHierarchyBoundsListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}var notifyAncestors;\r
-{\r
-notifyAncestors = (this.hierarchyBoundsListener != null && (this.eventMask & 65536) == 0);\r
-this.hierarchyBoundsListener = java.awt.AWTEventMulticaster.remove (this.hierarchyBoundsListener, l);\r
-notifyAncestors = (notifyAncestors && this.hierarchyBoundsListener == null);\r
-}if (notifyAncestors) {\r
-{\r
-this.adjustListeningChildrenOnParent (65536, -1);\r
-}}}, "java.awt.event.HierarchyBoundsListener");\r
-Clazz.defineMethod (c$, "numListening", \r
-function (mask) {\r
-return this.numListeningMask (mask);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "numListeningMask", \r
-function (mask) {\r
-if ((mask == 32768 && (this.hierarchyListener != null || (this.eventMask & 32768) != 0)) || (mask == 65536 && (this.hierarchyBoundsListener != null || (this.eventMask & 65536) != 0))) {\r
-return 1;\r
-} else {\r
-return 0;\r
-}}, "~N");\r
-Clazz.defineMethod (c$, "countHierarchyMembers", \r
-function () {\r
-return 1;\r
-});\r
-Clazz.defineMethod (c$, "createHierarchyEvents", \r
-function (id, changed, changedParent, changeFlags, enabledOnToolkit) {\r
-return this.createHierEventsComp (id, changed, changedParent, changeFlags, enabledOnToolkit);\r
-}, "~N,java.awt.Component,java.awt.Container,~N,~B");\r
-Clazz.defineMethod (c$, "createHierEventsComp", \r
-function (id, changed, changedParent, changeFlags, enabledOnToolkit) {\r
-switch (id) {\r
-case 1400:\r
-if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || enabledOnToolkit) {\r
-var e =  new java.awt.event.HierarchyEvent (this, id, changed, changedParent, changeFlags);\r
-this.dispatchEvent (e);\r
-return 1;\r
-}break;\r
-case 1401:\r
-case 1402:\r
-if (this.hierarchyBoundsListener != null || (this.eventMask & 65536) != 0 || enabledOnToolkit) {\r
-var e =  new java.awt.event.HierarchyEvent (this, id, changed, changedParent);\r
-this.dispatchEvent (e);\r
-return 1;\r
-}break;\r
-default:\r
-break;\r
-}\r
-return 0;\r
-}, "~N,java.awt.Component,java.awt.Container,~N,~B");\r
-Clazz.defineMethod (c$, "getHierarchyBoundsListeners", \r
-function () {\r
-return (this.getListeners (java.awt.event.HierarchyBoundsListener));\r
-});\r
-Clazz.defineMethod (c$, "adjustListeningChildrenOnParent", \r
-function (mask, num) {\r
-if (this.parent != null) {\r
-this.parent.adjustListeningChildren (mask, num);\r
-}}, "~N,~N");\r
-Clazz.defineMethod (c$, "addKeyListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.keyListener = java.awt.AWTEventMulticaster.add (this.keyListener, l);\r
-this.newEventsOnly = true;\r
-}, "java.awt.event.KeyListener");\r
-Clazz.defineMethod (c$, "removeKeyListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.keyListener = java.awt.AWTEventMulticaster.remove (this.keyListener, l);\r
-}, "java.awt.event.KeyListener");\r
-Clazz.defineMethod (c$, "getKeyListeners", \r
-function () {\r
-return (this.getListeners (java.awt.event.KeyListener));\r
-});\r
-Clazz.defineMethod (c$, "addMouseListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}System.out.println ("C adding mouse listener " + l);\r
-this.mouseListener = java.awt.AWTEventMulticaster.add (this.mouseListener, l);\r
-this.newEventsOnly = true;\r
-}, "java.awt.event.MouseListener");\r
-Clazz.defineMethod (c$, "removeMouseListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.mouseListener = java.awt.AWTEventMulticaster.remove (this.mouseListener, l);\r
-}, "java.awt.event.MouseListener");\r
-Clazz.defineMethod (c$, "getMouseListeners", \r
-function () {\r
-return (this.getListeners (java.awt.event.MouseListener));\r
-});\r
-Clazz.defineMethod (c$, "addMouseMotionListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.mouseMotionListener = java.awt.AWTEventMulticaster.add (this.mouseMotionListener, l);\r
-this.newEventsOnly = true;\r
-}, "java.awt.event.MouseMotionListener");\r
-Clazz.defineMethod (c$, "removeMouseMotionListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.mouseMotionListener = java.awt.AWTEventMulticaster.remove (this.mouseMotionListener, l);\r
-}, "java.awt.event.MouseMotionListener");\r
-Clazz.defineMethod (c$, "getMouseMotionListeners", \r
-function () {\r
-return (this.getListeners (java.awt.event.MouseMotionListener));\r
-});\r
-Clazz.defineMethod (c$, "addMouseWheelListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.mouseWheelListener = java.awt.AWTEventMulticaster.add (this.mouseWheelListener, l);\r
-this.newEventsOnly = true;\r
-}, "java.awt.event.MouseWheelListener");\r
-Clazz.defineMethod (c$, "removeMouseWheelListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.mouseWheelListener = java.awt.AWTEventMulticaster.remove (this.mouseWheelListener, l);\r
-}, "java.awt.event.MouseWheelListener");\r
-Clazz.defineMethod (c$, "getMouseWheelListeners", \r
-function () {\r
-return (this.getListeners (java.awt.event.MouseWheelListener));\r
-});\r
-Clazz.defineMethod (c$, "addInputMethodListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.inputMethodListener = java.awt.AWTEventMulticaster.add (this.inputMethodListener, l);\r
-this.newEventsOnly = true;\r
-}, "java.awt.event.InputMethodListener");\r
-Clazz.defineMethod (c$, "removeInputMethodListener", \r
-function (l) {\r
-if (l == null) {\r
-return;\r
-}this.inputMethodListener = java.awt.AWTEventMulticaster.remove (this.inputMethodListener, l);\r
-}, "java.awt.event.InputMethodListener");\r
-Clazz.defineMethod (c$, "getInputMethodListeners", \r
-function () {\r
-return (this.getListeners (java.awt.event.InputMethodListener));\r
-});\r
-Clazz.defineMethod (c$, "getListeners", \r
-function (listenerType) {\r
-return this.getListenersComp (listenerType);\r
-}, "Class");\r
-Clazz.defineMethod (c$, "getListenersComp", \r
-function (listenerType) {\r
-var l = null;\r
-if (listenerType === java.awt.event.ComponentListener) {\r
-l = this.componentListener;\r
-} else if (listenerType === java.awt.event.FocusListener) {\r
-l = this.focusListener;\r
-} else if (listenerType === java.awt.event.HierarchyListener) {\r
-l = this.hierarchyListener;\r
-} else if (listenerType === java.awt.event.HierarchyBoundsListener) {\r
-l = this.hierarchyBoundsListener;\r
-} else if (listenerType === java.awt.event.KeyListener) {\r
-l = this.keyListener;\r
-} else if (listenerType === java.awt.event.MouseListener) {\r
-l = this.mouseListener;\r
-} else if (listenerType === java.awt.event.MouseMotionListener) {\r
-l = this.mouseMotionListener;\r
-} else if (listenerType === java.awt.event.MouseWheelListener) {\r
-l = this.mouseWheelListener;\r
-} else if (listenerType === java.awt.event.InputMethodListener) {\r
-l = this.inputMethodListener;\r
-} else if (listenerType === java.beans.PropertyChangeListener) {\r
-return this.getPropertyChangeListeners ();\r
-}return java.awt.AWTEventMulticaster.getListeners (l, listenerType);\r
-}, "Class");\r
-Clazz.defineMethod (c$, "enableEvents", \r
-function (eventsToEnable) {\r
-var notifyAncestors = 0;\r
-{\r
-if ((eventsToEnable & 32768) != 0 && this.hierarchyListener == null && (this.eventMask & 32768) == 0) {\r
-notifyAncestors |= 32768;\r
-}if ((eventsToEnable & 65536) != 0 && this.hierarchyBoundsListener == null && (this.eventMask & 65536) == 0) {\r
-notifyAncestors |= 65536;\r
-}this.eventMask |= eventsToEnable;\r
-this.newEventsOnly = true;\r
-}if (Clazz.instanceOf (this.peer, java.awt.peer.LightweightPeer)) {\r
-this.parent.proxyEnableEvents (this.eventMask);\r
-}if (notifyAncestors != 0) {\r
-{\r
-this.adjustListeningChildrenOnParent (notifyAncestors, 1);\r
-}}}, "~N");\r
-Clazz.defineMethod (c$, "disableEvents", \r
-function (eventsToDisable) {\r
-var notifyAncestors = 0;\r
-{\r
-if ((eventsToDisable & 32768) != 0 && this.hierarchyListener == null && (this.eventMask & 32768) != 0) {\r
-notifyAncestors |= 32768;\r
-}if ((eventsToDisable & 65536) != 0 && this.hierarchyBoundsListener == null && (this.eventMask & 65536) != 0) {\r
-notifyAncestors |= 65536;\r
-}this.eventMask &= ~eventsToDisable;\r
-}if (notifyAncestors != 0) {\r
-{\r
-this.adjustListeningChildrenOnParent (notifyAncestors, -1);\r
-}}}, "~N");\r
-Clazz.defineMethod (c$, "checkCoalescing", \r
- function () {\r
-if (this.getClass ().getClassLoader () == null) {\r
-return false;\r
-}var clazz = this.getClass ();\r
-{\r
-var value = java.awt.Component.coalesceMap.get (clazz);\r
-if (value != null) {\r
-return value;\r
-}var enabled = Boolean.$valueOf (swingjs.JSToolkit.checkClassMethod (this, "coalesceEvents", "\\java.awt.AWTEvent\\java.awt.AWTEvent"));\r
-java.awt.Component.coalesceMap.put (clazz, enabled);\r
-return enabled;\r
-}});\r
-Clazz.defineMethod (c$, "isCoalescingEnabled", \r
-function () {\r
-return this.coalescingEnabled;\r
-});\r
-Clazz.defineMethod (c$, "coalesceEvents", \r
-function (existingEvent, newEvent) {\r
-return null;\r
-}, "java.awt.AWTEvent,java.awt.AWTEvent");\r
-Clazz.defineMethod (c$, "processEvent", \r
-function (e) {\r
-this.processEventComp (e);\r
-}, "java.awt.AWTEvent");\r
-Clazz.defineMethod (c$, "processEventComp", \r
-function (e) {\r
-if (Clazz.instanceOf (e, java.awt.event.FocusEvent)) {\r
-this.processFocusEvent (e);\r
-} else if (Clazz.instanceOf (e, java.awt.event.MouseEvent)) {\r
-switch (e.getID ()) {\r
-case 501:\r
-case 502:\r
-case 500:\r
-case 504:\r
-case 505:\r
-this.processMouseEvent (e);\r
-break;\r
-case 503:\r
-case 506:\r
-this.processMouseMotionEvent (e);\r
-break;\r
-case 507:\r
-this.processMouseWheelEvent (e);\r
-break;\r
-}\r
-} else if (Clazz.instanceOf (e, java.awt.event.KeyEvent)) {\r
-this.processKeyEvent (e);\r
-} else if (Clazz.instanceOf (e, java.awt.event.ComponentEvent)) {\r
-this.processComponentEvent (e);\r
-} else if (Clazz.instanceOf (e, java.awt.event.InputMethodEvent)) {\r
-this.processInputMethodEvent (e);\r
-} else if (Clazz.instanceOf (e, java.awt.event.HierarchyEvent)) {\r
-switch (e.getID ()) {\r
-case 1400:\r
-this.processHierarchyEvent (e);\r
-break;\r
-case 1401:\r
-case 1402:\r
-this.processHierarchyBoundsEvent (e);\r
-break;\r
-}\r
-}}, "java.awt.AWTEvent");\r
-Clazz.defineMethod (c$, "processComponentEvent", \r
-function (e) {\r
-var listener = this.componentListener;\r
-if (listener != null) {\r
-var id = e.getID ();\r
-switch (id) {\r
-case 101:\r
-listener.componentResized (e);\r
-break;\r
-case 100:\r
-listener.componentMoved (e);\r
-break;\r
-case 102:\r
-listener.componentShown (e);\r
-break;\r
-case 103:\r
-listener.componentHidden (e);\r
-break;\r
-}\r
-}}, "java.awt.event.ComponentEvent");\r
-Clazz.defineMethod (c$, "processFocusEvent", \r
-function (e) {\r
-var listener = this.focusListener;\r
-if (listener != null) {\r
-var id = e.getID ();\r
-switch (id) {\r
-case 1004:\r
-listener.focusGained (e);\r
-break;\r
-case 1005:\r
-listener.focusLost (e);\r
-break;\r
-}\r
-}}, "java.awt.event.FocusEvent");\r
-Clazz.defineMethod (c$, "processKeyEvent", \r
-function (e) {\r
-var listener = this.keyListener;\r
-if (listener != null) {\r
-var id = e.getID ();\r
-switch (id) {\r
-case 400:\r
-listener.keyTyped (e);\r
-break;\r
-case 401:\r
-listener.keyPressed (e);\r
-break;\r
-case 402:\r
-listener.keyReleased (e);\r
-break;\r
-}\r
-}}, "java.awt.event.KeyEvent");\r
-Clazz.defineMethod (c$, "processMouseEvent", \r
-function (e) {\r
-var listener = this.mouseListener;\r
-if (listener != null) {\r
-var id = e.getID ();\r
-switch (id) {\r
-case 501:\r
-listener.mousePressed (e);\r
-break;\r
-case 502:\r
-listener.mouseReleased (e);\r
-break;\r
-case 500:\r
-listener.mouseClicked (e);\r
-break;\r
-case 505:\r
-listener.mouseExited (e);\r
-break;\r
-case 504:\r
-listener.mouseEntered (e);\r
-break;\r
-}\r
-}}, "java.awt.event.MouseEvent");\r
-Clazz.defineMethod (c$, "processMouseMotionEvent", \r
-function (e) {\r
-var listener = this.mouseMotionListener;\r
-if (listener != null) {\r
-var id = e.getID ();\r
-switch (id) {\r
-case 503:\r
-listener.mouseMoved (e);\r
-break;\r
-case 506:\r
-listener.mouseDragged (e);\r
-break;\r
-}\r
-}}, "java.awt.event.MouseEvent");\r
-Clazz.defineMethod (c$, "processMouseWheelEvent", \r
-function (e) {\r
-var listener = this.mouseWheelListener;\r
-if (listener != null) {\r
-var id = e.getID ();\r
-switch (id) {\r
-case 507:\r
-listener.mouseWheelMoved (e);\r
-break;\r
-}\r
-}}, "java.awt.event.MouseWheelEvent");\r
-Clazz.defineMethod (c$, "postsOldMouseEvents", \r
-function () {\r
-return false;\r
-});\r
-Clazz.defineMethod (c$, "processInputMethodEvent", \r
-function (e) {\r
-var listener = this.inputMethodListener;\r
-if (listener != null) {\r
-var id = e.getID ();\r
-switch (id) {\r
-case 1100:\r
-listener.inputMethodTextChanged (e);\r
-break;\r
-case 1101:\r
-listener.caretPositionChanged (e);\r
-break;\r
-}\r
-}}, "java.awt.event.InputMethodEvent");\r
-Clazz.defineMethod (c$, "processHierarchyEvent", \r
-function (e) {\r
-var listener = this.hierarchyListener;\r
-if (listener != null) {\r
-var id = e.getID ();\r
-switch (id) {\r
-case 1400:\r
-listener.hierarchyChanged (e);\r
-break;\r
-}\r
-}}, "java.awt.event.HierarchyEvent");\r
-Clazz.defineMethod (c$, "processHierarchyBoundsEvent", \r
-function (e) {\r
-var listener = this.hierarchyBoundsListener;\r
-if (listener != null) {\r
-var id = e.getID ();\r
-switch (id) {\r
-case 1401:\r
-listener.ancestorMoved (e);\r
-break;\r
-case 1402:\r
-listener.ancestorResized (e);\r
-break;\r
-}\r
-}}, "java.awt.event.HierarchyEvent");\r
-Clazz.defineMethod (c$, "handleEvent", \r
-function (evt) {\r
-switch (evt.id) {\r
-case 504:\r
-return this.mouseEnter (evt, evt.x, evt.y);\r
-case 505:\r
-return this.mouseExit (evt, evt.x, evt.y);\r
-case 503:\r
-return this.mouseMove (evt, evt.x, evt.y);\r
-case 501:\r
-return this.mouseDown (evt, evt.x, evt.y);\r
-case 506:\r
-return this.mouseDrag (evt, evt.x, evt.y);\r
-case 502:\r
-return this.mouseUp (evt, evt.x, evt.y);\r
-case 401:\r
-case 403:\r
-return this.keyDown (evt, evt.key);\r
-case 402:\r
-case 404:\r
-return this.keyUp (evt, evt.key);\r
-case 1001:\r
-return this.action (evt, evt.arg);\r
-case 1004:\r
-return this.gotFocus (evt, evt.arg);\r
-case 1005:\r
-return this.lostFocus (evt, evt.arg);\r
-}\r
-return false;\r
-}, "java.awt.Event");\r
-Clazz.defineMethod (c$, "mouseDown", \r
-function (evt, x, y) {\r
-return false;\r
-}, "java.awt.Event,~N,~N");\r
-Clazz.defineMethod (c$, "mouseDrag", \r
-function (evt, x, y) {\r
-return false;\r
-}, "java.awt.Event,~N,~N");\r
-Clazz.defineMethod (c$, "mouseUp", \r
-function (evt, x, y) {\r
-return false;\r
-}, "java.awt.Event,~N,~N");\r
-Clazz.defineMethod (c$, "mouseMove", \r
-function (evt, x, y) {\r
-return false;\r
-}, "java.awt.Event,~N,~N");\r
-Clazz.defineMethod (c$, "mouseEnter", \r
-function (evt, x, y) {\r
-return false;\r
-}, "java.awt.Event,~N,~N");\r
-Clazz.defineMethod (c$, "mouseExit", \r
-function (evt, x, y) {\r
-return false;\r
-}, "java.awt.Event,~N,~N");\r
-Clazz.defineMethod (c$, "keyDown", \r
-function (evt, key) {\r
-return false;\r
-}, "java.awt.Event,~N");\r
-Clazz.defineMethod (c$, "keyUp", \r
-function (evt, key) {\r
-return false;\r
-}, "java.awt.Event,~N");\r
-Clazz.defineMethod (c$, "action", \r
-function (evt, what) {\r
-return false;\r
-}, "java.awt.Event,~O");\r
-Clazz.defineMethod (c$, "addNotify", \r
-function () {\r
-this.addNotifyComp ();\r
-});\r
-Clazz.defineMethod (c$, "addNotifyComp", \r
-function () {\r
-{\r
-var peer = this.peer;\r
-if (peer == null || Clazz.instanceOf (peer, java.awt.peer.LightweightPeer)) {\r
-if (peer == null) {\r
-this.peer = peer = this.getToolkit ().createComponent (this);\r
-}if (this.parent != null) {\r
-var mask = 0;\r
-if ((this.mouseListener != null) || ((this.eventMask & 16) != 0)) {\r
-mask |= 16;\r
-}if ((this.mouseMotionListener != null) || ((this.eventMask & 32) != 0)) {\r
-mask |= 32;\r
-}if ((this.mouseWheelListener != null) || ((this.eventMask & 131072) != 0)) {\r
-mask |= 131072;\r
-}if (this.focusListener != null || (this.eventMask & 4) != 0) {\r
-mask |= 4;\r
-}if (this.keyListener != null || (this.eventMask & 8) != 0) {\r
-mask |= 8;\r
-}if (mask != 0) {\r
-this.parent.proxyEnableEvents (mask);\r
-}}} else {\r
-var parent = this.parent;\r
-if (parent != null && Clazz.instanceOf (parent.peer, java.awt.peer.LightweightPeer)) {\r
-this.relocateComponent ();\r
-}}this.invalidate ();\r
-this.peerFont = this.getFont ();\r
-if (this.getContainer () != null && !this.isAddNotifyComplete) {\r
-this.getContainer ().increaseComponentCount (this);\r
-}if (this.parent != null && this.parent.peer != null) {\r
-var parentContPeer = this.parent.peer;\r
-if (Clazz.instanceOf (parentContPeer, java.awt.peer.LightweightPeer) && !(Clazz.instanceOf (peer, java.awt.peer.LightweightPeer))) {\r
-var hwParent = this.getNativeContainer ();\r
-if (hwParent != null && hwParent.peer != null) {\r
-parentContPeer = hwParent.peer;\r
-}}}if (!this.isAddNotifyComplete) {\r
-this.mixOnShowing ();\r
-}this.isAddNotifyComplete = true;\r
-if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || java.awt.Toolkit.enabledOnToolkit (32768)) {\r
-var e =  new java.awt.event.HierarchyEvent (this, 1400, this, this.parent, 2 | ((this.isRecursivelyVisible ()) ? 4 : 0));\r
-this.dispatchEvent (e);\r
-}}});\r
-Clazz.defineMethod (c$, "getNativeContainer", \r
-function () {\r
-var p = this.parent;\r
-while (p != null && Clazz.instanceOf (p.peer, java.awt.peer.LightweightPeer)) {\r
-p = p.getParent ();\r
-}\r
-return p;\r
-});\r
-Clazz.defineMethod (c$, "removeNotify", \r
-function () {\r
-this.removeNotifyComp ();\r
-});\r
-Clazz.defineMethod (c$, "removeNotifyComp", \r
-function () {\r
-{\r
-if (this.getContainer () != null && this.isAddNotifyComplete) {\r
-this.getContainer ().decreaseComponentCount (this);\r
-}var p = this.peer;\r
-if (p != null) {\r
-var isLightweight = this.isLightweight ();\r
-this.peer = null;\r
-this.peerFont = null;\r
-java.awt.Toolkit.getEventQueue ().removeSourceEvents (this, false);\r
-p.dispose ();\r
-this.mixOnHiding (isLightweight);\r
-this.isAddNotifyComplete = false;\r
-}if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || java.awt.Toolkit.enabledOnToolkit (32768)) {\r
-var e =  new java.awt.event.HierarchyEvent (this, 1400, this, this.parent, 2 | ((this.isRecursivelyVisible ()) ? 4 : 0));\r
-this.dispatchEvent (e);\r
-}}});\r
-Clazz.defineMethod (c$, "gotFocus", \r
-function (evt, what) {\r
-return false;\r
-}, "java.awt.Event,~O");\r
-Clazz.defineMethod (c$, "lostFocus", \r
-function (evt, what) {\r
-return false;\r
-}, "java.awt.Event,~O");\r
-Clazz.defineMethod (c$, "isFocusTraversable", \r
-function () {\r
-if (this.$isFocusTraversableOverridden == 0) {\r
-this.$isFocusTraversableOverridden = 1;\r
-}return this.focusable;\r
-});\r
-Clazz.defineMethod (c$, "isFocusable", \r
-function () {\r
-return this.isFocusTraversable ();\r
-});\r
-Clazz.defineMethod (c$, "setFocusable", \r
-function (focusable) {\r
-var oldFocusable;\r
-{\r
-oldFocusable = this.focusable;\r
-this.focusable = focusable;\r
-}this.$isFocusTraversableOverridden = 2;\r
-this.firePropertyChangeObject ("focusable", new Boolean (oldFocusable), new Boolean (focusable));\r
-}, "~B");\r
-Clazz.defineMethod (c$, "isFocusTraversableOverridden", \r
-function () {\r
-return (this.$isFocusTraversableOverridden != 1);\r
-});\r
-Clazz.defineMethod (c$, "getFocusTraversalKeysEnabled", \r
-function () {\r
-return this.focusTraversalKeysEnabled;\r
-});\r
-Clazz.defineMethod (c$, "requestFocus", \r
-function () {\r
-swingjs.JSToolkit.requestFocus (this);\r
-});\r
-Clazz.defineMethod (c$, "requestFocus", \r
-function (temporary) {\r
-return swingjs.JSToolkit.requestFocus (this);\r
-}, "~B");\r
-Clazz.defineMethod (c$, "requestFocusInWindow", \r
-function () {\r
-return swingjs.JSToolkit.requestFocus (this);\r
-});\r
-Clazz.defineMethod (c$, "requestFocusInWindow", \r
-function (temporary) {\r
-return swingjs.JSToolkit.requestFocus (this);\r
-}, "~B");\r
-Clazz.defineMethod (c$, "getFocusCycleRootAncestor", \r
-function () {\r
-var rootAncestor = this.parent;\r
-while (rootAncestor != null && !rootAncestor.isFocusCycleRoot ()) {\r
-rootAncestor = rootAncestor.parent;\r
-}\r
-return rootAncestor;\r
-});\r
-Clazz.defineMethod (c$, "isFocusCycleRoot", \r
-function (container) {\r
-return this.isFocusCycleRootComp (container);\r
-}, "java.awt.Container");\r
-Clazz.defineMethod (c$, "isFocusCycleRootComp", \r
-function (container) {\r
-var rootAncestor = this.getFocusCycleRootAncestor ();\r
-return (rootAncestor === container);\r
-}, "java.awt.Container");\r
-Clazz.defineMethod (c$, "hasFocus", \r
-function () {\r
-return swingjs.JSToolkit.hasFocus (this);\r
-});\r
-Clazz.defineMethod (c$, "isFocusOwner", \r
-function () {\r
-return this.hasFocus ();\r
-});\r
-Clazz.defineMethod (c$, "setAutoFocusTransferOnDisposal", \r
-function (value) {\r
-this.autoFocusTransferOnDisposal = value;\r
-}, "~B");\r
-Clazz.defineMethod (c$, "isAutoFocusTransferOnDisposal", \r
-function () {\r
-return this.autoFocusTransferOnDisposal;\r
-});\r
-Clazz.defineMethod (c$, "paramString", \r
-function () {\r
-return this.paramStringComp ();\r
-});\r
-Clazz.defineMethod (c$, "paramStringComp", \r
-function () {\r
-var thisName = this.getName ();\r
-var str = (thisName != null ? thisName : "");\r
-if (!this.isValid ()) {\r
-str += ",invalid";\r
-}if (!this.visible) {\r
-str += ",hidden";\r
-}if (!this.enabled) {\r
-str += ",disabled";\r
-}str += ",parent:" + (this.parent == null ? null : this.parent.getName ()) + "," + this.x + "," + this.y + "," + this.width + "x" + this.height;\r
-return str;\r
-});\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-return this.getClass ().getName () + "[" + this.paramString () + "]";\r
-});\r
-Clazz.defineMethod (c$, "addPropertyChangeListener", \r
-function (listener) {\r
-this.addPropChangeListenerComp (listener);\r
-}, "java.beans.PropertyChangeListener");\r
-Clazz.defineMethod (c$, "addPropChangeListenerComp", \r
-function (listener) {\r
-{\r
-if (listener == null) {\r
-return;\r
-}if (this.changeSupport == null) {\r
-this.changeSupport =  new java.beans.PropertyChangeSupport (this);\r
-}this.changeSupport.addPropertyChangeListener1 (listener);\r
-}}, "java.beans.PropertyChangeListener");\r
-Clazz.defineMethod (c$, "removePropertyChangeListener", \r
-function (listener) {\r
-{\r
-if (listener == null || this.changeSupport == null) {\r
-return;\r
-}this.changeSupport.removePropertyChangeListener (listener);\r
-}}, "java.beans.PropertyChangeListener");\r
-Clazz.defineMethod (c$, "getPropertyChangeListeners", \r
-function () {\r
-{\r
-if (this.changeSupport == null) {\r
-return  new Array (0);\r
-}return this.changeSupport.getPropertyChangeListeners ();\r
-}});\r
-Clazz.defineMethod (c$, "addPropertyChangeListener", \r
-function (propertyName, listener) {\r
-this.addPropChangeListComp (propertyName, listener);\r
-}, "~S,java.beans.PropertyChangeListener");\r
-Clazz.defineMethod (c$, "addPropChangeListComp", \r
-function (propertyName, listener) {\r
-{\r
-if (arguments.length == 1) {\r
-addPropertyChangeListener1(propertyName); return; }\r
-}{\r
-if (listener == null) {\r
-return;\r
-}if (this.changeSupport == null) {\r
-this.changeSupport =  new java.beans.PropertyChangeSupport (this);\r
-}this.changeSupport.addPropertyChangeListener2 (propertyName, listener);\r
-}}, "~S,java.beans.PropertyChangeListener");\r
-Clazz.defineMethod (c$, "removePropertyChangeListener", \r
-function (propertyName, listener) {\r
-{\r
-if (listener == null || this.changeSupport == null) {\r
-return;\r
-}this.changeSupport.removePropertyChangeListener (propertyName, listener);\r
-}}, "~S,java.beans.PropertyChangeListener");\r
-Clazz.defineMethod (c$, "getPropertyChangeListeners", \r
-function (propertyName) {\r
-{\r
-if (this.changeSupport == null) {\r
-return  new Array (0);\r
-}return this.changeSupport.getPropertyChangeListeners (propertyName);\r
-}}, "~S");\r
-Clazz.defineMethod (c$, "firePropertyChange", \r
-function (propertyName, oldValue, newValue) {\r
-this.firePropertyChangeObject (propertyName, oldValue, newValue);\r
-}, "~S,~O,~O");\r
-Clazz.defineMethod (c$, "firePropertyChangeObject", \r
-function (propertyName, oldValue, newValue) {\r
-var changeSupport;\r
-{\r
-changeSupport = this.changeSupport;\r
-}if (changeSupport == null || (oldValue != null && newValue != null && oldValue.equals (newValue))) {\r
-return;\r
-}changeSupport.firePropertyChange (propertyName, oldValue, newValue);\r
-}, "~S,~O,~O");\r
-Clazz.defineMethod (c$, "firePropertyChange", \r
-function (propertyName, oldValue, newValue) {\r
-this.firePropertyChangeBool (propertyName, oldValue, newValue);\r
-}, "~S,~B,~B");\r
-Clazz.defineMethod (c$, "firePropertyChangeBool", \r
-function (propertyName, oldValue, newValue) {\r
-var changeSupport = this.changeSupport;\r
-if (changeSupport == null || oldValue == newValue) {\r
-return;\r
-}changeSupport.firePropertyChange (propertyName, Boolean.$valueOf (oldValue), Boolean.$valueOf (newValue));\r
-}, "~S,~B,~B");\r
-Clazz.defineMethod (c$, "firePropertyChange", \r
-function (propertyName, oldValue, newValue) {\r
-this.firePropertyChangeInt (propertyName, oldValue, newValue);\r
-}, "~S,~N,~N");\r
-Clazz.defineMethod (c$, "firePropertyChangeInt", \r
-function (propertyName, oldValue, newValue) {\r
-var changeSupport = this.changeSupport;\r
-if (changeSupport == null || oldValue == newValue) {\r
-return;\r
-}changeSupport.firePropertyChange (propertyName, Integer.$valueOf (oldValue), Integer.$valueOf (newValue));\r
-}, "~S,~N,~N");\r
-Clazz.defineMethod (c$, "firePropertyChange", \r
-function (propertyName, oldValue, newValue) {\r
-this.firePropertyChangeChar (propertyName, oldValue, newValue);\r
-}, "~S,~S,~S");\r
-Clazz.defineMethod (c$, "firePropertyChangeChar", \r
-function (propertyName, oldValue, newValue) {\r
-if (this.changeSupport == null || oldValue == newValue) {\r
-return;\r
-}this.firePropertyChangeObject (propertyName,  new Character (oldValue),  new Character (newValue));\r
-}, "~S,~S,~S");\r
-Clazz.defineMethod (c$, "firePropertyChangeShort", \r
-function (propertyName, oldValue, newValue) {\r
-if (this.changeSupport == null || oldValue == newValue) {\r
-return;\r
-}this.firePropertyChangeObject (propertyName, Short.$valueOf (oldValue), Short.$valueOf (newValue));\r
-}, "~S,~N,~N");\r
-Clazz.defineMethod (c$, "firePropertyChangeLong", \r
-function (propertyName, oldValue, newValue) {\r
-if (this.changeSupport == null || oldValue == newValue) {\r
-return;\r
-}this.firePropertyChangeObject (propertyName, Long.$valueOf (oldValue), Long.$valueOf (newValue));\r
-}, "~S,~N,~N");\r
-Clazz.defineMethod (c$, "firePropertyChangeFloat", \r
-function (propertyName, oldValue, newValue) {\r
-if (this.changeSupport == null || oldValue == newValue) {\r
-return;\r
-}this.firePropertyChangeObject (propertyName, Float.$valueOf (oldValue), Float.$valueOf (newValue));\r
-}, "~S,~N,~N");\r
-Clazz.defineMethod (c$, "firePropertyChangeDouble", \r
-function (propertyName, oldValue, newValue) {\r
-if (this.changeSupport == null || oldValue == newValue) {\r
-return;\r
-}this.firePropertyChangeObject (propertyName, Double.$valueOf (oldValue), Double.$valueOf (newValue));\r
-}, "~S,~N,~N");\r
-Clazz.defineMethod (c$, "setComponentOrientation", \r
-function (o) {\r
-var oldValue = this.componentOrientation;\r
-this.componentOrientation = o;\r
-this.firePropertyChangeObject ("componentOrientation", oldValue, o);\r
-this.invalidateIfValid ();\r
-}, "java.awt.ComponentOrientation");\r
-Clazz.defineMethod (c$, "getComponentOrientation", \r
-function () {\r
-return this.componentOrientation;\r
-});\r
-Clazz.defineMethod (c$, "applyComponentOrientation", \r
-function (orientation) {\r
-this.applyCompOrientComp (orientation);\r
-}, "java.awt.ComponentOrientation");\r
-Clazz.defineMethod (c$, "applyCompOrientComp", \r
-function (orientation) {\r
-if (orientation == null) {\r
-throw  new NullPointerException ();\r
-}this.setComponentOrientation (orientation);\r
-}, "java.awt.ComponentOrientation");\r
-Clazz.defineMethod (c$, "canBeFocusOwner", \r
-function () {\r
-if (this.isEnabled () && this.isDisplayable () && this.isVisible () && this.isFocusable ()) {\r
-return true;\r
-}return false;\r
-});\r
-Clazz.defineMethod (c$, "canBeFocusOwnerRecursively", \r
-function () {\r
-if (!this.canBeFocusOwner ()) {\r
-return false;\r
-}if (this.parent != null) {\r
-return this.parent.canContainFocusOwner (this);\r
-}return true;\r
-});\r
-Clazz.defineMethod (c$, "relocateComponent", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "getContainingWindow", \r
-function () {\r
-return jssun.awt.SunToolkit.getContainingWindow (this);\r
-});\r
-c$.isInstanceOf = Clazz.defineMethod (c$, "isInstanceOf", \r
-function (obj, className) {\r
-if (obj == null) return false;\r
-if (className == null) return false;\r
-var cls = obj.getClass ();\r
-while (cls != null) {\r
-if (cls.getName ().equals (className)) {\r
-return true;\r
-}cls = cls.getSuperclass ();\r
-}\r
-return false;\r
-}, "~O,~S");\r
-Clazz.defineMethod (c$, "areBoundsValid", \r
-function () {\r
-var cont = this.getContainer ();\r
-return cont == null || cont.isValid () || cont.getLayout () == null;\r
-});\r
-Clazz.defineMethod (c$, "getLocationOnWindow", \r
-function () {\r
-var curLocation = this.getLocation ();\r
-for (var parent = this.getContainer (); parent != null && !(Clazz.instanceOf (parent, java.awt.Window)); parent = parent.getContainer ()) {\r
-curLocation.x += parent.getX ();\r
-curLocation.y += parent.getY ();\r
-}\r
-return curLocation;\r
-});\r
-Clazz.defineMethod (c$, "getSiblingIndexAbove", \r
-function () {\r
-var parent = this.getContainer ();\r
-if (parent == null) {\r
-return -1;\r
-}var nextAbove = parent.getComponentZOrder (this) - 1;\r
-return nextAbove < 0 ? -1 : nextAbove;\r
-});\r
-Clazz.defineMethod (c$, "getSiblingIndexBelow", \r
-function () {\r
-var parent = this.getContainer ();\r
-if (parent == null) {\r
-return -1;\r
-}var nextBelow = parent.getComponentZOrder (this) + 1;\r
-return nextBelow >= parent.getComponentCount () ? -1 : nextBelow;\r
-});\r
-Clazz.defineMethod (c$, "mixOnShowing", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "mixOnHiding", \r
-function (isLightweight) {\r
-}, "~B");\r
-Clazz.defineMethod (c$, "mixOnReshaping", \r
-function () {\r
-swingjs.JSToolkit.taintUI (this);\r
-});\r
-Clazz.defineMethod (c$, "mixOnZOrderChanging", \r
-function (oldZorder, newZorder) {\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "mixOnValidating", \r
-function () {\r
-});\r
-c$.doesClassImplement = Clazz.defineMethod (c$, "doesClassImplement", \r
- function (cls, interfaceName) {\r
-if (cls == null) return false;\r
-for (var c, $c = 0, $$c = cls.getInterfaces (); $c < $$c.length && ((c = $$c[$c]) || true); $c++) {\r
-if (c.getName ().equals (interfaceName)) {\r
-return true;\r
-}}\r
-return java.awt.Component.doesClassImplement (cls.getSuperclass (), interfaceName);\r
-}, "Class,~S");\r
-c$.doesImplement = Clazz.defineMethod (c$, "doesImplement", \r
-function (obj, interfaceName) {\r
-if (obj == null) return false;\r
-if (interfaceName == null) return false;\r
-return java.awt.Component.doesClassImplement (obj.getClass (), interfaceName);\r
-}, "~O,~S");\r
-Clazz.pu$h(self.c$);\r
-c$ = Clazz.declareType (java.awt.Component, "BaselineResizeBehavior", Enum);\r
-Clazz.defineEnumConstant (c$, "CONSTANT_ASCENT", 0, []);\r
-Clazz.defineEnumConstant (c$, "CONSTANT_DESCENT", 1, []);\r
-Clazz.defineEnumConstant (c$, "CENTER_OFFSET", 2, []);\r
-Clazz.defineEnumConstant (c$, "OTHER", 3, []);\r
-c$ = Clazz.p0p ();\r
-Clazz.pu$h(self.c$);\r
-c$ = Clazz.declareType (java.awt.Component, "AWTTreeLock");\r
-c$ = Clazz.p0p ();\r
-Clazz.defineStatics (c$,\r
-"FOCUS_TRAVERSABLE_UNKNOWN", 0,\r
-"FOCUS_TRAVERSABLE_DEFAULT", 1,\r
-"FOCUS_TRAVERSABLE_SET", 2,\r
-"actionListenerK", "actionL",\r
-"adjustmentListenerK", "adjustmentL",\r
-"componentListenerK", "componentL",\r
-"containerListenerK", "containerL",\r
-"focusListenerK", "focusL",\r
-"itemListenerK", "itemL",\r
-"keyListenerK", "keyL",\r
-"mouseListenerK", "mouseL",\r
-"mouseMotionListenerK", "mouseMotionL",\r
-"mouseWheelListenerK", "mouseWheelL",\r
-"textListenerK", "textL",\r
-"ownedWindowK", "ownedL",\r
-"windowListenerK", "windowL",\r
-"inputMethodListenerK", "inputMethodL",\r
-"hierarchyListenerK", "hierarchyL",\r
-"hierarchyBoundsListenerK", "hierarchyBoundsL",\r
-"windowStateListenerK", "windowStateL",\r
-"windowFocusListenerK", "windowFocusL",\r
-"isInc", false,\r
-"incRate", 0,\r
-"TOP_ALIGNMENT", 0.0,\r
-"CENTER_ALIGNMENT", 0.5,\r
-"BOTTOM_ALIGNMENT", 1.0,\r
-"LEFT_ALIGNMENT", 0.0,\r
-"RIGHT_ALIGNMENT", 1.0,\r
-"incr", 0);\r
-c$.coalesceMap = c$.prototype.coalesceMap =  new java.util.HashMap ();\r
-});\r
+Clazz.declarePackage ("java.awt");
+Clazz.load (["java.lang.Enum", "java.awt.image.ImageObserver", "java.util.HashMap", "java.awt.ComponentOrientation"], "java.awt.Component", ["java.lang.Boolean", "$.Character", "$.Double", "$.Float", "$.IllegalArgumentException", "$.Long", "$.NullPointerException", "$.Short", "$.Thread", "java.awt.AWTEventMulticaster", "$.Cursor", "$.Dimension", "$.EventQueue", "$.IllegalComponentStateException", "$.Point", "$.Rectangle", "$.Toolkit", "java.awt.event.ComponentEvent", "$.ComponentListener", "$.FocusEvent", "$.FocusListener", "$.HierarchyBoundsListener", "$.HierarchyEvent", "$.HierarchyListener", "$.InputEvent", "$.InputMethodEvent", "$.InputMethodListener", "$.KeyEvent", "$.KeyListener", "$.MouseEvent", "$.MouseListener", "$.MouseMotionListener", "$.MouseWheelEvent", "$.MouseWheelListener", "$.PaintEvent", "java.awt.peer.LightweightPeer", "java.beans.PropertyChangeListener", "$.PropertyChangeSupport", "jssun.awt.AppContext", "$.SunToolkit", "jssun.font.FontDesignMetrics", "swingjs.JSToolkit"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.threadGroup = null;
+this.myThread = null;
+this.peer = null;
+this.parent = null;
+this.appContext = null;
+this.x = 0;
+this.y = 0;
+this.width = 0;
+this.height = 0;
+this.foreground = null;
+this.background = null;
+this.font = null;
+this.peerFont = null;
+this.cursor = null;
+this.locale = null;
+this.visible = true;
+this.enabled = true;
+this.valid = false;
+this.popups = null;
+this.name = null;
+this.nameExplicitlySet = false;
+this.focusable = true;
+this.$isFocusTraversableOverridden = 0;
+this.focusTraversalKeysEnabled = false;
+this.minSize = null;
+this.minSizeSet = false;
+this.prefSize = null;
+this.prefSizeSet = false;
+this.maxSize = null;
+this.maxSizeSet = false;
+this.componentOrientation = null;
+this.newEventsOnly = false;
+this.componentListener = null;
+this.focusListener = null;
+this.hierarchyListener = null;
+this.hierarchyBoundsListener = null;
+this.keyListener = null;
+this.mouseListener = null;
+this.mouseMotionListener = null;
+this.mouseWheelListener = null;
+this.inputMethodListener = null;
+this.windowClosingException = null;
+this.eventMask = 4096;
+this.changeSupport = null;
+this.changeSupportLock = null;
+this.isPacked = false;
+this.boundsOp = 3;
+this.isAddNotifyComplete = false;
+this.backgroundEraseDisabled = false;
+this.htmlName = null;
+this.num = 0;
+this.graphicsConfig = null;
+this.eventCache = null;
+this.coalescingEnabled = false;
+this.autoFocusTransferOnDisposal = true;
+Clazz.instantialize (this, arguments);
+}, java.awt, "Component", null, java.awt.image.ImageObserver);
+Clazz.prepareFields (c$, function () {
+this.componentOrientation = java.awt.ComponentOrientation.UNKNOWN;
+this.changeSupportLock =  new Clazz._O ();
+this.coalescingEnabled = this.checkCoalescing ();
+});
+Clazz.defineMethod (c$, "getAppContext", 
+function () {
+return this.appContext;
+});
+Clazz.defineMethod (c$, "getChangeSupportLock", 
+ function () {
+return this.changeSupportLock;
+});
+Clazz.defineMethod (c$, "getBoundsOp", 
+function () {
+return this.boundsOp;
+});
+Clazz.defineMethod (c$, "setBoundsOp", 
+function (op) {
+if (op == 5) {
+this.boundsOp = 3;
+} else if (this.boundsOp == 3) {
+this.boundsOp = op;
+}}, "~N");
+Clazz.makeConstructor (c$, 
+function () {
+this.setAppContext ();
+});
+Clazz.defineMethod (c$, "setAppContext", 
+function () {
+this.appContext = jssun.awt.AppContext.getAppContext ();
+this.num = ++java.awt.Component.incr;
+});
+Clazz.defineMethod (c$, "getHTMLName", 
+function (uid) {
+return (this.htmlName == null ? this.htmlName = this.appContext.getThreadGroup ().getName () + "_" + uid + "_" + this.num : this.htmlName);
+}, "~S");
+Clazz.defineMethod (c$, "constructComponentName", 
+function () {
+return null;
+});
+Clazz.defineMethod (c$, "getName", 
+function () {
+if (this.name == null && !this.nameExplicitlySet) {
+{
+if (this.name == null && !this.nameExplicitlySet) this.name = this.constructComponentName ();
+}}return this.name;
+});
+Clazz.defineMethod (c$, "setName", 
+function (name) {
+var oldName;
+{
+oldName = this.name;
+this.name = name;
+this.nameExplicitlySet = true;
+}this.firePropertyChangeObject ("name", oldName, name);
+}, "~S");
+Clazz.defineMethod (c$, "getParent", 
+function () {
+return this.getParent_NoClientCode ();
+});
+Clazz.defineMethod (c$, "getParent_NoClientCode", 
+function () {
+return this.parent;
+});
+Clazz.defineMethod (c$, "getContainer", 
+function () {
+return this.getParent ();
+});
+Clazz.defineMethod (c$, "getPeer", 
+function () {
+return this.peer;
+});
+Clazz.defineMethod (c$, "getGraphicsConfiguration", 
+function () {
+return swingjs.JSToolkit.getGraphicsConfiguration ();
+});
+Clazz.defineMethod (c$, "resetGC", 
+function () {
+});
+Clazz.defineMethod (c$, "getToolkit", 
+function () {
+return this.getToolkitImpl ();
+});
+Clazz.defineMethod (c$, "getToolkitImpl", 
+function () {
+var peer = this.peer;
+if ((peer != null) && !(Clazz.instanceOf (peer, java.awt.peer.LightweightPeer))) {
+return peer.getToolkit ();
+}var parent = this.parent;
+if (parent != null) {
+return parent.getToolkitImpl ();
+}return java.awt.Toolkit.getDefaultToolkit ();
+});
+Clazz.defineMethod (c$, "isValid", 
+function () {
+return this.valid;
+});
+Clazz.defineMethod (c$, "isDisplayable", 
+function () {
+return true;
+});
+Clazz.defineMethod (c$, "isVisible", 
+function () {
+return this.isVisible_NoClientCode ();
+});
+Clazz.defineMethod (c$, "isVisible_NoClientCode", 
+function () {
+return this.visible;
+});
+Clazz.defineMethod (c$, "isRecursivelyVisible", 
+function () {
+return this.visible && (this.parent == null || this.parent.isRecursivelyVisible ());
+});
+Clazz.defineMethod (c$, "pointRelativeToComponent", 
+function (absolute) {
+var compCoords = this.getLocationOnScreen ();
+return  new java.awt.Point (absolute.x - compCoords.x, absolute.y - compCoords.y);
+}, "java.awt.Point");
+Clazz.defineMethod (c$, "getMousePosition", 
+function () {
+return null;
+});
+Clazz.defineMethod (c$, "isSameOrAncestorOf", 
+function (comp, allowChildren) {
+return comp === this;
+}, "java.awt.Component,~B");
+Clazz.defineMethod (c$, "isShowing", 
+function () {
+if (this.visible) {
+var parent = this.parent;
+return (parent == null) || parent.isShowing ();
+}return false;
+});
+Clazz.defineMethod (c$, "isEnabled", 
+function () {
+return this.isEnabledImpl ();
+});
+Clazz.defineMethod (c$, "isEnabledImpl", 
+function () {
+return this.enabled;
+});
+Clazz.defineMethod (c$, "setEnabled", 
+function (b) {
+this.enable (b);
+}, "~B");
+Clazz.defineMethod (c$, "enable", 
+function () {
+if (!this.enabled) {
+this.enabled = true;
+var peer = this.peer;
+if (peer != null) {
+peer.setEnabled (true);
+if (this.visible) {
+this.updateCursorImmediately ();
+}}}});
+Clazz.defineMethod (c$, "enable", 
+function (b) {
+if (b) {
+this.enable ();
+} else {
+this.disable ();
+}}, "~B");
+Clazz.defineMethod (c$, "disable", 
+function () {
+if (this.enabled) {
+this.enabled = false;
+var peer = this.peer;
+if (peer != null) {
+peer.setEnabled (false);
+if (this.visible) {
+this.updateCursorImmediately ();
+}}}});
+Clazz.defineMethod (c$, "isDoubleBuffered", 
+function () {
+return false;
+});
+Clazz.defineMethod (c$, "setVisible", 
+function (b) {
+this.show (b);
+}, "~B");
+Clazz.defineMethod (c$, "show", 
+function () {
+if (!this.visible) {
+this.visible = true;
+var peer = this.peer;
+if (peer != null) {
+peer.setVisible (true);
+this.createHierarchyEvents (1400, this, this.parent, 4, java.awt.Toolkit.enabledOnToolkit (32768));
+if (Clazz.instanceOf (peer, java.awt.peer.LightweightPeer)) {
+this.repaint ();
+}this.updateCursorImmediately ();
+}if (this.componentListener != null || (this.eventMask & 1) != 0 || java.awt.Toolkit.enabledOnToolkit (1)) {
+var e =  new java.awt.event.ComponentEvent (this, 102);
+java.awt.Toolkit.getEventQueue ().postEvent (e);
+}}var parent = this.parent;
+if (parent != null) {
+parent.invalidate ();
+}});
+Clazz.defineMethod (c$, "containsFocus", 
+function () {
+return this.isFocusOwner ();
+});
+Clazz.defineMethod (c$, "clearCurrentFocusCycleRootOnHide", 
+function () {
+});
+Clazz.defineMethod (c$, "hide", 
+function () {
+this.isPacked = false;
+if (this.visible) {
+this.clearCurrentFocusCycleRootOnHide ();
+this.visible = false;
+this.mixOnHiding (this.isLightweight ());
+var peer = this.peer;
+if (peer != null) {
+peer.setVisible (false);
+this.createHierarchyEvents (1400, this, this.parent, 4, java.awt.Toolkit.enabledOnToolkit (32768));
+if (Clazz.instanceOf (peer, java.awt.peer.LightweightPeer)) {
+this.repaint ();
+}this.updateCursorImmediately ();
+}if (this.componentListener != null || (this.eventMask & 1) != 0 || java.awt.Toolkit.enabledOnToolkit (1)) {
+var e =  new java.awt.event.ComponentEvent (this, 103);
+java.awt.Toolkit.getEventQueue ().postEvent (e);
+}}var parent = this.parent;
+if (parent != null) {
+parent.invalidate ();
+}});
+Clazz.defineMethod (c$, "getForeground", 
+function () {
+var foreground = this.foreground;
+if (foreground != null) {
+return foreground;
+}var parent = this.parent;
+return (parent != null) ? parent.getForeground () : null;
+});
+Clazz.defineMethod (c$, "setForeground", 
+function (c) {
+var oldColor = this.foreground;
+var peer = this.peer;
+this.foreground = c;
+if (peer != null) {
+c = this.getForeground ();
+if (c != null) {
+peer.setForeground (c);
+}}this.firePropertyChangeObject ("foreground", oldColor, c);
+}, "java.awt.Color");
+Clazz.defineMethod (c$, "isForegroundSet", 
+function () {
+return (this.foreground != null);
+});
+Clazz.defineMethod (c$, "getBackground", 
+function () {
+var background = this.background;
+if (background != null) {
+return background;
+}var parent = this.parent;
+return (parent != null) ? parent.getBackground () : null;
+});
+Clazz.defineMethod (c$, "setBackground", 
+function (c) {
+var oldColor = this.background;
+var peer = this.peer;
+this.background = c;
+if (peer != null) {
+c = this.getBackground ();
+if (c != null) {
+peer.setBackground (c);
+}}this.firePropertyChangeObject ("background", oldColor, c);
+}, "java.awt.Color");
+Clazz.defineMethod (c$, "isBackgroundSet", 
+function () {
+return (this.background != null);
+});
+Clazz.defineMethod (c$, "getFont", 
+function () {
+return this.getFont_NoClientCode ();
+});
+Clazz.defineMethod (c$, "getFont_NoClientCode", 
+function () {
+var font = this.font;
+if (font != null) {
+return font;
+}var parent = this.parent;
+return (parent != null) ? parent.getFont_NoClientCode () : null;
+});
+Clazz.defineMethod (c$, "setFont", 
+function (f) {
+this.setFontComp (f);
+}, "java.awt.Font");
+Clazz.defineMethod (c$, "setFontComp", 
+function (f) {
+var oldFont;
+var newFont;
+oldFont = this.font;
+newFont = this.font = f;
+{
+{
+}var peer = this.peer;
+if (peer != null) {
+f = this.getFont ();
+if (f != null) {
+peer.setFont (f);
+this.peerFont = f;
+}}}this.firePropertyChangeObject ("font", oldFont, newFont);
+if (f !== oldFont && (oldFont == null || !oldFont.equals (f))) {
+this.invalidateIfValid ();
+}}, "java.awt.Font");
+Clazz.defineMethod (c$, "isFontSet", 
+function () {
+return (this.font != null);
+});
+Clazz.defineMethod (c$, "getLocale", 
+function () {
+var locale = this.locale;
+if (locale != null) {
+return locale;
+}var parent = this.parent;
+if (parent == null) {
+throw  new java.awt.IllegalComponentStateException ("This component must have a parent in order to determine its locale");
+} else {
+return parent.getLocale ();
+}});
+Clazz.defineMethod (c$, "setLocale", 
+function (l) {
+var oldValue = this.locale;
+this.locale = l;
+this.firePropertyChangeObject ("locale", oldValue, l);
+this.invalidateIfValid ();
+}, "java.util.Locale");
+Clazz.defineMethod (c$, "getLocation", 
+function () {
+return this.location ();
+});
+Clazz.defineMethod (c$, "getLocationOnScreen", 
+function () {
+return this.getLocationOnScreen_NoTreeLock ();
+});
+Clazz.defineMethod (c$, "getLocationOnScreen_NoTreeLock", 
+function () {
+if (this.isShowing ()) {
+if (Clazz.instanceOf (this.peer, java.awt.peer.LightweightPeer)) {
+var host = this.getNativeContainer ();
+var pt = host.peer.getLocationOnScreen ();
+for (var c = this; c !== host; c = c.getParent ()) {
+pt.x += c.x;
+pt.y += c.y;
+}
+return pt;
+} else {
+var pt = this.peer.getLocationOnScreen ();
+return pt;
+}} else {
+throw  new java.awt.IllegalComponentStateException ("component must be showing on the screen to determine its location");
+}});
+Clazz.defineMethod (c$, "location", 
+function () {
+return this.location_NoClientCode ();
+});
+Clazz.defineMethod (c$, "location_NoClientCode", 
+ function () {
+return  new java.awt.Point (this.x, this.y);
+});
+Clazz.defineMethod (c$, "setLocation", 
+function (x, y) {
+this.setBoundsOp (1);
+this.setBounds (x, y, this.width, this.height);
+}, "~N,~N");
+Clazz.defineMethod (c$, "setLocation", 
+function (p) {
+this.setLocation (p.x, p.y);
+}, "java.awt.Point");
+Clazz.defineMethod (c$, "getSize", 
+function () {
+return this.size ();
+});
+Clazz.defineMethod (c$, "size", 
+function () {
+return  new java.awt.Dimension (this.width, this.height);
+});
+Clazz.defineMethod (c$, "setSize", 
+function (width, height) {
+{
+if (arguments.length == 1) {
+var d = arguments[0];
+width = d.width;
+height = d.height;
+}
+}this.resize (width, height);
+}, "~N,~N");
+Clazz.defineMethod (c$, "resize", 
+function (width, height) {
+this.setBoundsOp (2);
+this.setBounds (this.x, this.y, width, height);
+}, "~N,~N");
+Clazz.defineMethod (c$, "setBounds", 
+function (x, y, width, height) {
+this.reshape (x, y, width, height);
+}, "~N,~N,~N,~N");
+Clazz.defineMethod (c$, "setBounds", 
+function (r) {
+this.setBounds (r.x, r.y, r.width, r.height);
+}, "java.awt.Rectangle");
+Clazz.defineMethod (c$, "reshape", 
+function (x, y, width, height) {
+try {
+this.setBoundsOp (3);
+var resized = (this.width != width) || (this.height != height);
+var moved = (this.x != x) || (this.y != y);
+if (!resized && !moved) {
+return;
+}var oldX = this.x;
+var oldY = this.y;
+var oldWidth = this.width;
+var oldHeight = this.height;
+this.x = x;
+this.y = y;
+this.width = width;
+this.height = height;
+if (resized) {
+this.isPacked = false;
+System.out.println ("C " + swingjs.JSToolkit.getClassName (this) + " resized to " + this.getBounds ());
+}var needNotify = true;
+this.mixOnReshaping ();
+if (this.peer != null) {
+this.reshapeNativePeer (x, y, width, height, this.getBoundsOp ());
+resized = (oldWidth != this.width) || (oldHeight != this.height);
+moved = (oldX != this.x) || (oldY != this.y);
+if (Clazz.instanceOf (this, java.awt.Window)) {
+needNotify = false;
+}if (resized) {
+this.invalidate ();
+}if (this.parent != null) {
+this.parent.invalidateIfValid ();
+}}if (needNotify) {
+this.notifyNewBounds (resized, moved);
+}this.repaintParentIfNeeded (oldX, oldY, oldWidth, oldHeight);
+} finally {
+this.setBoundsOp (5);
+}
+}, "~N,~N,~N,~N");
+Clazz.defineMethod (c$, "repaintParentIfNeeded", 
+ function (oldX, oldY, oldWidth, oldHeight) {
+if (this.parent != null && Clazz.instanceOf (this.peer, java.awt.peer.LightweightPeer) && this.isShowing ()) {
+this.parent.repaint (oldX, oldY, oldWidth, oldHeight);
+this.repaint ();
+}}, "~N,~N,~N,~N");
+Clazz.defineMethod (c$, "reshapeNativePeer", 
+ function (x, y, width, height, op) {
+var nativeX = x;
+var nativeY = y;
+for (var c = this.parent; (c != null) && (Clazz.instanceOf (c.peer, java.awt.peer.LightweightPeer)); c = c.parent) {
+nativeX += c.x;
+nativeY += c.y;
+}
+this.peer.setBounds (nativeX, nativeY, width, height, op);
+}, "~N,~N,~N,~N,~N");
+Clazz.defineMethod (c$, "notifyNewBounds", 
+ function (resized, moved) {
+if (this.componentListener != null || (this.eventMask & 1) != 0 || java.awt.Toolkit.enabledOnToolkit (1)) {
+if (resized) {
+var e =  new java.awt.event.ComponentEvent (this, 101);
+java.awt.Toolkit.getEventQueue ().postEvent (e);
+}if (moved) {
+var e =  new java.awt.event.ComponentEvent (this, 100);
+java.awt.Toolkit.getEventQueue ().postEvent (e);
+}} else {
+if (Clazz.instanceOf (this, java.awt.Container) && (this).countComponents () > 0) {
+var enabledOnToolkit = java.awt.Toolkit.enabledOnToolkit (65536);
+if (resized) {
+(this).createChildHierarchyEvents (1402, 0, enabledOnToolkit);
+}if (moved) {
+(this).createChildHierarchyEvents (1401, 0, enabledOnToolkit);
+}}}}, "~B,~B");
+Clazz.defineMethod (c$, "getX", 
+function () {
+return this.x;
+});
+Clazz.defineMethod (c$, "getY", 
+function () {
+return this.y;
+});
+Clazz.defineMethod (c$, "getWidth", 
+function () {
+return this.width;
+});
+Clazz.defineMethod (c$, "getHeight", 
+function () {
+return this.height;
+});
+Clazz.defineMethod (c$, "getBounds", 
+function (rv) {
+if (rv == null) return  new java.awt.Rectangle (this.getX (), this.getY (), this.getWidth (), this.getHeight ());
+rv.reshape (this.getX (), this.getY (), this.getWidth (), this.getHeight ());
+return rv;
+}, "java.awt.Rectangle");
+Clazz.defineMethod (c$, "getSize", 
+function (rv) {
+if (rv == null) {
+return  new java.awt.Dimension (this.getWidth (), this.getHeight ());
+} else {
+rv.setSize (this.getWidth (), this.getHeight ());
+return rv;
+}}, "java.awt.Dimension");
+Clazz.defineMethod (c$, "getLocation", 
+function (rv) {
+if (rv == null) {
+return  new java.awt.Point (this.getX (), this.getY ());
+} else {
+rv.setLocation (this.getX (), this.getY ());
+return rv;
+}}, "java.awt.Point");
+Clazz.defineMethod (c$, "isOpaque", 
+function () {
+return true;
+});
+Clazz.defineMethod (c$, "isLightweight", 
+function () {
+return false;
+});
+Clazz.defineMethod (c$, "setPreferredSize", 
+function (preferredSize) {
+this.setPrefSizeComp (preferredSize);
+}, "java.awt.Dimension");
+Clazz.defineMethod (c$, "setPrefSizeComp", 
+function (preferredSize) {
+var old = (this.prefSizeSet ? this.prefSize : null);
+this.prefSize = preferredSize;
+this.prefSizeSet = (preferredSize != null);
+this.firePropertyChangeObject ("preferredSize", old, preferredSize);
+}, "java.awt.Dimension");
+Clazz.defineMethod (c$, "isPreferredSizeSet", 
+function () {
+return this.prefSizeSet;
+});
+Clazz.defineMethod (c$, "getPreferredSize", 
+function () {
+return this.preferredSize ();
+});
+Clazz.defineMethod (c$, "preferredSize", 
+function () {
+return this.prefSizeComp ();
+});
+Clazz.defineMethod (c$, "prefSizeComp", 
+function () {
+var dim = this.prefSize;
+if (dim == null || !(this.isPreferredSizeSet () || this.isValid ())) {
+this.prefSize = this.getMinimumSize ();
+dim = this.prefSize;
+}return  new java.awt.Dimension (dim);
+});
+Clazz.defineMethod (c$, "setMinimumSize", 
+function (minimumSize) {
+var old;
+if (this.minSizeSet) {
+old = this.minSize;
+} else {
+old = null;
+}this.minSize = minimumSize;
+this.minSizeSet = (minimumSize != null);
+this.firePropertyChangeObject ("minimumSize", old, minimumSize);
+}, "java.awt.Dimension");
+Clazz.defineMethod (c$, "isMinimumSizeSet", 
+function () {
+return this.minSizeSet;
+});
+Clazz.defineMethod (c$, "getMinimumSize", 
+function () {
+return this.minimumSize ();
+});
+Clazz.defineMethod (c$, "minimumSize", 
+function () {
+var dim = this.minSize;
+if (dim == null || !(this.isMinimumSizeSet () || this.isValid ())) {
+this.minSize = this.getSize ();
+dim = this.minSize;
+}return  new java.awt.Dimension (dim);
+});
+Clazz.defineMethod (c$, "setMaximumSize", 
+function (maximumSize) {
+var old;
+if (this.maxSizeSet) {
+old = this.maxSize;
+} else {
+old = null;
+}this.maxSize = maximumSize;
+this.maxSizeSet = (maximumSize != null);
+this.firePropertyChangeObject ("maximumSize", old, maximumSize);
+}, "java.awt.Dimension");
+Clazz.defineMethod (c$, "isMaximumSizeSet", 
+function () {
+return this.maxSizeSet;
+});
+Clazz.defineMethod (c$, "getMaximumSize", 
+function () {
+return this.getMaxSizeComp ();
+});
+Clazz.defineMethod (c$, "getMaxSizeComp", 
+function () {
+if (this.isMaximumSizeSet ()) {
+return  new java.awt.Dimension (this.maxSize);
+}return  new java.awt.Dimension (32767, 32767);
+});
+Clazz.defineMethod (c$, "getAlignmentX", 
+function () {
+return this.getAlignmentXComp ();
+});
+Clazz.defineMethod (c$, "getAlignmentXComp", 
+function () {
+return 0.5;
+});
+Clazz.defineMethod (c$, "getAlignmentY", 
+function () {
+return this.getAlignmentYComp ();
+});
+Clazz.defineMethod (c$, "getAlignmentYComp", 
+function () {
+return 0.5;
+});
+Clazz.defineMethod (c$, "getBaseline", 
+function (width, height) {
+if (width < 0 || height < 0) {
+throw  new IllegalArgumentException ("Width and height must be >= 0");
+}return -1;
+}, "~N,~N");
+Clazz.defineMethod (c$, "getBaselineResizeBehavior", 
+function () {
+return java.awt.Component.BaselineResizeBehavior.OTHER;
+});
+Clazz.defineMethod (c$, "doLayout", 
+function () {
+this.layout ();
+});
+Clazz.defineMethod (c$, "layout", 
+function () {
+});
+Clazz.defineMethod (c$, "validate", 
+function () {
+this.validateComponent ();
+});
+Clazz.defineMethod (c$, "validateComponent", 
+function () {
+{
+var peer = this.peer;
+var wasValid = this.isValid ();
+if (!wasValid && peer != null) {
+var newfont = this.getFont ();
+var oldfont = this.peerFont;
+if (newfont !== oldfont && (oldfont == null || !oldfont.equals (newfont))) {
+peer.setFont (newfont);
+this.peerFont = newfont;
+}peer.layout ();
+}this.valid = true;
+if (!wasValid) {
+this.mixOnValidating ();
+}}});
+Clazz.defineMethod (c$, "invalidate", 
+function () {
+this.invalidateComp ();
+});
+Clazz.defineMethod (c$, "invalidateComp", 
+function () {
+this.valid = false;
+if (!this.isPreferredSizeSet ()) {
+this.prefSize = null;
+}if (!this.isMinimumSizeSet ()) {
+this.minSize = null;
+}if (!this.isMaximumSizeSet ()) {
+this.maxSize = null;
+}if (this.parent != null) {
+this.parent.invalidateIfValid ();
+}});
+Clazz.defineMethod (c$, "invalidateIfValid", 
+function () {
+if (this.isValid ()) {
+this.invalidate ();
+}});
+Clazz.defineMethod (c$, "getGraphics", 
+function () {
+if (Clazz.instanceOf (this.peer, java.awt.peer.LightweightPeer)) {
+if (this.parent == null) return null;
+var g = this.parent.getGraphics ();
+if (g == null) return null;
+g.setFont (this.getFont ());
+return g;
+} else {
+var peer = this.peer;
+return (peer != null) ? peer.getGraphics () : null;
+}});
+Clazz.defineMethod (c$, "getTreeLock", 
+function () {
+return this;
+});
+Clazz.defineMethod (c$, "getFontMetrics", 
+function (font) {
+return jssun.font.FontDesignMetrics.getMetrics (font);
+}, "java.awt.Font");
+Clazz.defineMethod (c$, "setCursor", 
+function (cursor) {
+this.cursor = cursor;
+this.updateCursorImmediately ();
+}, "java.awt.Cursor");
+Clazz.defineMethod (c$, "updateCursorImmediately", 
+function () {
+});
+Clazz.defineMethod (c$, "getCursor", 
+function () {
+return this.getCursor_NoClientCode ();
+});
+Clazz.defineMethod (c$, "getCursor_NoClientCode", 
+function () {
+var cursor = this.cursor;
+if (cursor != null) {
+return cursor;
+}var parent = this.parent;
+if (parent != null) {
+return parent.getCursor_NoClientCode ();
+} else {
+return java.awt.Cursor.getPredefinedCursor (0);
+}});
+Clazz.defineMethod (c$, "isCursorSet", 
+function () {
+return (this.cursor != null);
+});
+Clazz.defineMethod (c$, "paint", 
+function (g) {
+}, "java.awt.Graphics");
+Clazz.defineMethod (c$, "update", 
+function (g) {
+this.paint (g);
+}, "java.awt.Graphics");
+Clazz.defineMethod (c$, "paintAll", 
+function (g) {
+}, "java.awt.Graphics");
+Clazz.defineMethod (c$, "lightweightPaint", 
+function (g) {
+this.lwPaintComp (g);
+}, "java.awt.Graphics");
+Clazz.defineMethod (c$, "lwPaintComp", 
+function (g) {
+this.paint (g);
+}, "java.awt.Graphics");
+Clazz.defineMethod (c$, "paintHeavyweightComponents", 
+function (g) {
+}, "java.awt.Graphics");
+Clazz.defineMethod (c$, "repaint", 
+function () {
+this.repaintImpl (0, 0, 0, this.width, this.height);
+});
+Clazz.defineMethod (c$, "repaint", 
+function (tm) {
+this.repaintImpl (tm, 0, 0, this.width, this.height);
+}, "~N");
+Clazz.defineMethod (c$, "repaint", 
+function (x, y, width, height) {
+this.repaintImpl (0, x, y, width, height);
+}, "~N,~N,~N,~N");
+Clazz.defineMethod (c$, "repaint", 
+function (tm, x, y, width, height) {
+this.repaintImpl (tm, x, y, width, height);
+}, "~N,~N,~N,~N,~N");
+Clazz.defineMethod (c$, "repaintImpl", 
+function (tm, x, y, width, height) {
+if (Clazz.instanceOf (this.peer, java.awt.peer.LightweightPeer)) {
+if (this.parent != null) {
+var px = this.x + ((x < 0) ? 0 : x);
+var py = this.y + ((y < 0) ? 0 : y);
+var pwidth = (width > this.width) ? this.width : width;
+var pheight = (height > this.height) ? this.height : height;
+this.parent.repaint (tm, px, py, pwidth, pheight);
+}} else {
+if (this.isVisible () && (this.peer != null) && (width > 0) && (height > 0)) {
+var e =  new java.awt.event.PaintEvent (this, 801,  new java.awt.Rectangle (x, y, width, height));
+java.awt.Toolkit.getEventQueue ().postEvent (e);
+}}}, "~N,~N,~N,~N,~N");
+Clazz.defineMethod (c$, "print", 
+function (g) {
+this.paint (g);
+}, "java.awt.Graphics");
+Clazz.defineMethod (c$, "printAll", 
+function (g) {
+}, "java.awt.Graphics");
+Clazz.defineMethod (c$, "printHeavyweightComponents", 
+function (g) {
+}, "java.awt.Graphics");
+Clazz.overrideMethod (c$, "imageUpdate", 
+function (img, infoflags, x, y, w, h) {
+return false;
+}, "java.awt.Image,~N,~N,~N,~N,~N");
+Clazz.defineMethod (c$, "createImage", 
+function (producer) {
+return this.getToolkit ().createImage (producer);
+}, "java.awt.image.ImageProducer");
+Clazz.defineMethod (c$, "createImage", 
+function (width, height) {
+return java.awt.Toolkit.getDefaultToolkit ().createImage (null, width, height);
+}, "~N,~N");
+Clazz.defineMethod (c$, "createVolatileImage", 
+function (width, height) {
+return null;
+}, "~N,~N");
+Clazz.defineMethod (c$, "createVolatileImage", 
+function (width, height, caps) {
+return this.createVolatileImage (width, height);
+}, "~N,~N,java.awt.ImageCapabilities");
+Clazz.defineMethod (c$, "prepareImage", 
+function (image, observer) {
+return this.prepareImage (image, -1, -1, observer);
+}, "java.awt.Image,java.awt.image.ImageObserver");
+Clazz.defineMethod (c$, "prepareImage", 
+function (image, width, height, observer) {
+return false;
+}, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");
+Clazz.defineMethod (c$, "checkImage", 
+function (image, observer) {
+return this.checkImage (image, -1, -1, observer);
+}, "java.awt.Image,java.awt.image.ImageObserver");
+Clazz.defineMethod (c$, "checkImage", 
+function (image, width, height, observer) {
+return 0;
+}, "java.awt.Image,~N,~N,java.awt.image.ImageObserver");
+Clazz.defineMethod (c$, "setIgnoreRepaint", 
+function (ignoreRepaint) {
+}, "~B");
+Clazz.defineMethod (c$, "getIgnoreRepaint", 
+function () {
+return false;
+});
+Clazz.defineMethod (c$, "contains", 
+function (x, y) {
+return this.inside (x, y);
+}, "~N,~N");
+Clazz.defineMethod (c$, "inside", 
+function (x, y) {
+return (x >= 0) && (x < this.width) && (y >= 0) && (y < this.height);
+}, "~N,~N");
+Clazz.defineMethod (c$, "getComponentAt", 
+function (x, y) {
+return this.locate (x, y);
+}, "~N,~N");
+Clazz.defineMethod (c$, "locate", 
+function (x, y) {
+return this.contains (x, y) ? this : null;
+}, "~N,~N");
+Clazz.defineMethod (c$, "getComponentAt", 
+function (p) {
+return this.getComponentAt (p.x, p.y);
+}, "java.awt.Point");
+Clazz.defineMethod (c$, "deliverEvent", 
+function (e) {
+this.postEvent (e);
+}, "java.awt.Event");
+Clazz.defineMethod (c$, "dispatchEvent", 
+function (e) {
+this.dispatchEventImpl (e);
+}, "java.awt.AWTEvent");
+Clazz.defineMethod (c$, "dispatchEventImpl", 
+function (e) {
+this.dispatchEventImplComp (e);
+}, "java.awt.AWTEvent");
+Clazz.defineMethod (c$, "dispatchEventImplComp", 
+function (e) {
+var id = e.getID ();
+java.awt.EventQueue.setCurrentEventAndMostRecentTime (e);
+if (!e.focusManagerIsDispatching) {
+if (e.isPosted) {
+e.isPosted = true;
+}}if (!e.isConsumed ()) {
+if (Clazz.instanceOf (e, java.awt.event.KeyEvent)) {
+if (e.isConsumed ()) {
+return;
+}}}if (this.areInputMethodsEnabled ()) {
+if ((Clazz.instanceOf (e, java.awt.event.InputEvent)) || (Clazz.instanceOf (e, java.awt.event.FocusEvent))) {
+}} else {
+if (id == 1004) {
+}}switch (id) {
+case 401:
+case 402:
+var p = ((Clazz.instanceOf (this, java.awt.Container)) ? this : this.parent);
+if (p != null) {
+p.preProcessKeyEvent (e);
+}break;
+case 201:
+break;
+default:
+break;
+}
+if (this.newEventsOnly) {
+if (this.eventEnabled (e)) {
+this.processEvent (e);
+}} else if (id == 507) {
+this.autoProcessMouseWheel (e);
+} else if (!(Clazz.instanceOf (e, java.awt.event.MouseEvent) && !this.postsOldMouseEvents ())) {
+}if (id == 201 && !e.isConsumed ()) {
+}if (!(Clazz.instanceOf (e, java.awt.event.KeyEvent))) {
+}}, "java.awt.AWTEvent");
+Clazz.defineMethod (c$, "autoProcessMouseWheel", 
+function (e) {
+}, "java.awt.event.MouseWheelEvent");
+Clazz.defineMethod (c$, "dispatchMouseWheelToAncestor", 
+function (e) {
+var newX;
+var newY;
+newX = e.getX () + this.getX ();
+newY = e.getY () + this.getY ();
+var newMWE;
+{
+var anc = this.getParent ();
+while (anc != null && !anc.eventEnabled (e)) {
+newX += anc.getX ();
+newY += anc.getY ();
+if (!(Clazz.instanceOf (anc, java.awt.Window))) {
+anc = anc.getParent ();
+} else {
+break;
+}}
+if (anc != null && anc.eventEnabled (e)) {
+newMWE =  new java.awt.event.MouseWheelEvent (anc, e.getID (), e.getWhen (), e.getModifiers (), newX, newY, e.getXOnScreen (), e.getYOnScreen (), e.getClickCount (), e.isPopupTrigger (), e.getScrollType (), e.getScrollAmount (), e.getWheelRotation ());
+(e).copyPrivateDataInto (newMWE);
+anc.dispatchEventToSelf (newMWE);
+}}return true;
+}, "java.awt.event.MouseWheelEvent");
+Clazz.defineMethod (c$, "checkWindowClosingException", 
+function () {
+if (this.windowClosingException != null) {
+if (Clazz.instanceOf (this, java.awt.Dialog)) {
+(this).interruptBlocking ();
+} else {
+this.windowClosingException.fillInStackTrace ();
+this.windowClosingException.printStackTrace ();
+this.windowClosingException = null;
+}return true;
+}return false;
+});
+Clazz.defineMethod (c$, "areInputMethodsEnabled", 
+function () {
+return ((this.eventMask & 4096) != 0) && ((this.eventMask & 8) != 0 || this.keyListener != null);
+});
+Clazz.defineMethod (c$, "eventEnabled", 
+function (e) {
+return this.eventTypeEnabled (e.id);
+}, "java.awt.AWTEvent");
+Clazz.defineMethod (c$, "eventTypeEnabled", 
+function (type) {
+switch (type) {
+case 100:
+case 101:
+case 102:
+case 103:
+if ((this.eventMask & 1) != 0 || this.componentListener != null) {
+return true;
+}break;
+case 1004:
+case 1005:
+if ((this.eventMask & 4) != 0 || this.focusListener != null) {
+return true;
+}break;
+case 401:
+case 402:
+case 400:
+if ((this.eventMask & 8) != 0 || this.keyListener != null) {
+return true;
+}break;
+case 501:
+case 502:
+case 504:
+case 505:
+case 500:
+if ((this.eventMask & 16) != 0 || this.mouseListener != null) {
+return true;
+}break;
+case 503:
+case 506:
+if ((this.eventMask & 32) != 0 || this.mouseMotionListener != null) {
+return true;
+}break;
+case 507:
+if ((this.eventMask & 131072) != 0 || this.mouseWheelListener != null) {
+return true;
+}break;
+case 1100:
+case 1101:
+if ((this.eventMask & 2048) != 0 || this.inputMethodListener != null) {
+return true;
+}break;
+case 1400:
+if ((this.eventMask & 32768) != 0 || this.hierarchyListener != null) {
+return true;
+}break;
+case 1401:
+case 1402:
+if ((this.eventMask & 65536) != 0 || this.hierarchyBoundsListener != null) {
+return true;
+}break;
+case 1001:
+if ((this.eventMask & 128) != 0) {
+return true;
+}break;
+case 900:
+if ((this.eventMask & 1024) != 0) {
+return true;
+}break;
+case 701:
+if ((this.eventMask & 512) != 0) {
+return true;
+}break;
+case 601:
+if ((this.eventMask & 256) != 0) {
+return true;
+}break;
+default:
+break;
+}
+if (type > 1999) {
+return true;
+}return false;
+}, "~N");
+Clazz.defineMethod (c$, "postEvent", 
+function (e) {
+if (this.handleEvent (e)) {
+e.consume ();
+return true;
+}var parent = this.parent;
+var eventx = e.x;
+var eventy = e.y;
+if (parent != null) {
+e.translate (this.x, this.y);
+if (parent.postEvent (e)) {
+e.consume ();
+return true;
+}e.x = eventx;
+e.y = eventy;
+}return false;
+}, "java.awt.Event");
+Clazz.defineMethod (c$, "addComponentListener", 
+function (l) {
+if (l == null) {
+return;
+}this.componentListener = java.awt.AWTEventMulticaster.add (this.componentListener, l);
+this.newEventsOnly = true;
+}, "java.awt.event.ComponentListener");
+Clazz.defineMethod (c$, "removeComponentListener", 
+function (l) {
+if (l == null) {
+return;
+}this.componentListener = java.awt.AWTEventMulticaster.remove (this.componentListener, l);
+}, "java.awt.event.ComponentListener");
+Clazz.defineMethod (c$, "getComponentListeners", 
+function () {
+return (this.getListeners (java.awt.event.ComponentListener));
+});
+Clazz.defineMethod (c$, "addFocusListener", 
+function (l) {
+if (l == null) {
+return;
+}this.focusListener = java.awt.AWTEventMulticaster.add (this.focusListener, l);
+this.newEventsOnly = true;
+}, "java.awt.event.FocusListener");
+Clazz.defineMethod (c$, "removeFocusListener", 
+function (l) {
+if (l == null) {
+return;
+}this.focusListener = java.awt.AWTEventMulticaster.remove (this.focusListener, l);
+}, "java.awt.event.FocusListener");
+Clazz.defineMethod (c$, "getFocusListeners", 
+function () {
+return (this.getListeners (java.awt.event.FocusListener));
+});
+Clazz.defineMethod (c$, "addHierarchyListener", 
+function (l) {
+}, "java.awt.event.HierarchyListener");
+Clazz.defineMethod (c$, "removeHierarchyListener", 
+function (l) {
+}, "java.awt.event.HierarchyListener");
+Clazz.defineMethod (c$, "getHierarchyListeners", 
+function () {
+return (this.getListeners (java.awt.event.HierarchyListener));
+});
+Clazz.defineMethod (c$, "addHierarchyBoundsListener", 
+function (l) {
+if (l == null) {
+return;
+}var notifyAncestors;
+{
+notifyAncestors = (this.hierarchyBoundsListener == null && (this.eventMask & 65536) == 0);
+this.hierarchyBoundsListener = java.awt.AWTEventMulticaster.add (this.hierarchyBoundsListener, l);
+notifyAncestors = (notifyAncestors && this.hierarchyBoundsListener != null);
+this.newEventsOnly = true;
+}if (notifyAncestors) {
+{
+this.adjustListeningChildrenOnParent (65536, 1);
+}}}, "java.awt.event.HierarchyBoundsListener");
+Clazz.defineMethod (c$, "removeHierarchyBoundsListener", 
+function (l) {
+if (l == null) {
+return;
+}var notifyAncestors;
+{
+notifyAncestors = (this.hierarchyBoundsListener != null && (this.eventMask & 65536) == 0);
+this.hierarchyBoundsListener = java.awt.AWTEventMulticaster.remove (this.hierarchyBoundsListener, l);
+notifyAncestors = (notifyAncestors && this.hierarchyBoundsListener == null);
+}if (notifyAncestors) {
+{
+this.adjustListeningChildrenOnParent (65536, -1);
+}}}, "java.awt.event.HierarchyBoundsListener");
+Clazz.defineMethod (c$, "numListening", 
+function (mask) {
+return this.numListeningMask (mask);
+}, "~N");
+Clazz.defineMethod (c$, "numListeningMask", 
+function (mask) {
+if ((mask == 32768 && (this.hierarchyListener != null || (this.eventMask & 32768) != 0)) || (mask == 65536 && (this.hierarchyBoundsListener != null || (this.eventMask & 65536) != 0))) {
+return 1;
+} else {
+return 0;
+}}, "~N");
+Clazz.defineMethod (c$, "countHierarchyMembers", 
+function () {
+return 1;
+});
+Clazz.defineMethod (c$, "createHierarchyEvents", 
+function (id, changed, changedParent, changeFlags, enabledOnToolkit) {
+return this.createHierEventsComp (id, changed, changedParent, changeFlags, enabledOnToolkit);
+}, "~N,java.awt.Component,java.awt.Container,~N,~B");
+Clazz.defineMethod (c$, "createHierEventsComp", 
+function (id, changed, changedParent, changeFlags, enabledOnToolkit) {
+switch (id) {
+case 1400:
+if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || enabledOnToolkit) {
+var e =  new java.awt.event.HierarchyEvent (this, id, changed, changedParent, changeFlags);
+this.dispatchEvent (e);
+return 1;
+}break;
+case 1401:
+case 1402:
+if (this.hierarchyBoundsListener != null || (this.eventMask & 65536) != 0 || enabledOnToolkit) {
+var e =  new java.awt.event.HierarchyEvent (this, id, changed, changedParent);
+this.dispatchEvent (e);
+return 1;
+}break;
+default:
+break;
+}
+return 0;
+}, "~N,java.awt.Component,java.awt.Container,~N,~B");
+Clazz.defineMethod (c$, "getHierarchyBoundsListeners", 
+function () {
+return (this.getListeners (java.awt.event.HierarchyBoundsListener));
+});
+Clazz.defineMethod (c$, "adjustListeningChildrenOnParent", 
+function (mask, num) {
+if (this.parent != null) {
+this.parent.adjustListeningChildren (mask, num);
+}}, "~N,~N");
+Clazz.defineMethod (c$, "addKeyListener", 
+function (l) {
+if (l == null) {
+return;
+}this.keyListener = java.awt.AWTEventMulticaster.add (this.keyListener, l);
+this.newEventsOnly = true;
+}, "java.awt.event.KeyListener");
+Clazz.defineMethod (c$, "removeKeyListener", 
+function (l) {
+if (l == null) {
+return;
+}this.keyListener = java.awt.AWTEventMulticaster.remove (this.keyListener, l);
+}, "java.awt.event.KeyListener");
+Clazz.defineMethod (c$, "getKeyListeners", 
+function () {
+return (this.getListeners (java.awt.event.KeyListener));
+});
+Clazz.defineMethod (c$, "addMouseListener", 
+function (l) {
+if (l == null) {
+return;
+}System.out.println ("C adding mouse listener " + l);
+this.mouseListener = java.awt.AWTEventMulticaster.add (this.mouseListener, l);
+this.newEventsOnly = true;
+}, "java.awt.event.MouseListener");
+Clazz.defineMethod (c$, "removeMouseListener", 
+function (l) {
+if (l == null) {
+return;
+}this.mouseListener = java.awt.AWTEventMulticaster.remove (this.mouseListener, l);
+}, "java.awt.event.MouseListener");
+Clazz.defineMethod (c$, "getMouseListeners", 
+function () {
+return (this.getListeners (java.awt.event.MouseListener));
+});
+Clazz.defineMethod (c$, "addMouseMotionListener", 
+function (l) {
+if (l == null) {
+return;
+}this.mouseMotionListener = java.awt.AWTEventMulticaster.add (this.mouseMotionListener, l);
+this.newEventsOnly = true;
+}, "java.awt.event.MouseMotionListener");
+Clazz.defineMethod (c$, "removeMouseMotionListener", 
+function (l) {
+if (l == null) {
+return;
+}this.mouseMotionListener = java.awt.AWTEventMulticaster.remove (this.mouseMotionListener, l);
+}, "java.awt.event.MouseMotionListener");
+Clazz.defineMethod (c$, "getMouseMotionListeners", 
+function () {
+return (this.getListeners (java.awt.event.MouseMotionListener));
+});
+Clazz.defineMethod (c$, "addMouseWheelListener", 
+function (l) {
+if (l == null) {
+return;
+}this.mouseWheelListener = java.awt.AWTEventMulticaster.add (this.mouseWheelListener, l);
+this.newEventsOnly = true;
+}, "java.awt.event.MouseWheelListener");
+Clazz.defineMethod (c$, "removeMouseWheelListener", 
+function (l) {
+if (l == null) {
+return;
+}this.mouseWheelListener = java.awt.AWTEventMulticaster.remove (this.mouseWheelListener, l);
+}, "java.awt.event.MouseWheelListener");
+Clazz.defineMethod (c$, "getMouseWheelListeners", 
+function () {
+return (this.getListeners (java.awt.event.MouseWheelListener));
+});
+Clazz.defineMethod (c$, "addInputMethodListener", 
+function (l) {
+if (l == null) {
+return;
+}this.inputMethodListener = java.awt.AWTEventMulticaster.add (this.inputMethodListener, l);
+this.newEventsOnly = true;
+}, "java.awt.event.InputMethodListener");
+Clazz.defineMethod (c$, "removeInputMethodListener", 
+function (l) {
+if (l == null) {
+return;
+}this.inputMethodListener = java.awt.AWTEventMulticaster.remove (this.inputMethodListener, l);
+}, "java.awt.event.InputMethodListener");
+Clazz.defineMethod (c$, "getInputMethodListeners", 
+function () {
+return (this.getListeners (java.awt.event.InputMethodListener));
+});
+Clazz.defineMethod (c$, "getListeners", 
+function (listenerType) {
+return this.getListenersComp (listenerType);
+}, "Class");
+Clazz.defineMethod (c$, "getListenersComp", 
+function (listenerType) {
+var l = null;
+if (listenerType === java.awt.event.ComponentListener) {
+l = this.componentListener;
+} else if (listenerType === java.awt.event.FocusListener) {
+l = this.focusListener;
+} else if (listenerType === java.awt.event.HierarchyListener) {
+l = this.hierarchyListener;
+} else if (listenerType === java.awt.event.HierarchyBoundsListener) {
+l = this.hierarchyBoundsListener;
+} else if (listenerType === java.awt.event.KeyListener) {
+l = this.keyListener;
+} else if (listenerType === java.awt.event.MouseListener) {
+l = this.mouseListener;
+} else if (listenerType === java.awt.event.MouseMotionListener) {
+l = this.mouseMotionListener;
+} else if (listenerType === java.awt.event.MouseWheelListener) {
+l = this.mouseWheelListener;
+} else if (listenerType === java.awt.event.InputMethodListener) {
+l = this.inputMethodListener;
+} else if (listenerType === java.beans.PropertyChangeListener) {
+return this.getPropertyChangeListeners ();
+}return java.awt.AWTEventMulticaster.getListeners (l, listenerType);
+}, "Class");
+Clazz.defineMethod (c$, "enableEvents", 
+function (eventsToEnable) {
+var notifyAncestors = 0;
+{
+if ((eventsToEnable & 32768) != 0 && this.hierarchyListener == null && (this.eventMask & 32768) == 0) {
+notifyAncestors |= 32768;
+}if ((eventsToEnable & 65536) != 0 && this.hierarchyBoundsListener == null && (this.eventMask & 65536) == 0) {
+notifyAncestors |= 65536;
+}this.eventMask |= eventsToEnable;
+this.newEventsOnly = true;
+}if (Clazz.instanceOf (this.peer, java.awt.peer.LightweightPeer)) {
+this.parent.proxyEnableEvents (this.eventMask);
+}if (notifyAncestors != 0) {
+{
+this.adjustListeningChildrenOnParent (notifyAncestors, 1);
+}}}, "~N");
+Clazz.defineMethod (c$, "disableEvents", 
+function (eventsToDisable) {
+var notifyAncestors = 0;
+{
+if ((eventsToDisable & 32768) != 0 && this.hierarchyListener == null && (this.eventMask & 32768) != 0) {
+notifyAncestors |= 32768;
+}if ((eventsToDisable & 65536) != 0 && this.hierarchyBoundsListener == null && (this.eventMask & 65536) != 0) {
+notifyAncestors |= 65536;
+}this.eventMask &= ~eventsToDisable;
+}if (notifyAncestors != 0) {
+{
+this.adjustListeningChildrenOnParent (notifyAncestors, -1);
+}}}, "~N");
+Clazz.defineMethod (c$, "checkCoalescing", 
+ function () {
+if (this.getClass ().getClassLoader () == null) {
+return false;
+}var clazz = this.getClass ();
+{
+var value = java.awt.Component.coalesceMap.get (clazz);
+if (value != null) {
+return value;
+}var enabled = Boolean.$valueOf (swingjs.JSToolkit.checkClassMethod (this, "coalesceEvents", "\\java.awt.AWTEvent\\java.awt.AWTEvent"));
+java.awt.Component.coalesceMap.put (clazz, enabled);
+return enabled;
+}});
+Clazz.defineMethod (c$, "isCoalescingEnabled", 
+function () {
+return this.coalescingEnabled;
+});
+Clazz.defineMethod (c$, "coalesceEvents", 
+function (existingEvent, newEvent) {
+return null;
+}, "java.awt.AWTEvent,java.awt.AWTEvent");
+Clazz.defineMethod (c$, "processEvent", 
+function (e) {
+this.processEventComp (e);
+}, "java.awt.AWTEvent");
+Clazz.defineMethod (c$, "processEventComp", 
+function (e) {
+if (Clazz.instanceOf (e, java.awt.event.FocusEvent)) {
+this.processFocusEvent (e);
+} else if (Clazz.instanceOf (e, java.awt.event.MouseEvent)) {
+switch (e.getID ()) {
+case 501:
+case 502:
+case 500:
+case 504:
+case 505:
+this.processMouseEvent (e);
+break;
+case 503:
+case 506:
+this.processMouseMotionEvent (e);
+break;
+case 507:
+this.processMouseWheelEvent (e);
+break;
+}
+} else if (Clazz.instanceOf (e, java.awt.event.KeyEvent)) {
+this.processKeyEvent (e);
+} else if (Clazz.instanceOf (e, java.awt.event.ComponentEvent)) {
+this.processComponentEvent (e);
+} else if (Clazz.instanceOf (e, java.awt.event.InputMethodEvent)) {
+this.processInputMethodEvent (e);
+} else if (Clazz.instanceOf (e, java.awt.event.HierarchyEvent)) {
+switch (e.getID ()) {
+case 1400:
+this.processHierarchyEvent (e);
+break;
+case 1401:
+case 1402:
+this.processHierarchyBoundsEvent (e);
+break;
+}
+}}, "java.awt.AWTEvent");
+Clazz.defineMethod (c$, "processComponentEvent", 
+function (e) {
+var listener = this.componentListener;
+if (listener != null) {
+var id = e.getID ();
+switch (id) {
+case 101:
+listener.componentResized (e);
+break;
+case 100:
+listener.componentMoved (e);
+break;
+case 102:
+listener.componentShown (e);
+break;
+case 103:
+listener.componentHidden (e);
+break;
+}
+}}, "java.awt.event.ComponentEvent");
+Clazz.defineMethod (c$, "processFocusEvent", 
+function (e) {
+var listener = this.focusListener;
+if (listener != null) {
+var id = e.getID ();
+switch (id) {
+case 1004:
+listener.focusGained (e);
+break;
+case 1005:
+listener.focusLost (e);
+break;
+}
+}}, "java.awt.event.FocusEvent");
+Clazz.defineMethod (c$, "processKeyEvent", 
+function (e) {
+var listener = this.keyListener;
+if (listener != null) {
+var id = e.getID ();
+switch (id) {
+case 400:
+listener.keyTyped (e);
+break;
+case 401:
+listener.keyPressed (e);
+break;
+case 402:
+listener.keyReleased (e);
+break;
+}
+}}, "java.awt.event.KeyEvent");
+Clazz.defineMethod (c$, "processMouseEvent", 
+function (e) {
+var listener = this.mouseListener;
+if (listener != null) {
+var id = e.getID ();
+switch (id) {
+case 501:
+listener.mousePressed (e);
+break;
+case 502:
+listener.mouseReleased (e);
+break;
+case 500:
+listener.mouseClicked (e);
+break;
+case 505:
+listener.mouseExited (e);
+break;
+case 504:
+listener.mouseEntered (e);
+break;
+}
+}}, "java.awt.event.MouseEvent");
+Clazz.defineMethod (c$, "processMouseMotionEvent", 
+function (e) {
+var listener = this.mouseMotionListener;
+if (listener != null) {
+var id = e.getID ();
+switch (id) {
+case 503:
+listener.mouseMoved (e);
+break;
+case 506:
+listener.mouseDragged (e);
+break;
+}
+}}, "java.awt.event.MouseEvent");
+Clazz.defineMethod (c$, "processMouseWheelEvent", 
+function (e) {
+var listener = this.mouseWheelListener;
+if (listener != null) {
+var id = e.getID ();
+switch (id) {
+case 507:
+listener.mouseWheelMoved (e);
+break;
+}
+}}, "java.awt.event.MouseWheelEvent");
+Clazz.defineMethod (c$, "postsOldMouseEvents", 
+function () {
+return false;
+});
+Clazz.defineMethod (c$, "processInputMethodEvent", 
+function (e) {
+var listener = this.inputMethodListener;
+if (listener != null) {
+var id = e.getID ();
+switch (id) {
+case 1100:
+listener.inputMethodTextChanged (e);
+break;
+case 1101:
+listener.caretPositionChanged (e);
+break;
+}
+}}, "java.awt.event.InputMethodEvent");
+Clazz.defineMethod (c$, "processHierarchyEvent", 
+function (e) {
+var listener = this.hierarchyListener;
+if (listener != null) {
+var id = e.getID ();
+switch (id) {
+case 1400:
+listener.hierarchyChanged (e);
+break;
+}
+}}, "java.awt.event.HierarchyEvent");
+Clazz.defineMethod (c$, "processHierarchyBoundsEvent", 
+function (e) {
+var listener = this.hierarchyBoundsListener;
+if (listener != null) {
+var id = e.getID ();
+switch (id) {
+case 1401:
+listener.ancestorMoved (e);
+break;
+case 1402:
+listener.ancestorResized (e);
+break;
+}
+}}, "java.awt.event.HierarchyEvent");
+Clazz.defineMethod (c$, "handleEvent", 
+function (evt) {
+switch (evt.id) {
+case 504:
+return this.mouseEnter (evt, evt.x, evt.y);
+case 505:
+return this.mouseExit (evt, evt.x, evt.y);
+case 503:
+return this.mouseMove (evt, evt.x, evt.y);
+case 501:
+return this.mouseDown (evt, evt.x, evt.y);
+case 506:
+return this.mouseDrag (evt, evt.x, evt.y);
+case 502:
+return this.mouseUp (evt, evt.x, evt.y);
+case 401:
+case 403:
+return this.keyDown (evt, evt.key);
+case 402:
+case 404:
+return this.keyUp (evt, evt.key);
+case 1001:
+return this.action (evt, evt.arg);
+case 1004:
+return this.gotFocus (evt, evt.arg);
+case 1005:
+return this.lostFocus (evt, evt.arg);
+}
+return false;
+}, "java.awt.Event");
+Clazz.defineMethod (c$, "mouseDown", 
+function (evt, x, y) {
+return false;
+}, "java.awt.Event,~N,~N");
+Clazz.defineMethod (c$, "mouseDrag", 
+function (evt, x, y) {
+return false;
+}, "java.awt.Event,~N,~N");
+Clazz.defineMethod (c$, "mouseUp", 
+function (evt, x, y) {
+return false;
+}, "java.awt.Event,~N,~N");
+Clazz.defineMethod (c$, "mouseMove", 
+function (evt, x, y) {
+return false;
+}, "java.awt.Event,~N,~N");
+Clazz.defineMethod (c$, "mouseEnter", 
+function (evt, x, y) {
+return false;
+}, "java.awt.Event,~N,~N");
+Clazz.defineMethod (c$, "mouseExit", 
+function (evt, x, y) {
+return false;
+}, "java.awt.Event,~N,~N");
+Clazz.defineMethod (c$, "keyDown", 
+function (evt, key) {
+return false;
+}, "java.awt.Event,~N");
+Clazz.defineMethod (c$, "keyUp", 
+function (evt, key) {
+return false;
+}, "java.awt.Event,~N");
+Clazz.defineMethod (c$, "action", 
+function (evt, what) {
+return false;
+}, "java.awt.Event,~O");
+Clazz.defineMethod (c$, "addNotify", 
+function () {
+this.addNotifyComp ();
+});
+Clazz.defineMethod (c$, "addNotifyComp", 
+function () {
+{
+var peer = this.peer;
+if (peer == null || Clazz.instanceOf (peer, java.awt.peer.LightweightPeer)) {
+if (peer == null) {
+this.peer = peer = this.getToolkit ().createComponent (this);
+}if (this.parent != null) {
+var mask = 0;
+if ((this.mouseListener != null) || ((this.eventMask & 16) != 0)) {
+mask |= 16;
+}if ((this.mouseMotionListener != null) || ((this.eventMask & 32) != 0)) {
+mask |= 32;
+}if ((this.mouseWheelListener != null) || ((this.eventMask & 131072) != 0)) {
+mask |= 131072;
+}if (this.focusListener != null || (this.eventMask & 4) != 0) {
+mask |= 4;
+}if (this.keyListener != null || (this.eventMask & 8) != 0) {
+mask |= 8;
+}if (mask != 0) {
+this.parent.proxyEnableEvents (mask);
+}}} else {
+var parent = this.parent;
+if (parent != null && Clazz.instanceOf (parent.peer, java.awt.peer.LightweightPeer)) {
+this.relocateComponent ();
+}}this.invalidate ();
+this.peerFont = this.getFont ();
+if (this.getContainer () != null && !this.isAddNotifyComplete) {
+this.getContainer ().increaseComponentCount (this);
+}if (this.parent != null && this.parent.peer != null) {
+var parentContPeer = this.parent.peer;
+if (Clazz.instanceOf (parentContPeer, java.awt.peer.LightweightPeer) && !(Clazz.instanceOf (peer, java.awt.peer.LightweightPeer))) {
+var hwParent = this.getNativeContainer ();
+if (hwParent != null && hwParent.peer != null) {
+parentContPeer = hwParent.peer;
+}}}if (!this.isAddNotifyComplete) {
+this.mixOnShowing ();
+}this.isAddNotifyComplete = true;
+if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || java.awt.Toolkit.enabledOnToolkit (32768)) {
+var e =  new java.awt.event.HierarchyEvent (this, 1400, this, this.parent, 2 | ((this.isRecursivelyVisible ()) ? 4 : 0));
+this.dispatchEvent (e);
+}}});
+Clazz.defineMethod (c$, "getNativeContainer", 
+function () {
+var p = this.parent;
+while (p != null && Clazz.instanceOf (p.peer, java.awt.peer.LightweightPeer)) {
+p = p.getParent ();
+}
+return p;
+});
+Clazz.defineMethod (c$, "removeNotify", 
+function () {
+this.removeNotifyComp ();
+});
+Clazz.defineMethod (c$, "removeNotifyComp", 
+function () {
+{
+if (this.getContainer () != null && this.isAddNotifyComplete) {
+this.getContainer ().decreaseComponentCount (this);
+}var p = this.peer;
+if (p != null) {
+var isLightweight = this.isLightweight ();
+this.peer = null;
+this.peerFont = null;
+java.awt.Toolkit.getEventQueue ().removeSourceEvents (this, false);
+p.dispose ();
+this.mixOnHiding (isLightweight);
+this.isAddNotifyComplete = false;
+}if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || java.awt.Toolkit.enabledOnToolkit (32768)) {
+var e =  new java.awt.event.HierarchyEvent (this, 1400, this, this.parent, 2 | ((this.isRecursivelyVisible ()) ? 4 : 0));
+this.dispatchEvent (e);
+}}});
+Clazz.defineMethod (c$, "gotFocus", 
+function (evt, what) {
+return false;
+}, "java.awt.Event,~O");
+Clazz.defineMethod (c$, "lostFocus", 
+function (evt, what) {
+return false;
+}, "java.awt.Event,~O");
+Clazz.defineMethod (c$, "isFocusTraversable", 
+function () {
+if (this.$isFocusTraversableOverridden == 0) {
+this.$isFocusTraversableOverridden = 1;
+}return this.focusable;
+});
+Clazz.defineMethod (c$, "isFocusable", 
+function () {
+return this.isFocusTraversable ();
+});
+Clazz.defineMethod (c$, "setFocusable", 
+function (focusable) {
+var oldFocusable;
+{
+oldFocusable = this.focusable;
+this.focusable = focusable;
+}this.$isFocusTraversableOverridden = 2;
+this.firePropertyChangeObject ("focusable", new Boolean (oldFocusable), new Boolean (focusable));
+}, "~B");
+Clazz.defineMethod (c$, "isFocusTraversableOverridden", 
+function () {
+return (this.$isFocusTraversableOverridden != 1);
+});
+Clazz.defineMethod (c$, "getFocusTraversalKeysEnabled", 
+function () {
+return this.focusTraversalKeysEnabled;
+});
+Clazz.defineMethod (c$, "requestFocus", 
+function () {
+swingjs.JSToolkit.requestFocus (this);
+});
+Clazz.defineMethod (c$, "requestFocus", 
+function (temporary) {
+return swingjs.JSToolkit.requestFocus (this);
+}, "~B");
+Clazz.defineMethod (c$, "requestFocusInWindow", 
+function () {
+return swingjs.JSToolkit.requestFocus (this);
+});
+Clazz.defineMethod (c$, "requestFocusInWindow", 
+function (temporary) {
+return swingjs.JSToolkit.requestFocus (this);
+}, "~B");
+Clazz.defineMethod (c$, "getFocusCycleRootAncestor", 
+function () {
+var rootAncestor = this.parent;
+while (rootAncestor != null && !rootAncestor.isFocusCycleRoot ()) {
+rootAncestor = rootAncestor.parent;
+}
+return rootAncestor;
+});
+Clazz.defineMethod (c$, "isFocusCycleRoot", 
+function (container) {
+return this.isFocusCycleRootComp (container);
+}, "java.awt.Container");
+Clazz.defineMethod (c$, "isFocusCycleRootComp", 
+function (container) {
+var rootAncestor = this.getFocusCycleRootAncestor ();
+return (rootAncestor === container);
+}, "java.awt.Container");
+Clazz.defineMethod (c$, "hasFocus", 
+function () {
+return swingjs.JSToolkit.hasFocus (this);
+});
+Clazz.defineMethod (c$, "isFocusOwner", 
+function () {
+return this.hasFocus ();
+});
+Clazz.defineMethod (c$, "setAutoFocusTransferOnDisposal", 
+function (value) {
+this.autoFocusTransferOnDisposal = value;
+}, "~B");
+Clazz.defineMethod (c$, "isAutoFocusTransferOnDisposal", 
+function () {
+return this.autoFocusTransferOnDisposal;
+});
+Clazz.defineMethod (c$, "paramString", 
+function () {
+return this.paramStringComp ();
+});
+Clazz.defineMethod (c$, "paramStringComp", 
+function () {
+var thisName = this.getName ();
+var str = (thisName != null ? thisName : "");
+if (!this.isValid ()) {
+str += ",invalid";
+}if (!this.visible) {
+str += ",hidden";
+}if (!this.enabled) {
+str += ",disabled";
+}str += ",parent:" + (this.parent == null ? null : this.parent.getName ()) + "," + this.x + "," + this.y + "," + this.width + "x" + this.height;
+return str;
+});
+Clazz.overrideMethod (c$, "toString", 
+function () {
+return this.getClass ().getName () + "[" + this.paramString () + "]";
+});
+Clazz.defineMethod (c$, "addPropertyChangeListener", 
+function (listener) {
+this.addPropChangeListenerComp (listener);
+}, "java.beans.PropertyChangeListener");
+Clazz.defineMethod (c$, "addPropChangeListenerComp", 
+function (listener) {
+{
+if (listener == null) {
+return;
+}if (this.changeSupport == null) {
+this.changeSupport =  new java.beans.PropertyChangeSupport (this);
+}this.changeSupport.addPropertyChangeListener1 (listener);
+}}, "java.beans.PropertyChangeListener");
+Clazz.defineMethod (c$, "removePropertyChangeListener", 
+function (listener) {
+{
+if (listener == null || this.changeSupport == null) {
+return;
+}this.changeSupport.removePropertyChangeListener (listener);
+}}, "java.beans.PropertyChangeListener");
+Clazz.defineMethod (c$, "getPropertyChangeListeners", 
+function () {
+{
+if (this.changeSupport == null) {
+return  new Array (0);
+}return this.changeSupport.getPropertyChangeListeners ();
+}});
+Clazz.defineMethod (c$, "addPropertyChangeListener", 
+function (propertyName, listener) {
+this.addPropChangeListComp (propertyName, listener);
+}, "~S,java.beans.PropertyChangeListener");
+Clazz.defineMethod (c$, "addPropChangeListComp", 
+function (propertyName, listener) {
+{
+if (arguments.length == 1) {
+addPropertyChangeListener1(propertyName); return; }
+}{
+if (listener == null) {
+return;
+}if (this.changeSupport == null) {
+this.changeSupport =  new java.beans.PropertyChangeSupport (this);
+}this.changeSupport.addPropertyChangeListener2 (propertyName, listener);
+}}, "~S,java.beans.PropertyChangeListener");
+Clazz.defineMethod (c$, "removePropertyChangeListener", 
+function (propertyName, listener) {
+{
+if (listener == null || this.changeSupport == null) {
+return;
+}this.changeSupport.removePropertyChangeListener (propertyName, listener);
+}}, "~S,java.beans.PropertyChangeListener");
+Clazz.defineMethod (c$, "getPropertyChangeListeners", 
+function (propertyName) {
+{
+if (this.changeSupport == null) {
+return  new Array (0);
+}return this.changeSupport.getPropertyChangeListeners (propertyName);
+}}, "~S");
+Clazz.defineMethod (c$, "firePropertyChange", 
+function (propertyName, oldValue, newValue) {
+this.firePropertyChangeObject (propertyName, oldValue, newValue);
+}, "~S,~O,~O");
+Clazz.defineMethod (c$, "firePropertyChangeObject", 
+function (propertyName, oldValue, newValue) {
+var changeSupport;
+{
+changeSupport = this.changeSupport;
+}if (changeSupport == null || (oldValue != null && newValue != null && oldValue.equals (newValue))) {
+return;
+}changeSupport.firePropertyChange (propertyName, oldValue, newValue);
+}, "~S,~O,~O");
+Clazz.defineMethod (c$, "firePropertyChange", 
+function (propertyName, oldValue, newValue) {
+this.firePropertyChangeBool (propertyName, oldValue, newValue);
+}, "~S,~B,~B");
+Clazz.defineMethod (c$, "firePropertyChangeBool", 
+function (propertyName, oldValue, newValue) {
+var changeSupport = this.changeSupport;
+if (changeSupport == null || oldValue == newValue) {
+return;
+}changeSupport.firePropertyChange (propertyName, Boolean.$valueOf (oldValue), Boolean.$valueOf (newValue));
+}, "~S,~B,~B");
+Clazz.defineMethod (c$, "firePropertyChange", 
+function (propertyName, oldValue, newValue) {
+this.firePropertyChangeInt (propertyName, oldValue, newValue);
+}, "~S,~N,~N");
+Clazz.defineMethod (c$, "firePropertyChangeInt", 
+function (propertyName, oldValue, newValue) {
+var changeSupport = this.changeSupport;
+if (changeSupport == null || oldValue == newValue) {
+return;
+}changeSupport.firePropertyChange (propertyName, Integer.$valueOf (oldValue), Integer.$valueOf (newValue));
+}, "~S,~N,~N");
+Clazz.defineMethod (c$, "firePropertyChange", 
+function (propertyName, oldValue, newValue) {
+this.firePropertyChangeChar (propertyName, oldValue, newValue);
+}, "~S,~S,~S");
+Clazz.defineMethod (c$, "firePropertyChangeChar", 
+function (propertyName, oldValue, newValue) {
+if (this.changeSupport == null || oldValue == newValue) {
+return;
+}this.firePropertyChangeObject (propertyName,  new Character (oldValue),  new Character (newValue));
+}, "~S,~S,~S");
+Clazz.defineMethod (c$, "firePropertyChangeShort", 
+function (propertyName, oldValue, newValue) {
+if (this.changeSupport == null || oldValue == newValue) {
+return;
+}this.firePropertyChangeObject (propertyName, Short.$valueOf (oldValue), Short.$valueOf (newValue));
+}, "~S,~N,~N");
+Clazz.defineMethod (c$, "firePropertyChangeLong", 
+function (propertyName, oldValue, newValue) {
+if (this.changeSupport == null || oldValue == newValue) {
+return;
+}this.firePropertyChangeObject (propertyName, Long.$valueOf (oldValue), Long.$valueOf (newValue));
+}, "~S,~N,~N");
+Clazz.defineMethod (c$, "firePropertyChangeFloat", 
+function (propertyName, oldValue, newValue) {
+if (this.changeSupport == null || oldValue == newValue) {
+return;
+}this.firePropertyChangeObject (propertyName, Float.$valueOf (oldValue), Float.$valueOf (newValue));
+}, "~S,~N,~N");
+Clazz.defineMethod (c$, "firePropertyChangeDouble", 
+function (propertyName, oldValue, newValue) {
+if (this.changeSupport == null || oldValue == newValue) {
+return;
+}this.firePropertyChangeObject (propertyName, Double.$valueOf (oldValue), Double.$valueOf (newValue));
+}, "~S,~N,~N");
+Clazz.defineMethod (c$, "setComponentOrientation", 
+function (o) {
+var oldValue = this.componentOrientation;
+this.componentOrientation = o;
+this.firePropertyChangeObject ("componentOrientation", oldValue, o);
+this.invalidateIfValid ();
+}, "java.awt.ComponentOrientation");
+Clazz.defineMethod (c$, "getComponentOrientation", 
+function () {
+return this.componentOrientation;
+});
+Clazz.defineMethod (c$, "applyComponentOrientation", 
+function (orientation) {
+this.applyCompOrientComp (orientation);
+}, "java.awt.ComponentOrientation");
+Clazz.defineMethod (c$, "applyCompOrientComp", 
+function (orientation) {
+if (orientation == null) {
+throw  new NullPointerException ();
+}this.setComponentOrientation (orientation);
+}, "java.awt.ComponentOrientation");
+Clazz.defineMethod (c$, "canBeFocusOwner", 
+function () {
+if (this.isEnabled () && this.isDisplayable () && this.isVisible () && this.isFocusable ()) {
+return true;
+}return false;
+});
+Clazz.defineMethod (c$, "canBeFocusOwnerRecursively", 
+function () {
+if (!this.canBeFocusOwner ()) {
+return false;
+}if (this.parent != null) {
+return this.parent.canContainFocusOwner (this);
+}return true;
+});
+Clazz.defineMethod (c$, "relocateComponent", 
+function () {
+});
+Clazz.defineMethod (c$, "getContainingWindow", 
+function () {
+return jssun.awt.SunToolkit.getContainingWindow (this);
+});
+c$.isInstanceOf = Clazz.defineMethod (c$, "isInstanceOf", 
+function (obj, className) {
+if (obj == null) return false;
+if (className == null) return false;
+var cls = obj.getClass ();
+while (cls != null) {
+if (cls.getName ().equals (className)) {
+return true;
+}cls = cls.getSuperclass ();
+}
+return false;
+}, "~O,~S");
+Clazz.defineMethod (c$, "areBoundsValid", 
+function () {
+var cont = this.getContainer ();
+return cont == null || cont.isValid () || cont.getLayout () == null;
+});
+Clazz.defineMethod (c$, "getLocationOnWindow", 
+function () {
+var curLocation = this.getLocation ();
+for (var parent = this.getContainer (); parent != null && !(Clazz.instanceOf (parent, java.awt.Window)); parent = parent.getContainer ()) {
+curLocation.x += parent.getX ();
+curLocation.y += parent.getY ();
+}
+return curLocation;
+});
+Clazz.defineMethod (c$, "getSiblingIndexAbove", 
+function () {
+var parent = this.getContainer ();
+if (parent == null) {
+return -1;
+}var nextAbove = parent.getComponentZOrder (this) - 1;
+return nextAbove < 0 ? -1 : nextAbove;
+});
+Clazz.defineMethod (c$, "getSiblingIndexBelow", 
+function () {
+var parent = this.getContainer ();
+if (parent == null) {
+return -1;
+}var nextBelow = parent.getComponentZOrder (this) + 1;
+return nextBelow >= parent.getComponentCount () ? -1 : nextBelow;
+});
+Clazz.defineMethod (c$, "mixOnShowing", 
+function () {
+});
+Clazz.defineMethod (c$, "mixOnHiding", 
+function (isLightweight) {
+}, "~B");
+Clazz.defineMethod (c$, "mixOnReshaping", 
+function () {
+swingjs.JSToolkit.taintUI (this);
+});
+Clazz.defineMethod (c$, "mixOnZOrderChanging", 
+function (oldZorder, newZorder) {
+}, "~N,~N");
+Clazz.defineMethod (c$, "mixOnValidating", 
+function () {
+});
+c$.doesClassImplement = Clazz.defineMethod (c$, "doesClassImplement", 
+ function (cls, interfaceName) {
+if (cls == null) return false;
+for (var c, $c = 0, $$c = cls.getInterfaces (); $c < $$c.length && ((c = $$c[$c]) || true); $c++) {
+if (c.getName ().equals (interfaceName)) {
+return true;
+}}
+return java.awt.Component.doesClassImplement (cls.getSuperclass (), interfaceName);
+}, "Class,~S");
+c$.doesImplement = Clazz.defineMethod (c$, "doesImplement", 
+function (obj, interfaceName) {
+if (obj == null) return false;
+if (interfaceName == null) return false;
+return java.awt.Component.doesClassImplement (obj.getClass (), interfaceName);
+}, "~O,~S");
+Clazz.pu$h(self.c$);
+c$ = Clazz.declareType (java.awt.Component, "BaselineResizeBehavior", Enum);
+Clazz.defineEnumConstant (c$, "CONSTANT_ASCENT", 0, []);
+Clazz.defineEnumConstant (c$, "CONSTANT_DESCENT", 1, []);
+Clazz.defineEnumConstant (c$, "CENTER_OFFSET", 2, []);
+Clazz.defineEnumConstant (c$, "OTHER", 3, []);
+c$ = Clazz.p0p ();
+Clazz.pu$h(self.c$);
+c$ = Clazz.declareType (java.awt.Component, "AWTTreeLock");
+c$ = Clazz.p0p ();
+Clazz.defineStatics (c$,
+"FOCUS_TRAVERSABLE_UNKNOWN", 0,
+"FOCUS_TRAVERSABLE_DEFAULT", 1,
+"FOCUS_TRAVERSABLE_SET", 2,
+"actionListenerK", "actionL",
+"adjustmentListenerK", "adjustmentL",
+"componentListenerK", "componentL",
+"containerListenerK", "containerL",
+"focusListenerK", "focusL",
+"itemListenerK", "itemL",
+"keyListenerK", "keyL",
+"mouseListenerK", "mouseL",
+"mouseMotionListenerK", "mouseMotionL",
+"mouseWheelListenerK", "mouseWheelL",
+"textListenerK", "textL",
+"ownedWindowK", "ownedL",
+"windowListenerK", "windowL",
+"inputMethodListenerK", "inputMethodL",
+"hierarchyListenerK", "hierarchyL",
+"hierarchyBoundsListenerK", "hierarchyBoundsL",
+"windowStateListenerK", "windowStateL",
+"windowFocusListenerK", "windowFocusL",
+"isInc", false,
+"incRate", 0,
+"TOP_ALIGNMENT", 0.0,
+"CENTER_ALIGNMENT", 0.5,
+"BOTTOM_ALIGNMENT", 1.0,
+"LEFT_ALIGNMENT", 0.0,
+"RIGHT_ALIGNMENT", 1.0,
+"incr", 0);
+c$.coalesceMap = c$.prototype.coalesceMap =  new java.util.HashMap ();
+});