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.
javax.tv.service.guide
Class ProgramScheduleEvent
java.lang.Object
java.util.EventObject
javax.tv.service.SIChangeEvent
javax.tv.service.guide.ProgramScheduleEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ProgramScheduleEvent
- extends SIChangeEvent
A 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.
- See Also:
ProgramScheduleListener
,
ProgramScheduleChangeType
,
Serialized Form
Fields inherited from class java.util.EventObject |
source |
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 |
ProgramScheduleEvent
public ProgramScheduleEvent(ProgramSchedule schedule,
SIChangeType type,
ProgramEvent e)
- Constructs a
ProgramScheduleEvent
.
- Parameters:
schedule
- The schedule in which the change occurred.type
- The type of change that occurred.e
- The ProgramEvent
that changed.
getProgramSchedule
public ProgramSchedule getProgramSchedule()
- Reports the
ProgramSchedule
that generated the
event. The object returned will be identical to the object
returned by the inherited EventObject.getSource()
method.
- Returns:
- The
ProgramSchedule
that generated the event. - See Also:
EventObject.getSource()
getProgramEvent
public ProgramEvent getProgramEvent()
- Reports the
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
SIChangeEvent.getSIElement
method.
- Returns:
- The
ProgramEvent
that changed. - See Also:
SIChangeEvent.getSIElement()
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.