| 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectRhinohide
RhiEvent
@ThreadSafe abstract class RhiEvent
An event implemented as an overlay of a JavaScript 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 | |
|---|---|
RhiEvent(RhiWindow window,
                 netscape.javascript.JSObject jsObject,
                 boolean isAsync)
 | 
|
| Method Summary | |
|---|---|
 boolean | 
getBubbles()
Not yet coded.  | 
 boolean | 
getCancelable()
Not yet coded.  | 
 EventTarget | 
getCurrentTarget()
Not yet coded.  | 
 short | 
getEventPhase()
Not yet coded.  | 
 EventTarget | 
getTarget()
 | 
 long | 
getTimeStamp()
Not yet coded.  | 
 String | 
getType()
 | 
static String | 
getType(Rhinohide rhinohide)
Returns the type of an event.  | 
 void | 
initEvent(String eventTypeArg,
                   boolean canBubbleArg,
                   boolean cancelableArg)
Not yet coded.  | 
 boolean | 
isAsync()
Returns true iff this event is to be asynchronously dispatched.  | 
 void | 
preventDefault()
 | 
 void | 
stopPropagation()
 | 
static RhiEvent | 
wrapEvent(RhiWindow window,
                   netscape.javascript.JSObject jsObject,
                   boolean isAsync)
Creates a RhiEvent.  | 
static RhiEvent | 
wrapEvent(RhiWindow window,
                   netscape.javascript.JSObject jsObject,
                   boolean isAsync,
                   String type)
Creates a RhiEvent of a specified event type.  | 
| 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 | 
| Constructor Detail | 
|---|
RhiEvent(RhiWindow window,
         netscape.javascript.JSObject jsObject,
         boolean isAsync)
| Method Detail | 
|---|
public static RhiEvent wrapEvent(RhiWindow window,
                                 netscape.javascript.JSObject jsObject,
                                 boolean isAsync)
window - global objectjsObject - bridge to underlying JavaScript event,
         per jsObject()isAsync - per isAsync()
StunnedRhinoException - if jsObject is non-null,
         and has no event 'type' property
public static RhiEvent wrapEvent(RhiWindow window,
                                 netscape.javascript.JSObject jsObject,
                                 boolean isAsync,
                                 String type)
window - global objectjsObject - bridge to underlying JavaScript event,
         per jsObject()isAsync - per isAsync()type - jsObject's event typepublic final boolean isAsync()
public final boolean getBubbles()
getBubbles in interface EventUnsupportedOperationExceptionpublic final boolean getCancelable()
getCancelable in interface EventUnsupportedOperationExceptionpublic final EventTarget getCurrentTarget()
getCurrentTarget in interface EventUnsupportedOperationExceptionpublic final short getEventPhase()
getEventPhase in interface EventUnsupportedOperationExceptionpublic final EventTarget getTarget()
getTarget in interface Eventpublic final long getTimeStamp()
getTimeStamp in interface EventUnsupportedOperationExceptionpublic final String getType()
getType in interface Eventpublic static String getType(Rhinohide rhinohide)
rhinohide - of JavaScript event
StunnedRhinoException - if jsObject is non-null,
         and has no event 'type' property
public final void initEvent(String eventTypeArg,
                            boolean canBubbleArg,
                            boolean cancelableArg)
initEvent in interface EventUnsupportedOperationExceptionpublic final void preventDefault()
preventDefault in interface EventUnsupportedOperationException - if this event
     is asynchronously dispatchedpublic final void stopPropagation()
stopPropagation in interface EventUnsupportedOperationException - if this event
     is asynchronously dispatched
  | 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||