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
-
departDate
-
-
destinationCity
-
-
originCity
-
-
TravelInfoChangedEvent(Object, String, String, Date)
- Constructs a TravelInfoChangedEvent.
-
equals(Object)
- Determines whether two TravelInfoChangedEvent objects
are equivalent.
-
finalize()
- Responds to garbage collection to do uninitialization.
-
getDepartDate()
- The accessor for the departure date enterred by the user.
-
getDestinationCity()
- The accessor for the desination city enterred by the user.
-
getOriginCity()
- The accessor for the city of origin enterred by the user.
-
hashCode()
- Returns a hash code value for the object.
originCity
protected String originCity
destinationCity
protected String destinationCity
departDate
protected Date departDate
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.
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
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.
getDestinationCity
public String getDestinationCity()
- The accessor for the desination city enterred by the user.
- Returns:
- The destination city specified by the user is returned.
getDepartDate
public Date getDepartDate()
- The accessor for the departure date enterred by the user.
- Returns:
- The departure date specified by the user is returned.
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
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