Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-927 (Maintenance Release)

javax.media
Class ControllerEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.media.ControllerEvent
All Implemented Interfaces:
MediaEvent, java.io.Serializable
Direct Known Subclasses:
CachingControlEvent, ControllerClosedEvent, DurationUpdateEvent, MediaTimeSetEvent, RateChangeEvent, StopTimeChangeEvent, TransitionEvent

public class ControllerEvent
extends java.util.EventObject
implements MediaEvent

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

See Also:
Controller, ControllerListener, MediaEvent, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ControllerEvent(Controller from)
           
 
Method Summary
 java.lang.Object getSource()
           
 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 java.lang.Object getSource()
Specified by:
getSource in interface MediaEvent

JSR-927 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 927 specification.