javax.media
Class ControllerEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.media.MediaEvent
              |
              +--javax.media.ControllerEvent
Direct Known Subclasses:
AudioDeviceUnavailableEvent, CachingControlEvent, ControllerClosedEvent, DurationUpdateEvent, FormatChangeEvent, MediaTimeSetEvent, RateChangeEvent, StopTimeChangeEvent, TransitionEvent

public class ControllerEvent
extends 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

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.
 java.lang.String toString()
          Returns the String representation of this event's values.
 
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()
Overrides:
getSource in class java.util.EventObject

toString

public java.lang.String toString()
Returns the String representation of this event's values.
Overrides:
toString in class java.util.EventObject


Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.