Top Description Fields Constructors Methods
javafx.scene.media

public Class MediaErrorEvent

extends Event
Class Inheritance
Imports
javafx.event.Event, .EventTarget, .EventType

An Event representing the occurrence of an error in handling media.
Since
JavaFX 2.0

Field Summary

Modifier and TypeField and Description
private MediaException
error

The MediaException which provoked this error event.

public static final EventType<MediaErrorEvent>
MEDIA_ERROR

The only valid event type for the MediaErrorEvent.

private static final long
Inherited from javafx.event.Event:
ANYconsumedeventTypeNULL_SOURCE_TARGETtarget

Constructor Summary

AccessConstructor and Description
pack-priv
MediaErrorEvent(Object
the event source which sent the event
source
,
EventTarget
the event target to associate with the event
target
,
MediaException
the error which provoked the event
error
)

Construct a new MediaErrorEvent with the specified event source, target and error.

Method Summary

Modifier and TypeMethod and Description
public MediaErrorEvent
copyFor(Object newSource, EventTarget newTarget)

Overrides javafx.event.Event.copyFor.

Creates and returns a copy of this event with the specified event source and target.

public EventType<MediaErrorEvent>
getEventType()

Overrides javafx.event.Event.getEventType.

Gets the event type of this event.

public MediaException

Returns:

The MediaException
getMediaError
()

Retrieve the error associated with this event.

public String
toString()

Overrides java.util.EventObject.toString.

Retrieve a String representation of the event.

Inherited from javafx.event.Event:
cloneconsumefireEventgetTargetisConsumed

Field Detail

errorback to summary
private MediaException error

The MediaException which provoked this error event.

MEDIA_ERRORback to summary
public static final EventType<MediaErrorEvent> MEDIA_ERROR

The only valid event type for the MediaErrorEvent.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javafx.event.Event.serialVersionUID.

Constructor Detail

MediaErrorEventback to summary
pack-priv MediaErrorEvent(Object source, EventTarget target, MediaException error)

Construct a new MediaErrorEvent with the specified event source, target and error.

Parameters
source:Object

the event source which sent the event

target:EventTarget

the event target to associate with the event

error:MediaException

the error which provoked the event

Exceptions
IllegalArgumentException:
if error is null.

Method Detail

copyForback to summary
public MediaErrorEvent copyFor(Object newSource, EventTarget newTarget)

Overrides javafx.event.Event.copyFor.

Doc from javafx.event.Event.copyFor.

Creates and returns a copy of this event with the specified event source and target. If the source or target is set to null, it is replaced by the NULL_SOURCE_TARGET value.

Annotations
@Override
getEventTypeback to summary
public EventType<MediaErrorEvent> getEventType()

Overrides javafx.event.Event.getEventType.

Doc from javafx.event.Event.getEventType.

Gets the event type of this event. Objects of the same Event class can have different event types. These event types further specify what kind of event occurred.

Annotations
@Override
getMediaErrorback to summary
public MediaException getMediaError()

Retrieve the error associated with this event.

Returns:MediaException

The MediaException

toStringback to summary
public String toString()

Overrides java.util.EventObject.toString.

Retrieve a String representation of the event.

Annotations
@Override