blob: d8b26233077a6acb0c741f97b763d2315e621613 [file] [log] [blame]
{ "type": "class",
"qname": "org.apache.royale.events.BrowserEvent",
"baseClassname": ""
,
"description": "<pre>\\n The patched event object contains the following members:\\n - type {string} Event type, e.g. 'click'\\n - timestamp {Date} A date object for when the event was fired\\n - target {Object} The element that actually triggered the event\\n - currentTarget {Object} The element the listener is attached to\\n - relatedTarget {Object} For mouseover and mouseout, the previous object\\n - offsetX {number} X-coordinate relative to target\\n - offsetY {number} Y-coordinate relative to target\\n - clientX {number} X-coordinate relative to viewport\\n - clientY {number} Y-coordinate relative to viewport\\n - screenX {number} X-coordinate relative to the edge of the screen\\n - screenY {number} Y-coordinate relative to the edge of the screen\\n - button {number} Mouse button. Use isButton() to test.\\n - keyCode {number} Key-code\\n - ctrlKey {boolean} Was ctrl key depressed\\n - altKey {boolean} Was alt key depressed\\n - shiftKey {boolean} Was shift key depressed\\n - metaKey {boolean} Was meta key depressed\\n - defaultPrevented {boolean} Whether the default action has been prevented\\n - state {Object} History state object\\n \\n NOTE: The keyCode member contains the raw browser keyCode. For normalized\\n </pre>",
"tags": [
{ "tagName": "link",
"values": ["goog.events.KeyHandler}."]},
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "fileoverview",
"values": ["A patched, standardized event object for browser events."]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"members": [
{ "type": "field",
"qname": "nativeEvent",
"return": "Object",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "",
"tags": [
{ "tagName": "type",
"values": ["{Event}"]},
{ "tagName": "royalesuppresspublicvarwarning",
"values": []} ]},
{ "type": "method",
"qname": "wrapEvent",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"return": "void",
"params": [{ "name": "event", "type": "goog.events.BrowserEvent"}]}
,
{ "type": "accessor",
"access": "read-only",
"return": "Boolean",
"qname": "altKey",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Was altKey key depressed.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{boolean}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "uint",
"qname": "button",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Which mouse button was pressed.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{number}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "uint",
"qname": "charCode",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "CharCode of key press. Native browser event.charCode || (type == 'keypress' ? event.keyCode : 0);",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{number}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Number",
"qname": "clientX",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "X-coordinate relative to the window.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{number}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Number",
"qname": "localX",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {}},
{ "type": "accessor",
"access": "read-only",
"return": "Number",
"qname": "clientY",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Y-coordinate relative to the window.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{number}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Number",
"qname": "localY",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {}},
{ "type": "accessor",
"access": "read-only",
"return": "Boolean",
"qname": "ctrlKey",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Was ctrl key depressed.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{boolean}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Object",
"qname": "currentTarget",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "The element the listener is attached to.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Boolean",
"qname": "defaultPrevented",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Whether the default action has been prevented.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{boolean}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "method",
"qname": "getBrowserEvent",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "The underlying browser event object. (for debugging purposes)",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "return",
"values": ["The underlying browser event object."]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "Object",
"params": []}
,
{ "type": "method",
"qname": "isButton",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Tests to see which button was pressed during the event. This is really only useful in IE and Gecko browsers. And in IE, it's only useful for mousedown/mouseup events, because click only fires for the left mouse button. Safari 2 only reports the left button being clicked, and uses the value '1' instead of 0. Opera only reports a mousedown event for the middle button, and no mouse events for the right button. Opera has default behavior for left and middle click that can only be overridden via a configuration setting. There's a nice table of this mess at http://www.unixpapa.com/js/mouse.html.",
"tags": [
{ "tagName": "param",
"values": ["button The button to test for."]},
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "return",
"values": ["True if button was pressed."]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "Boolean",
"params": [{ "name": "button", "type": "int"}]}
,
{ "type": "method",
"qname": "isMouseActionButton",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Whether this has an &quot;action&quot;-producing mouse button. By definition, this includes left-click on windows/linux, and left-click without the ctrl key on Macs.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "return",
"values": ["The result."]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "Boolean",
"params": []}
,
{ "type": "accessor",
"access": "read-only",
"return": "uint",
"qname": "keyCode",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Keycode of key press. Native browser event.keyCode || 0;",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{number}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Boolean",
"qname": "metaKey",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Whether the meta key was pressed at time of event.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{boolean}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Number",
"qname": "offsetX",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "X-coordinate relative to target.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{number}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Number",
"qname": "offsetY",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Y-coordinate relative to target.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{number}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Boolean",
"qname": "platformModifierKey",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Whether the default platform modifier key was pressed at time of event. (This is control for all platforms except Mac, where it's Meta.)",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{boolean}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "method",
"qname": "preventDefault",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Whether the default action has been prevented.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": []}
,
{ "type": "accessor",
"access": "read-only",
"return": "Object",
"qname": "relatedTarget",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "For mouseover and mouseout, the previous object.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{object}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Number",
"qname": "screenX",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "X-coordinate relative to the monitor.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{number}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Number",
"qname": "screenY",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Y-coordinate relative to the monitor.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{number}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Boolean",
"qname": "shiftKey",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Was shiftKey key depressed.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{boolean}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Object",
"qname": "state",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "History state object, only set for PopState events where it's a copy of the state object provided to pushState or replaceState.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{Object}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "method",
"qname": "stopImmediatePropagation",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": []}
,
{ "type": "method",
"qname": "stopPropagation",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": []}
,
{ "type": "accessor",
"access": "read-only",
"return": "Object",
"qname": "target",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "The element that actually triggered the event.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{object}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "Date",
"qname": "timestamp",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "A date object for when the event was fired.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-only",
"return": "String",
"qname": "type",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Event type, e.g. 'click'.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "type",
"values": ["{string}"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-write",
"return": "Boolean",
"qname": "buttonDown",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {}},
{ "type": "accessor",
"access": "read-only",
"return": "int",
"qname": "buttons",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {}}]
}