java::util::EventObject Class Reference

Inheritance diagram for java::util::EventObject:

Inheritance graph
java::awt::AWTEventjava::util::PropertyChangeEventjava::lang::Objectjava::awt::event::ActionEventjava::awt::event::AdjustmentEventjava::awt::event::ComponentEventjava::awt::event::HierarchyEventjava::awt::event::InvocationEventjava::awt::event::ItemEventjava::awt::event::TextEventjava::awt::event::ContainerEventjava::awt::event::FocusEventjava::awt::event::InputEventjava::awt::event::PaintEventjava::awt::event::WindowEventjava::awt::event::KeyEventjava::awt::event::MouseEventjava::awt::event::MouseWheelEvent
[legend]
Collaboration diagram for java::util::EventObject:

Collaboration graph
java::lang::Objectjava::lang::ObjectRefjava::lang::Interfacejava::lang::Comparable
[legend]

List of all members.


Detailed Description

The root class from which all event state objects shall be derived.

All Events are constructed with a reference to the object, the "source", that is logically deemed to be the object upon which the Event in question initially occurred upon.

Since:
JDK1.1

Public Member Functions

 EventObject (const ObjectRef &src=0)
 Constructs a prototypical Event.
virtual ObjectRef getSource () const
 The object on which the Event initially occurred.
virtual String toString () const
 Returns a String representation of this EventObject.

Protected Attributes

ObjectRef source
 The object on which the Event initially occurred.

Constructor & Destructor Documentation

java::util::EventObject::EventObject ( const ObjectRef src = 0  ) 

Constructs a prototypical Event.

Parameters:
source The object on which the Event initially occurred.


Member Function Documentation

virtual ObjectRef java::util::EventObject::getSource (  )  const [virtual]

The object on which the Event initially occurred.

Returns:
The object on which the Event initially occurred.

virtual String java::util::EventObject::toString (  )  const [virtual]

Returns a String representation of this EventObject.

Returns:
A a String representation of this EventObject.

Reimplemented from java::lang::Object.

Reimplemented in java::awt::AWTEvent, and java::awt::event::InvocationEvent.


Member Data Documentation

ObjectRef java::util::EventObject::source [protected]

The object on which the Event initially occurred.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:47 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3