javax.tv.media
Class MediaSelectEvent
java.lang.Object
java.util.EventObject
javax.tv.media.MediaSelectEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- MediaSelectFailedEvent, MediaSelectSucceededEvent
public abstract class MediaSelectEvent
- extends EventObject
MediaSelectEvent is the base class of events sent to
MediaSelectListener instances.
- See Also:
MediaSelectListener,
Serialized Form
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.
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
Copyright © 2011. All Rights Reserved.