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.tv.media
Class MediaSelectEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.tv.media.MediaSelectEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MediaSelectFailedEvent, MediaSelectSucceededEvent

public abstract class MediaSelectEvent
extends java.util.EventObject

MediaSelectEvent is the base class of events sent to MediaSelectListener instances.

See Also:
MediaSelectListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MediaSelectEvent(Controller controller, Locator[] selection)
          Creates a new MediaSelectEvent.
 
Method Summary
 Controller getController()
          Reports the Controller that generated this event.
 Locator[] getSelection()
          Reports the selection that caused this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediaSelectEvent

public MediaSelectEvent(Controller controller,
                        Locator[] selection)
Creates a new MediaSelectEvent.

Parameters:
controller - The Controller that generated this event.
selection - The Locator instances on which selection was attempted.
Method Detail

getController

public Controller getController()
Reports the Controller that generated this event.

Returns:
The Controller that generated this event.

getSelection

public Locator[] getSelection()
Reports the selection that caused this event. This corresponds to the service component(s) specified as parameters of the MediaSelectControl methods add(Locator), remove(Locator), select(Locator) and select(Locator[]), and the paramter toComponent of the method replace(fromComponent, toComponent).

Returns:
The selection that caused this event.
See Also:
MediaSelectControl

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.