All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.demos.travel.ItineraryFlightSubInfo

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.ibm.beans.demos.travel.ItineraryFlightSubInfo

public class ItineraryFlightSubInfo
extends Panel
implements Serializable
The ItineraryFlightSubInfo class displays a leg of a flight with "clickable" text.

The ItineraryFlightSubInfo contains:

  1. Date
  2. Airline and flight number
  3. Departure info (city, airport code, time)
  4. Arrival info (city, airport code, time)
  5. Class
  6. Cost


Constructor Index

 o ItineraryFlightSubInfo(Itinerary)
Constructs an ItineraryFlightSubInfo object.

Method Index

 o getDestinationCity()
Gets the value of the destinationCity property.
 o getFlightDate()
Retrives the value of the flightDate property.
 o getFlightInformation()
Gets the value of the flightInformation property.
 o getOriginCity()
Retrives the value of the originCity property.
 o markFlightReserved()
Responds to the Itinerary when it receives a FlightReservedEvent, by updating the display to indicate that the displayed flight has been reserved.
 o setDestinationCity(String)
Sets the destinationCity property.
 o setFlightDate(Date)
Sets the flightDate property.
 o setFlightInformation(FlightInformation)
Responds to the Itinerary container by updating the flight information, and its display, when a flight has been selected from the FlightInfoViewer.
 o setOriginCity(String)
Sets the originCity property.

Constructors

 o ItineraryFlightSubInfo
 public ItineraryFlightSubInfo(Itinerary itin)
Constructs an ItineraryFlightSubInfo object.

Parameters:
itin - Indicates the Itinerary object that called the constructor (the container object).

Methods

 o setFlightDate
 public void setFlightDate(Date flghtDte)
Sets the flightDate property.

Parameters:
flghtDte - The new value of the flightDate property.
 o getFlightDate
 public Date getFlightDate()
Retrives the value of the flightDate property.

Returns:
The current value of the flightDate property is returned.
 o getOriginCity
 public String getOriginCity()
Retrives the value of the originCity property.

Returns:
The current value of the originCity property is returned.
 o setOriginCity
 public void setOriginCity(String city)
Sets the originCity property.

Parameters:
city - The new value of the originCity property.
 o getDestinationCity
 public String getDestinationCity()
Gets the value of the destinationCity property.

Returns:
The current value of the destinationCity property is returned.
 o setDestinationCity
 public void setDestinationCity(String city)
Sets the destinationCity property.

Parameters:
city - This parameter is the new value of the destinationCity property.
 o getFlightInformation
 public FlightInformation getFlightInformation()
Gets the value of the flightInformation property.

Returns:
The current value of the flightInformation property is returned.
 o setFlightInformation
 public void setFlightInformation(FlightInformation fi)
Responds to the Itinerary container by updating the flight information, and its display, when a flight has been selected from the FlightInfoViewer.

Parameters:
fi - The FlightInformation object that encapsulates the details of the selected flight.
 o markFlightReserved
 public void markFlightReserved()
Responds to the Itinerary when it receives a FlightReservedEvent, by updating the display to indicate that the displayed flight has been reserved. This is done by making the "RESERVED" label visible.


All Packages  Class Hierarchy  This Package  Previous  Next  Index