public interface TimeEvent extends Event
TimeEvent interface provides specific contextual
information associated with Time events.AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE| Modifier and Type | Method and Description |
|---|---|
int |
getDetail()
Specifies some detail information about the
Event,
depending on the type of event. |
AbstractView |
getView()
The
view attribute identifies the AbstractView
from which the event was generated. |
void |
initTimeEvent(java.lang.String typeArg,
AbstractView viewArg,
int detailArg)
The
initTimeEvent method is used to initialize the value of
a TimeEvent created through the DocumentEvent
interface. |
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagationAbstractView getView()
view attribute identifies the AbstractView
from which the event was generated.int getDetail()
Event,
depending on the type of event.void initTimeEvent(java.lang.String typeArg,
AbstractView viewArg,
int detailArg)
initTimeEvent method is used to initialize the value of
a TimeEvent created through the DocumentEvent
interface. This method may only be called before the
TimeEvent has been dispatched via the
dispatchEvent method, though it may be called multiple
times during that phase if necessary. If called multiple times, the
final invocation takes precedence.
The different types of events that can occur are:
beginElement() or beginElementAt() methods. Note
that if an element is restarted while it is currently playing, the
element will raise an end event and another begin event, as the element
restarts.
endElement() or
endElementAt() methods. Note that if an element is restarted
while it is currently playing, the element will raise an end event and
another begin event, as the element restarts.
typeArg - Specifies the event type.viewArg - Specifies the Event's
AbstractView.detailArg - Specifies the Event's detail.