org.gnu.gtk.event

Class GtkEvent

public class GtkEvent extends Object implements Serializable

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. Signal handling an connection has been completely re-implemented in java-gnome 4.0, so you will need to refactor any code attempting to use this class.

See Also: FocusEvent KeyEvent LifeCycleEvent

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)

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

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()

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns the object on which the event originally occured

Returns: Object on which the event originally occured

getType

public EventType getType()

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns: The type of the event.

toString

public String toString()

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Generates a string representation of the event. Useful for debugging applications.

Returns: string representation of event.