Package | gecko.events |
Class | public class MouseEvent |
Inheritance | MouseEvent MouseEvent UIEvent Event Object |
See also
Property | Defined By | ||
---|---|---|---|
DOM 2 Events altKey : Boolean [read-only]
Refer to the KeyboardEvent.altKey attribute. | MouseEvent | ||
axis : Number [read-only]
Specifies the axis of the scroll gesture (horizontal or vertical). | MouseEvent | ||
DOM 2 Events bubbles : Boolean [read-only]
Used to indicate whether or not an event is a bubbling event. | Event | ||
DOM 2 Events button : Number [read-only]
Returns an integer value indicating the button that changed state. | MouseEvent | ||
DOM 2 Events cancelable : Boolean [read-only]
Indicates whether the event is cancelable or not. | Event | ||
CSSOM View clientX : Number [read-only]
Returns the horizontal coordinate within the application's client area at which the event occurred
(as opposed to the coordinates within the page). | MouseEvent | ||
CSSOM View clientY : Number [read-only]
Returns the vertical coordinate within the application's client area at which the event occurred
(as opposed to the coordinates within the page). | MouseEvent | ||
DOM 2 Events ctrlKey : Boolean [read-only]
Refer to the KeyboardEvent.ctrlKey attribute. | MouseEvent | ||
DOM 2 Events currentTarget : EventTarget [read-only]
Identifies the current target for the event, as the event traverses the DOM. | Event | ||
DOM 3 Events defaulPrevented : Boolean [read-only]
Used to indicate whether Event.preventDefault() has been called for
this event. | Event | ||
detail : Number [override] [read-only]
Specifies the number of “ticks” that the mouse wheel moved. | MouseEvent | ||
DOM 2 Events eventPhase : Number [read-only]
Used to indicate which phase of event flow is currently being accomplished. | Event | ||
Non-Standard explicitOriginalTarget : nsIDOMEventTarget [read-only]
The explicit original target of the event. | Event | ||
Non-Standard isChar : Boolean [read-only]
Returns a boolean indicating whether the event produced a key character or not. | UIEvent | ||
Non-Standard isTrusted : Boolean [read-only]
Determines if the event was from the user or script generated. | Event | ||
Non-Standard layerX : Number [read-only]
Returns the horizontal coordinate of the event relative to the current layer. | UIEvent | ||
Non-Standard layerY : Number [read-only]
Returns the vertical coordinate of the event relative to the current layer. | UIEvent | ||
DOM 2 Events metaKey : Boolean [read-only]
Refer to the KeyboardEvent.metaKey attribute. | MouseEvent | ||
DOM 3 Events namespaceURI : DOMString [read-only]
The namespace URI associated with this event at initialization time, or
null if it is unspecified. | Event | ||
CSSOM View offsetX : Number [read-only]
Returns the horizontal coordinate, as number of CSS pixels, of the
position where the event occurred relative to the origin of the padding box of the target node. | MouseEvent | ||
CSSOM View offsetY : Number [read-only]
Returns the vertical coordinate, as number of CSS pixels, of the
position where the event occurred relative to the origin of the padding box of the target node. | MouseEvent | ||
Non-Standard originalTarget : * [read-only]
The original target of the event before any retargetings. | Event | ||
CSSOM View pageX : Number [override] [read-only]
Returns the horizontal coordinate of the event relative to whole document. | MouseEvent | ||
CSSOM View pageY : Number [override] [read-only]
Returns the vertical coordinate of the event relative to the whole document. | MouseEvent | ||
DOM 2 Events relatedTarget : EventTarget [read-only]
Used to identify a secondary EventTarget related to a UI event, depending
on the type of event. | MouseEvent | ||
CSSOM View screenX : Number [read-only]
Returns the horizontal coordinate of the event within the screen as a whole. | MouseEvent | ||
CSSOM View screenY : Number [read-only]
Returns the vertical coordinate of the event within the screen as a whole. | MouseEvent | ||
DOM 2 Events shiftKey : Boolean [read-only]
Refer to the KeyboardEvent.shiftKey attribute. | MouseEvent | ||
DOM 2 Events target : EventTarget [read-only]
Used to indicate the event target. | Event | ||
DOM 2 Events timeStamp : DOMTimeStamp [read-only]
Used to specify the time at which the event was created in milliseconds
relative to 1970-01-01T00:00:00Z. | Event | ||
DOM 2 Events type : DOMString [read-only]
The local name of the event type. | Event | ||
DOM 2 Events view : AbstractView [read-only]
Returns the AbstractView object from which the event was generated. | UIEvent | ||
Non-Standard which : DOMString [read-only]
Returns the numeric keyCode of the key pressed, or the character code (charCode) for
an alphanumeric key pressed. | UIEvent | ||
CSSOM View x : Number [read-only]
Returns the value of pageX. | MouseEvent | ||
CSSOM View y : Number [read-only]
Returns the value of pageY. | MouseEvent |
Constant | Defined By | ||
---|---|---|---|
HTML 4.0 abort : String = abort [static]
Loading of a resource has been aborted. | UIEvent | ||
DOM 2 Events AT_TARGET : Number = 2 [static]
The current event is in the target phase, i.e. | Event | ||
DOM 2 Events blur : String = blur [static]
An event target loses focus. | UIEvent | ||
DOM 2 Events BUBBLING_PHASE : Number = 3 [static]
The current event phase is the bubbling phase. | Event | ||
DOM 2 Events CAPTURING_PHASE : Number = 1 [static]
The current event phase is the capture phase. | Event | ||
HTML 4.0 change : String = change [static]
A control loses the input focus and its value has been modified since gaining focus. | UIEvent | ||
HTML 4.01 click : String = click [static]
A pointing device button is clicked over an element. | MouseEvent | ||
HTML 4.01 dblclick : String = dblclick [static]
A pointing device button is clicked twice over an element. | MouseEvent | ||
DOM 2 Events DOMActivate : String = DOMActivate [static]
Refer to Activation requests and behavior. | UIEvent | ||
DOM 2 Events DOMFocusIn : String = DOMFocusIn [static]
An event target receives focus. | UIEvent | ||
DOM 2 Events DOMFocusOut : String = DOMFocusOut [static]
An event target loses focus. | UIEvent | ||
HTML 4.0 error : String = error [static]
A resource failed to load, or has been loaded but cannot be interpreted according to its semantics
such as an invalid image, a script execution error, or non-well-formed XML. | UIEvent | ||
DOM 2 Events focus : String = focus [static]
An event target receives focus. | UIEvent | ||
HORIZONTAL_AXIS : Number = 0 [static]
Unknown value
| MouseEvent | ||
HTML 4.0 load : String = load [static]
The DOM Implementation finishes loading the resource (such as the document) and any dependent resources
(such as images, style sheets, or scripts). | UIEvent | ||
HTML 4.01 mousedown : String = mousedown [static]
A pointing device button is pressed over an element. | MouseEvent | ||
HTML 4.01 mousemove : String = mousemove [static]
A pointing device is moved while it is over an element. | MouseEvent | ||
HTML 4.01 mouseout : String = mouseout [static]
A pointing device is moved away from an element. | MouseEvent | ||
HTML 4.01 mouseover : String = mouseover [static]
A pointing device is moved onto an element. | MouseEvent | ||
HTML 4.01 mouseup : String = mouseup [static]
A pointing device button is released over an element. | MouseEvent | ||
HTML 4.0 reset : String = reset [static]
A form, such as a [HTML 4.01] or [XHTML 1.0] form, is reset. | UIEvent | ||
DOM 2 Events resize : String = resize [static]
A document view or an element has been resized. | UIEvent | ||
DOM 2 Events scroll : String = scroll [static]
A document view or an element has been scrolled. | UIEvent | ||
HTML 4.0 select : String = select [static]
A user selects some text. | UIEvent | ||
HTML 4.0 submit : String = submit [static]
A form, such as a [HTML 4.01] or [XHTML 1.0] form, is submitted. | UIEvent | ||
HTML 4.0 unload : String = unload [static]
The DOM implementation removes from the environment the resource (such as the document) or any dependent
resources (such as images, style sheets, scripts). | UIEvent | ||
VERTICAL_AXIS : Number = 0 [static]
Unknown value
| MouseEvent |
axis | property |
axis:Number
[read-only] Specifies the axis of the scroll gesture (horizontal or vertical). This attribute was added in Firefox 3.5
public function get axis():Number
See also
detail | property |
detail:Number
[read-only] [override] Specifies the number of “ticks” that the mouse wheel moved. Positive values mean “down” / “right”, negative “up” / “left”.
public function get detail():Number
HORIZONTAL_AXIS | Constant |
public static const HORIZONTAL_AXIS:Number = 0
Unknown value
VERTICAL_AXIS | Constant |
public static const VERTICAL_AXIS:Number = 0
Unknown value