public class MediaErrorEvent extends Event
Event representing the occurrence of an error in handling media.| Modifier and Type | Field and Description |
|---|---|
static EventType<MediaErrorEvent> |
MEDIA_ERROR
The only valid event type for the
MediaErrorEvent. |
source| Modifier and Type | Method and Description |
|---|---|
MediaErrorEvent |
copyFor(Object newSource,
EventTarget newTarget)
Creates and returns a copy of this event with the specified event source
and target.
|
EventType<MediaErrorEvent> |
getEventType()
Gets the event type of this event.
|
MediaException |
getMediaError()
Retrieve the error associated with this event.
|
String |
toString()
Retrieve a
String representation of the event. |
getSourcepublic static final EventType<MediaErrorEvent> MEDIA_ERROR
MediaErrorEvent.public MediaException getMediaError()
MediaExceptionpublic String toString()
String representation of the event.toString in class EventObjectpublic MediaErrorEvent copyFor(Object newSource, EventTarget newTarget)
Eventnull, it is
replaced by the NULL_SOURCE_TARGET value.public EventType<MediaErrorEvent> getEventType()
EventEvent
class can have different event types. These event types further specify
what kind of event occurred.getEventType in class EventCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.