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.service.guide
Class ProgramScheduleEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.tv.service.SIChangeEvent
          extended byjavax.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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProgramScheduleEvent(ProgramSchedule schedule, SIChangeType type, ProgramEvent e)
          Constructs a ProgramScheduleEvent.
 
Method Summary
 ProgramEvent getProgramEvent()
          Reports the ProgramEvent that changed.
 ProgramSchedule getProgramSchedule()
          Reports the ProgramSchedule that generated the event.
 
Methods inherited from class javax.tv.service.SIChangeEvent
getChangeType, getSIElement
 
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

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.
Method Detail

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()

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.