All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

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

public class FlightRequestedEvent
extends EventObject
implements Serializable

This event is sent as a parameter in the FlightRequested() method of the FlightRequestedListener interface. In the demo this interface is implemented by the flight information data access part (DAP) bean and the itinerary bean. The flight selector bean is wired to the itinerary bean and the itinerary bean is wired to the flight information DAP bean. The user uses the flight selector bean to select a flight by highlighting the desired flight and then pushing the "OK" button. That action fires this event to the itinerary bean. When the user is satisfied with the selected itinerary, the user presses the "Ticket It" button which fires this event to the flight information DAP bean.

See Also:
FlightRequestedListener

Variable Index

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

Constructor Index

 o FlightRequestedEvent(Object, Vector)
Builds the event object that is sent as a parameter in the FlightRequested() method of the FlightRequestedListener 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 FlightRequestedEvent
 public FlightRequestedEvent(Object source,
                             Vector flightInfo)
Builds the event object that is sent as a parameter in the FlightRequested() method of the FlightRequestedListener 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