|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.dom.events.EventWrapper
This class implements a wrapper for an Event. All the methods of the underlying document are called in a single thread.
Field Summary | |
protected DocumentWrapper |
documentWrapper
The associated document wrapper. |
protected Event |
event
The wrapped Event. |
Fields inherited from interface org.w3c.dom.events.Event |
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE |
Constructor Summary | |
EventWrapper(DocumentWrapper dw,
Event ev)
Creates a new EventWrapper. |
Method Summary | |
boolean |
getBubbles()
DOM: Implements Event.getBubbles() ; |
boolean |
getCancelable()
DOM: Implements Event.getCancelable() ; |
EventTarget |
getCurrentTarget()
DOM: Implements Event.getCurrentTarget() ; |
Event |
getEvent()
Returns the wrapped event. |
short |
getEventPhase()
DOM: Implements Event.getEventPhase() ; |
EventTarget |
getTarget()
DOM: Implements Event.getTarget() ; |
long |
getTimeStamp()
DOM: Implements Event.getTimeStamp() ; |
java.lang.String |
getType()
DOM: Implements Event.getType() ; |
void |
initEvent(java.lang.String type,
boolean bubble,
boolean cancel)
DOM: Implements Event.initEvent(String,boolean,boolean) ; |
void |
preventDefault()
DOM: Implements Event.preventDefault() ; |
void |
stopPropagation()
DOM: Implements Event.stopPropagation() ; |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected DocumentWrapper documentWrapper
protected Event event
Constructor Detail |
public EventWrapper(DocumentWrapper dw, Event ev)
Method Detail |
public Event getEvent()
public java.lang.String getType()
Event.getType()
;getType
in interface Event
public EventTarget getTarget()
Event.getTarget()
;getTarget
in interface Event
public EventTarget getCurrentTarget()
Event.getCurrentTarget()
;getCurrentTarget
in interface Event
public short getEventPhase()
Event.getEventPhase()
;getEventPhase
in interface Event
public boolean getBubbles()
Event.getBubbles()
;getBubbles
in interface Event
public boolean getCancelable()
Event.getCancelable()
;getCancelable
in interface Event
public long getTimeStamp()
Event.getTimeStamp()
;getTimeStamp
in interface Event
public void stopPropagation()
Event.stopPropagation()
;stopPropagation
in interface Event
public void preventDefault()
Event.preventDefault()
;preventDefault
in interface Event
public void initEvent(java.lang.String type, boolean bubble, boolean cancel)
Event.initEvent(String,boolean,boolean)
;initEvent
in interface Event
org.w3c.dom.events.Event
eventTypeArgSpecifies
- the event type. This type may be any
event type currently defined in this specification or a new event
type.. The string must be an XML name. Any new event type must not
begin with any upper, lower, or mixed case version of the string
"DOM". This prefix is reserved for future DOM event sets. It is
also strongly recommended that third parties adding their own
events use their own prefix to avoid confusion and lessen the
probability of conflicts with other new events.canBubbleArgSpecifies
- whether or not the event can bubble.cancelableArgSpecifies
- whether or not the event's default
action can be prevented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |