javax.media
Class ControllerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.media.ControllerEvent
All Implemented Interfaces:
Serializable, MediaEvent
Direct Known Subclasses:
CachingControlEvent, ControllerClosedEvent, DurationUpdateEvent, MediaPresentedEvent, MediaTimeSetEvent, PresentationChangedEvent, RateChangeEvent, ResourceReturnedEvent, ResourceWithdrawnEvent, StopTimeChangeEvent, TransitionEvent

public class ControllerEvent
extends EventObject
implements MediaEvent

ControllerEvent is the base class for events generated by a Controller. These events are used by ControllerListener.

Version:
1.12, 05/10/17
See Also:
Controller, ControllerListener, MediaEvent, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ControllerEvent(Controller from)
           
 
Method Summary
 Object getSource()
          The object on which the Event initially occurred.
 Controller getSourceController()
          Get the Controller that posted this event.
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControllerEvent

public ControllerEvent(Controller from)
Method Detail

getSourceController

public Controller getSourceController()
Get the Controller that posted this event. The returned Controller has at least one active listener. (The addListener method has been called on the Controller).

Returns:
The Controller that posted this event.

getSource

public Object getSource()
Description copied from class: EventObject
The object on which the Event initially occurred.

Specified by:
getSource in interface MediaEvent
Overrides:
getSource in class EventObject
Returns:
The object on which the Event initially occurred.


Copyright © 2011. All Rights Reserved.