|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--mozile.Module | +--mozile.event
Field Summary | |
<static> Boolean |
mousedown
Indicates that a mouse button is being held down. |
Method Summary | |
<static> Void
|
addListener(<Document> doc, <String> type, <Function> listener, <Boolean> useCapture)
Adds an event listener to a node. |
<static> Void
|
cancel(<Event> event)
Cancels an event. |
<static> Boolean
|
cancelHyperlink(<Event> event)
Cancels events which would lead Mozilla to follow a hyperlink while editing. |
<static> Boolean
|
cancelKeyEvent(<Event> event)
Cancels certain keyboard events and cancels them. |
<static> Void
|
dispatch(<Element> element, <String> type, keyCode, charCode, ctrlKey, altKey, shiftKey, metaKey)
INCOMPLETE. |
<static> Void
|
findTarget(<Event> event)
Finds the target of an event. |
<static> Void
|
fixFocus(<Event> event)
Makes sure the editable area is focussed. |
<static> Boolean
|
handle(<Event> event)
General event handler, which calls specific event handlers for the document and for the target nodes of the event. |
<static> Boolean
|
handled(<Event> event, state)
Finish handling an event, eieht by cancelling it or not. |
<static> Boolean
|
handleMouseMove(<Event> event)
Handles mouse move events. |
<static> Void
|
listen()
Set up a series of event listeners on this document. |
<static> Object
|
normalize(event)
Changes some of IE's event properties to use standard names. |
<static> Void
|
selectWord(<Node> node, <Integer> offset)
Selects the word inside the given node which contains the given offset. |
<static> Void
|
storeSelection(<Event> event)
Store the current selection so it can be restored. |
Field Detail |
<static> Boolean mousedown
Method Detail |
<static> Void addListener(<Document> doc, <String> type, <Function> listener, <Boolean> useCapture)
doc
- The document to attach the listener to.
type
- The event type to listen for. Do NOT include the "on" prefix!
listener
- Optional. The function to call when the event occurs. Defailts to mozile.event.handle.
useCapture
- Optional. See the documentation for Document.addEventListener().
<static> Void cancel(<Event> event)
event
- The event to cancel.
<static> Boolean cancelHyperlink(<Event> event)
event
- The event to handle.
<static> Boolean cancelKeyEvent(<Event> event)
event
- The event to handle.
<static> Void dispatch(<Element> element, <String> type, keyCode, charCode, ctrlKey, altKey, shiftKey, metaKey)
element
- The element fom which the event will be dispatched.
type
- The type of event to dispatch.
<static> Void findTarget(<Event> event)
event
- The event to handle.
<static> Void fixFocus(<Event> event)
event
- The event to handle.
<static> Boolean handle(<Event> event)
event
- The event to handle.
<static> Boolean handled(<Event> event, state)
event
- The event to handle.
<static> Boolean handleMouseMove(<Event> event)
event
- The event to handle.
<static> Void listen()
<static> Object normalize(event)
e
- The event to normalize.
<static> Void selectWord(<Node> node, <Integer> offset)
node
-
offset
-
<static> Void storeSelection(<Event> event)
event
- The event to handle.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |