textbender.o.rhinohide.events
Class RhiMouseEvent

java.lang.Object
  extended by Rhinohide
      extended by RhiEvent
          extended by RhiUIEvent
              extended by RhiMouseEvent
All Implemented Interfaces:
Event, MouseEvent, UIEvent

@ThreadSafe
final class RhiMouseEvent
extends RhiUIEvent
implements MouseEvent

A mouse event implemented as an overlay of a JavaScript mouse event.


Field Summary
 
Fields inherited from class Rhinohide
window
 
Fields inherited from interface org.w3c.dom.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE
 
Constructor Summary
RhiMouseEvent(RhiWindow window, netscape.javascript.JSObject jsObject, boolean isAsync)
           
 
Method Summary
 boolean getAltKey()
           
 short getButton()
           
 int getClientX()
           
 int getClientY()
           
 boolean getCtrlKey()
           
 boolean getMetaKey()
           
 EventTarget getRelatedTarget()
           
 int getScreenX()
           
 int getScreenY()
           
 boolean getShiftKey()
           
 void initMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg)
          Not yet coded.
static RhiMouseEvent wrapMouseEvent(RhiWindow window, netscape.javascript.JSObject jsObject, boolean isAsync)
          Creates a RhiMouseEvent.
 
Methods inherited from class RhiUIEvent
getDetail, getView, initUIEvent, wrapUIEvent
 
Methods inherited from class RhiEvent
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, getType, initEvent, isAsync, preventDefault, stopPropagation, wrapEvent, wrapEvent
 
Methods inherited from class Rhinohide
call, callV, checkV, equals, eval, evalV, getMember, getMemberV, hashCode, jsObject, setMember, toJSObject, toString, window
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.events.UIEvent
getDetail, getView, initUIEvent
 
Methods inherited from interface org.w3c.dom.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
 

Constructor Detail

RhiMouseEvent

RhiMouseEvent(RhiWindow window,
              netscape.javascript.JSObject jsObject,
              boolean isAsync)
Method Detail

wrapMouseEvent

public static RhiMouseEvent wrapMouseEvent(RhiWindow window,
                                           netscape.javascript.JSObject jsObject,
                                           boolean isAsync)
Creates a RhiMouseEvent.

Parameters:
window - global object
jsObject - bridge to underlying JavaScript event, per jsObject()
isAsync - per isAsync()
Returns:
event, or null if jsObject is null

getAltKey

public boolean getAltKey()
Specified by:
getAltKey in interface MouseEvent

getButton

public short getButton()
Specified by:
getButton in interface MouseEvent

getClientX

public int getClientX()
Specified by:
getClientX in interface MouseEvent

getClientY

public int getClientY()
Specified by:
getClientY in interface MouseEvent

getCtrlKey

public boolean getCtrlKey()
Specified by:
getCtrlKey in interface MouseEvent

getMetaKey

public boolean getMetaKey()
Specified by:
getMetaKey in interface MouseEvent

getRelatedTarget

public EventTarget getRelatedTarget()
Specified by:
getRelatedTarget in interface MouseEvent

getScreenX

public int getScreenX()
Specified by:
getScreenX in interface MouseEvent

getScreenY

public int getScreenY()
Specified by:
getScreenY in interface MouseEvent

getShiftKey

public boolean getShiftKey()
Specified by:
getShiftKey in interface MouseEvent

initMouseEvent

public void initMouseEvent(String typeArg,
                           boolean canBubbleArg,
                           boolean cancelableArg,
                           AbstractView viewArg,
                           int detailArg,
                           int screenXArg,
                           int screenYArg,
                           int clientXArg,
                           int clientYArg,
                           boolean ctrlKeyArg,
                           boolean altKeyArg,
                           boolean shiftKeyArg,
                           boolean metaKeyArg,
                           short buttonArg,
                           EventTarget relatedTargetArg)
Not yet coded.

Specified by:
initMouseEvent in interface MouseEvent
Throws:
UnsupportedOperationException