net.sf.fmj.ejmf.toolkit.media.event
Class ManagedControllerErrorEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.media.MediaEvent
          extended by javax.media.ControllerEvent
              extended by javax.media.ControllerClosedEvent
                  extended by javax.media.ControllerErrorEvent
                      extended by net.sf.fmj.ejmf.toolkit.media.event.ManagedControllerErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class ManagedControllerErrorEvent
extends ControllerErrorEvent

A ManagedControllerErrorEvent indicates that a Controller managed by a Player posted a ControllerErrorEvent and subsequently caused the managing Player to close. Class is used by AbstractPlayer. From the book: Essential JMF, Gordon, Talley (ISBN 0130801046). Used with permission.

Author:
Steve Talley & Rob Gordon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.media.ControllerClosedEvent
message
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ManagedControllerErrorEvent(Player manager, ControllerErrorEvent event)
          Create a ManagedControllerErrorEvent for the given managing Player and ControllerErrorEvent.
ManagedControllerErrorEvent(Player manager, ControllerErrorEvent event, java.lang.String message)
          Create a ManagedControllerErrorEvent for the given managing Player, ControllerErrorEvent, and description.
 
Method Summary
 ControllerErrorEvent getControllerErrorEvent()
          Get the original ControllerErrorEvent posted by the managed Controller.
 
Methods inherited from class javax.media.ControllerErrorEvent
toString
 
Methods inherited from class javax.media.ControllerClosedEvent
getMessage
 
Methods inherited from class javax.media.ControllerEvent
getSource, getSourceController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagedControllerErrorEvent

public ManagedControllerErrorEvent(Player manager,
                                   ControllerErrorEvent event)
Create a ManagedControllerErrorEvent for the given managing Player and ControllerErrorEvent.

Parameters:
manager - The managing Player.
event - The original ControllerErrorEvent posted by a managed Controller.

ManagedControllerErrorEvent

public ManagedControllerErrorEvent(Player manager,
                                   ControllerErrorEvent event,
                                   java.lang.String message)
Create a ManagedControllerErrorEvent for the given managing Player, ControllerErrorEvent, and description.

Parameters:
manager - The managing Player.
event - The original ControllerErrorEvent posted by a managed Controller.
message - A message describing the error.
Method Detail

getControllerErrorEvent

public ControllerErrorEvent getControllerErrorEvent()
Get the original ControllerErrorEvent posted by the managed Controller.