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:
- Date
- Airline and flight number
- Departure info (city, airport code, time)
- Arrival info (city, airport code, time)
- Class
- Cost
-
ItineraryFlightSubInfo(Itinerary)
- Constructs an ItineraryFlightSubInfo object.
-
getDestinationCity()
- Gets the value of the destinationCity property.
-
getFlightDate()
- Retrives the value of the flightDate property.
-
getFlightInformation()
- Gets the value of the flightInformation property.
-
getOriginCity()
- Retrives the value of the originCity property.
-
markFlightReserved()
- Responds to the Itinerary when it receives a
FlightReservedEvent, by updating the display
to indicate that the displayed flight
has been reserved.
-
setDestinationCity(String)
- Sets the destinationCity property.
-
setFlightDate(Date)
- Sets the flightDate property.
-
setFlightInformation(FlightInformation)
- Responds to the Itinerary container by updating the flight information,
and its display, when a flight has been selected from the FlightInfoViewer.
-
setOriginCity(String)
- Sets the originCity property.
ItineraryFlightSubInfo
public ItineraryFlightSubInfo(Itinerary itin)
- Constructs an ItineraryFlightSubInfo object.
- Parameters:
- itin - Indicates the Itinerary object
that called the constructor (the container object).
setFlightDate
public void setFlightDate(Date flghtDte)
- Sets the flightDate property.
- Parameters:
- flghtDte - The new value of the flightDate property.
getFlightDate
public Date getFlightDate()
- Retrives the value of the flightDate property.
- Returns:
- The current value of the flightDate property is returned.
getOriginCity
public String getOriginCity()
- Retrives the value of the originCity property.
- Returns:
- The current value of the originCity property is returned.
setOriginCity
public void setOriginCity(String city)
- Sets the originCity property.
- Parameters:
- city - The new value of the originCity property.
getDestinationCity
public String getDestinationCity()
- Gets the value of the destinationCity property.
- Returns:
- The current value of the destinationCity property is returned.
setDestinationCity
public void setDestinationCity(String city)
- Sets the destinationCity property.
- Parameters:
- city - This parameter is the new value of the destinationCity property.
getFlightInformation
public FlightInformation getFlightInformation()
- Gets the value of the flightInformation property.
- Returns:
- The current value of the flightInformation property is returned.
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.
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