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. |
getSource
public static final EventType<MediaErrorEvent> MEDIA_ERROR
MediaErrorEvent
.public MediaException getMediaError()
MediaException
public String toString()
String
representation of the event.toString
in class EventObject
public MediaErrorEvent copyFor(Object newSource, EventTarget newTarget)
Event
null
, it is
replaced by the NULL_SOURCE_TARGET
value.public EventType<MediaErrorEvent> getEventType()
Event
Event
class can have different event types. These event types further specify
what kind of event occurred.getEventType
in class Event
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.