org.gnu.glib

Class GEvent

public class GEvent 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. This class may have an equivalent in java-gnome 4.0, see org.gnome.glib.GEvent. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

A base event class for capturing signals emitted by GObjects..
Field Summary
protected Objectsource
The object on which the event initially occurred.
protected EventTypetype
The type of event
Constructor Summary
GEvent(Object source, EventType type)
Construct a GEvent 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.

Field Detail

source

protected Object source
The object on which the event initially occurred.

type

protected EventType type
The type of event

Constructor Detail

GEvent

public GEvent(Object source, EventType type)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Construct a GEvent 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; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

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; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns: The type of the event.

toString

public String toString()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

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

Returns: string representation of event.