Package org.w3c.dom.smil
Interface TimeEvent
-
- All Superinterfaces:
Event
public interface TimeEvent extends Event
TheTimeEvent
interface provides specific contextual information associated with Time events.- See Also:
- SMIL Animation.
-
-
Field Summary
-
Fields inherited from interface org.w3c.dom.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getDetail()
Specifies some detail information about theEvent
, depending on the type of event.AbstractView
getView()
Theview
attribute identifies theAbstractView
from which the event was generated.void
initTimeEvent(java.lang.String typeArg, AbstractView viewArg, int detailArg)
TheinitTimeEvent
method is used to initialize the value of aTimeEvent
created through theDocumentEvent
interface.-
Methods inherited from interface org.w3c.dom.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
-
-
-
-
Method Detail
-
getView
AbstractView getView()
Theview
attribute identifies theAbstractView
from which the event was generated.
-
getDetail
int getDetail()
Specifies some detail information about theEvent
, depending on the type of event.
-
initTimeEvent
void initTimeEvent(java.lang.String typeArg, AbstractView viewArg, int detailArg)
TheinitTimeEvent
method is used to initialize the value of aTimeEvent
created through theDocumentEvent
interface. This method may only be called before theTimeEvent
has been dispatched via thedispatchEvent
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:
- begin
- This event is raised when the element local timeline begins to play.
It will be raised each time the element begins the active duration (i.e.
when it restarts, but not when it repeats). It may be raised both in the
course of normal (i.e. scheduled or interactive) timeline play, as well
as in the case that the element was begun with the
beginElement()
orbeginElementAt()
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.- Bubbles: No
- Cancelable: No
- Context Info: None
- end
- This event is raised at the active end of the element. Note that
this event is not raised at the simple end of each repeat. This event
may be raised both in the course of normal (i.e. scheduled or
interactive) timeline play, as well as in the case that the element was
ended with the
endElement()
orendElementAt()
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.- Bubbles: No
- Cancelable: No
- Context Info: None
- repeat
- This event is raised when the element local timeline repeats. It
will be raised each time the element repeats, after the first
iteration.
The event provides a numerical indication of which repeat iteration is beginning. The value is a 0-based integer, but the repeat event is not raised for the first iteration and so the observed values of the detail attribute will be >= 1.- Bubbles: No
- Cancelable: No
- Context Info: detail (current iteration)
- Parameters:
typeArg
- Specifies the event type.viewArg
- Specifies theEvent
'sAbstractView
.detailArg
- Specifies theEvent
's detail.
-
-