|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventTarget
This interface represents an event target, and is a subset of the EventTarget interface
defined in the
DOM Level 2 Event model.
This interface is implemented by an object (SVGElements) that can notify listeners about events and allows
registration and removal of EventListener
objects.
Method Summary | |
---|---|
void |
addEventListener(java.lang.String type,
EventListener listener,
boolean useCapture)
This method registers the specified listener with the event target. |
void |
removeEventListener(java.lang.String type,
EventListener listener,
boolean useCapture)
This method removes the specified listener from the event target. |
Method Detail |
---|
void addEventListener(java.lang.String type, EventListener listener, boolean useCapture)
type
- The type of event to listen to.listener
- Will be notified when an event of the desired type happens on this target or one of its descendant.useCapture
- If true, the listener will be called during the event flow capture phase. Otherwise, the listener
will be called during the bubble phase. If the event's target is this target, then the listener will be called during the 'at target' phase of event flow.
DOMException
- with error code NOT_SUPPORTED_ERR if useCapture is true since capture phase is not required in SVG Tiny and
implementations may not support registering listeners for the capture phase.
java.lang.NullPointerException
- if listener
is null.
java.lang.NullPointerException
- if type
is null.void removeEventListener(java.lang.String type, EventListener listener, boolean useCapture)
type
- The type of event that was listened to.listener
- The listener that was previously registered.useCapture
- If true, the listener was listening to events in the capture phase of event flow, otherwise the listener
was listening to events in the bubble phase.
DOMException
- with error code NOT_SUPPORTED_ERR if useCapture is true since capture phase is not required in SVG Tiny and
implementations may not support registering listeners for the capture phase.
java.lang.NullPointerException
- if listener
is null.
java.lang.NullPointerException
- if type
is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |