All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.demos.travel.TravelInfoChangedEvent

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

public class TravelInfoChangedEvent
extends EventObject
implements Serializable

This class describes the event that gets generated by the Itinerary bean when the user submits all travel selections.

See Also:
TravelInfoChangedListener

Variable Index

 o departDate
 o destinationCity
 o originCity

Constructor Index

 o TravelInfoChangedEvent(Object, String, String, Date)
Constructs a TravelInfoChangedEvent.

Method Index

 o equals(Object)
Determines whether two TravelInfoChangedEvent objects are equivalent.
 o finalize()
Responds to garbage collection to do uninitialization.
 o getDepartDate()
The accessor for the departure date enterred by the user.
 o getDestinationCity()
The accessor for the desination city enterred by the user.
 o getOriginCity()
The accessor for the city of origin enterred by the user.
 o hashCode()
Returns a hash code value for the object.

Variables

 o originCity
 protected String originCity
 o destinationCity
 protected String destinationCity
 o departDate
 protected Date departDate

Constructors

 o TravelInfoChangedEvent
 public TravelInfoChangedEvent(Object source,
                               String originCity,
                               String destinationCity,
                               Date departDate)
Constructs a TravelInfoChangedEvent.

Parameters:
source -
The object that is creating this event.
originCity -
The city that the traveler is starting from.
destinationCity -
The city to which the user is travelling.
departDate -
The date on which travel will commence.

Methods

 o finalize
 protected void finalize() throws Throwable
Responds to garbage collection to do uninitialization.

Throws: Throwable
Contains information regarding any error conditions that may occur during finalization.
Overrides:
finalize in class Object
 o getOriginCity
 public String getOriginCity()
The accessor for the city of origin enterred by the user.

Returns:
The city of origin specified by the user is returned.
 o getDestinationCity
 public String getDestinationCity()
The accessor for the desination city enterred by the user.

Returns:
The destination city specified by the user is returned.
 o getDepartDate
 public Date getDepartDate()
The accessor for the departure date enterred by the user.

Returns:
The departure date specified by the user is returned.
 o equals
 public boolean equals(Object o)
Determines whether two TravelInfoChangedEvent objects are equivalent.

Parameters:
o - The reference object with which to compare.
Returns:
Returns true if the reference object is the same as this object, false otherwise.
Overrides:
equals in class Object
 o hashCode
 public int hashCode()
Returns a hash code value for the object.

Returns:
The hash code value is returned.
Overrides:
hashCode in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index