All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.demos.travel.flight.FlightReservedEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.ibm.beans.demos.travel.flight.FlightReservedEvent

public class FlightReservedEvent
extends EventObject
implements Serializable

This event is sent as a parameter in the FlightReserved() method of the FlightReservedListener interface. In the demo this interface is implemented by the initerary bean. The itinerary bean is wired to the flight information data access part (DAP) bean and the information DAP fires this event when a flight reservation has been approved.

See Also:
FlightReservedListener

Variable Index

 o flightInfo
A Vector of flightInfo including city of origin, destination, travel times, and so forth.

Constructor Index

 o FlightReservedEvent(Object, Vector)
Builds the event object that is sent as a parameter in the FlightReserved method of the FlightReservedListener interface.

Method Index

 o getFlightInfo()
Gets the FlightInfo vector.

Variables

 o flightInfo
 protected Vector flightInfo
A Vector of flightInfo including city of origin, destination, travel times, and so forth.

Constructors

 o FlightReservedEvent
 public FlightReservedEvent(Object source,
                            Vector flightInfo)
Builds the event object that is sent as a parameter in the FlightReserved method of the FlightReservedListener interface.

Parameters:
source - An object that is the source for the event.
flightInfo -
A vector containing a FlightInformation object as defined in the FlightInformation class.
See Also:
FlightInformation

Methods

 o getFlightInfo
 public Vector getFlightInfo()
Gets the FlightInfo vector.

Returns:
Vector of flight informatation

All Packages  Class Hierarchy  This Package  Previous  Next  Index