Class PTEventUtil

Object
   |
   +--PTEventUtil

class PTEventUtil


Static class containing various event utility methods.

Usage:	
 	PTEventUtil.stopBubbling(window.event);
 

Defined in PTUtil.js


Field Summary
<static>  <final> String SRC_BUTTON_LEFT
          Constant representing the left-hand mouse button
<static>  <final> String SRC_BUTTON_MIDDLE
          Constant representing the middle mouse button
<static>  <final> String SRC_BUTTON_RIGHT
          Constant representing the right-hand mouse button
<static>  <final> Object VERSION
          
 
Constructor Summary
PTEventUtil ()
            PTEventUtil static object constructor
 
Method Summary
<static> void attachEventListener(targetElement, eventName, listenerReference)
           Attaches an event handing function to a element
<static> void clickElement(elm)
           Programmatically clicks an element and invokes any click event handlers that the element may have
<static> void detachEventListener(targetElement, eventName, listenerReference)
           Removes an event handling functio from an element
<static> String getButtonClicked(e)
           Returns a constant representing the mouse button clicked
<static> Element getMouseOutFromElement(e)
           Returns the element that the mouse exited
<static> Element getMouseOutToElement(e)
           Returns the element that the mouse exited to
<static> Element getMouseOverFromElement(e)
           Returns the element that the mouse was last hovering over
<static> Element getMouseOverToElement(e)
           Returns the element that the mouse is hovering over
<static> Number getMouseX(e)
           Gets the x position of the mouse event.
<static> Number getMouseY(e)
           Gets the y position of the mouse event
<static> Element getSrcElement(e)
           Returns the source element of an event
<static> void stopBubbling(e)
           Cancels event bubbling in IE and Netscape

Field Detail

SRC_BUTTON_LEFT

<static> <final> String SRC_BUTTON_LEFT

SRC_BUTTON_MIDDLE

<static> <final> String SRC_BUTTON_MIDDLE

SRC_BUTTON_RIGHT

<static> <final> String SRC_BUTTON_RIGHT

VERSION

<static> <final> Object VERSION

Constructor Detail

PTEventUtil

PTEventUtil()

Method Detail

attachEventListener

<static> void attachEventListener(targetElement, eventName, listenerReference)

clickElement

<static> void clickElement(elm)

detachEventListener

<static> void detachEventListener(targetElement, eventName, listenerReference)

getButtonClicked

<static> String getButtonClicked(e)

getMouseOutFromElement

<static> Element getMouseOutFromElement(e)

getMouseOutToElement

<static> Element getMouseOutToElement(e)

getMouseOverFromElement

<static> Element getMouseOverFromElement(e)

getMouseOverToElement

<static> Element getMouseOverToElement(e)

getMouseX

<static> Number getMouseX(e)

getMouseY

<static> Number getMouseY(e)

getSrcElement

<static> Element getSrcElement(e)

stopBubbling

<static> void stopBubbling(e)


Documentation generated by JSDoc on Wed Aug 24 10:17:38 2005