|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Rhinohide 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' propertypublic 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 Event
UnsupportedOperationException
public final boolean getCancelable()
getCancelable
in interface Event
UnsupportedOperationException
public final EventTarget getCurrentTarget()
getCurrentTarget
in interface Event
UnsupportedOperationException
public final short getEventPhase()
getEventPhase
in interface Event
UnsupportedOperationException
public final EventTarget getTarget()
getTarget
in interface Event
public final long getTimeStamp()
getTimeStamp
in interface Event
UnsupportedOperationException
public final String getType()
getType
in interface Event
public static String getType(Rhinohide rhinohide)
rhinohide
- of JavaScript event
StunnedRhinoException
- if jsObject is non-null,
and has no event 'type' propertypublic final void initEvent(String eventTypeArg, boolean canBubbleArg, boolean cancelableArg)
initEvent
in interface Event
UnsupportedOperationException
public final void preventDefault()
preventDefault
in interface Event
UnsupportedOperationException
- if this event
is asynchronously dispatchedpublic final void stopPropagation()
stopPropagation
in interface Event
UnsupportedOperationException
- if this event
is asynchronously dispatched
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |