org.gnu.gtk.event

Class GtkEvent

public class GtkEvent extends Object implements Serializable

See Also: FocusEvent KeyEvent LifeCycleEvent MouseEvent

Constructor Summary
GtkEvent(Object source, EventType type)
Construct a GtkEvent object with the specified source object and type.
Method Summary
ObjectgetSource()
Returns the object on which the event originally occured
EventTypegetType()
StringtoString()
Generates a string representation of the event.

Constructor Detail

GtkEvent

public GtkEvent(Object source, EventType type)
Construct a GtkEvent object with the specified source object and type.

Parameters: source the object where the event originated. type the event type.

Throws: IllegalArgumentException if the source object is null

Method Detail

getSource

public Object getSource()
Returns the object on which the event originally occured

Returns: Object on which the event originally occured

getType

public EventType getType()

Returns: The type of the event.

toString

public String toString()
Generates a string representation of the event. Useful for debugging applications.

Returns: string representation of event.