| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--PTEventUtil
   
Static class containing various event utility methods.
 
Usage:	
 	PTEventUtil.stopBubbling(window.event);
 | 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 | 
<static> <final> String SRC_BUTTON_LEFT
<static> <final> String SRC_BUTTON_MIDDLE
<static> <final> String SRC_BUTTON_RIGHT
<static> <final> Object VERSION
| Constructor Detail | 
PTEventUtil()
| Method Detail | 
<static> void attachEventListener(targetElement, eventName, listenerReference)
targetElement -  element to handle the event  
      eventName -  name of the event being listened for  
      listenerReference -  reference to the event handling function    
      <static> void clickElement(elm)
elm -  the element to be clicked    
      <static> void detachEventListener(targetElement, eventName, listenerReference)
targetElement -  element to handle the event  
      eventName -  name of the event being listened for  
      listenerReference -  reference to the event handling function    
      <static> String getButtonClicked(e)
e -  an event object  
      <static> Element getMouseOutFromElement(e)
e -  the event object  
      <static> Element getMouseOutToElement(e)
e -  the event object  
      <static> Element getMouseOverFromElement(e)
e -  the event object  
      <static> Element getMouseOverToElement(e)
e -  the event object  
      <static> Number getMouseX(e)
e -  an event object  
      <static> Number getMouseY(e)
e -  the event object  
      <static> Element getSrcElement(e)
e -  the event object  
      <static> void stopBubbling(e)
e -  the event (netscape only)    
      
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||