@DOMObjectAttribute @DOMNameAttribute(name="TimeEvent") public class TimeEvent extends Event
The TimeEvent interface provides specific contextual information associated with Time events.The different types of events that can occur are: beginEvent, endEvent and repeatEvent.
Event
Event.EventInit
AT_TARGET_PHASE, BUBBLING_PHASE, CAPTURING_PHASE, NONE_PHASE
PropertyChanged
Constructor and Description |
---|
TimeEvent(String type)
Initializes a new instance of the
Event class. |
TimeEvent(String type,
boolean bubbles,
boolean cancelable)
Initializes a new instance of the
Event class. |
Modifier and Type | Method and Description |
---|---|
long |
getDetail()
Specifies some detail information about the Event, depending on the type of the event.
|
IAbstractView |
getView()
The view attribute identifies the AbstractView [DOM2VIEWS] from which the event was generated.
|
void |
initTimeEvent(String typeArg,
IAbstractView viewArg,
long detailArg)
The initTimeEvent method is used to initialize the value of a TimeEvent created through the DocumentEvent interface.
|
createDOMContentLoadedEvent, createError, createEvent, createEvent, createEventByType, dispatch, getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getTarget, getTimeStamp, getType, initEvent, isTrusted, preventDefault, setCurrentTarget, setEventPhase, setTarget, stopImmediatePropagation, stopPropagation
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public TimeEvent(String type)
Initializes a new instance of the Event
class.
type
- The event type.@DOMNameAttribute(name="view") public IAbstractView getView()
The view attribute identifies the AbstractView [DOM2VIEWS] from which the event was generated.
Value: The current view.@DOMNameAttribute(name="detail") public long getDetail()
Specifies some detail information about the Event, depending on the type of the event. For this event type, indicates the repeat number for the animation.
Value: The detail.@DOMNameAttribute(name="initTimeEvent") public void initTimeEvent(String typeArg, IAbstractView viewArg, long detailArg)
The 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.
typeArg
- Specifies the event type.viewArg
- Specifies the Event's AbstractView.detailArg
- Specifies the Event's detail.