public class MediaErrorEvent extends Event
Event representing the occurrence of an error in handling media.| Modifier and Type | Field and Description |
|---|---|
private MediaException |
error
The
MediaException which provoked this error event. |
static EventType<MediaErrorEvent> |
MEDIA_ERROR
The only valid event type for the
MediaErrorEvent. |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
MediaErrorEvent(java.lang.Object source,
EventTarget target,
MediaException error)
Construct a new
MediaErrorEvent with the specified event
source, target and error. |
| Modifier and Type | Method and Description |
|---|---|
MediaErrorEvent |
copyFor(java.lang.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.
|
java.lang.String |
toString()
Retrieve a
String representation of the event. |
private static final long serialVersionUID
public static final EventType<MediaErrorEvent> MEDIA_ERROR
MediaErrorEvent.private MediaException error
MediaException which provoked this error event.MediaErrorEvent(java.lang.Object source,
EventTarget target,
MediaException error)
MediaErrorEvent with the specified event
source, target and error.source - the event source which sent the eventtarget - the event target to associate with the eventerror - the error which provoked the eventIllegalArgumentException - if error is
null.public MediaException getMediaError()
MediaExceptionpublic java.lang.String toString()
String representation of the event.toString in class java.util.EventObjectpublic MediaErrorEvent copyFor(java.lang.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 Event