public class ProgramScheduleEvent extends SIChangeEvent
ProgramScheduleEvent notifies an
ProgramScheduleListener of changes to program events
detected in a ProgramSchedule. Specifically, this
event signals the addition, removal, or modification of a
ProgramEvent in a ProgramSchedule, or a
change to the ProgramEvent that is current.
The class ProgramScheduleChangeType defines the kinds
of changes reported by ProgramScheduleEvent. A
ProgramScheduleChangeType of
CURRENT_PROGRAM_EVENT indicates that the current
ProgramEvent of a ProgramSchedule has
changed in identity.
source| Constructor and Description |
|---|
ProgramScheduleEvent(ProgramSchedule schedule,
SIChangeType type,
ProgramEvent e)
Constructs a
ProgramScheduleEvent. |
| Modifier and Type | Method and Description |
|---|---|
ProgramEvent |
getProgramEvent()
Reports the
ProgramEvent that changed. |
ProgramSchedule |
getProgramSchedule()
Reports the
ProgramSchedule that generated the
event. |
getChangeType, getSIElementgetSource, toStringpublic ProgramScheduleEvent(ProgramSchedule schedule, SIChangeType type, ProgramEvent e)
ProgramScheduleEvent.schedule - The schedule in which the change occurred.type - The type of change that occurred.e - The ProgramEvent that changed.public ProgramSchedule getProgramSchedule()
ProgramSchedule that generated the
event. The object returned will be identical to the object
returned by the inherited EventObject.getSource()
method.ProgramSchedule that generated the event.EventObject.getSource()public ProgramEvent getProgramEvent()
ProgramEvent that changed. If the
ProgramScheduleChangeType is
CURRENT_PROGRAM_EVENT, the ProgramEvent
that became current will be returned. The object returned will
be identical to the object returned by inherited
SIEvent.getSIElement method.ProgramEvent that changed.SIChangeEvent.getSIElement()Copyright © 2012 code4tv.com. All Rights Reserved.