org.gnu.glib
Class GEvent
- Serializable
public class GEvent
extends java.lang.Object
implements Serializable
A base event class for capturing signals emitted by
GObjects..
protected Object | source- The object on which the event initially occurred.
|
protected EventType | type- The type of event
|
GEvent(Object source, EventType type)- Construct a GEvent object with the specified source object and type.
|
source
protected Object source
The object on which the event initially occurred.
type
protected EventType type
The type of event
GEvent
public GEvent(Object source,
EventType type) Construct a GEvent object with the specified source object and type.
source - the object where the event originated.type - the event type.
getSource
public Object getSource()
Returns the object on which the event originally occured
- Object on which the event originally occured
toString
public String toString()
Generates a string representation of the event. Useful for debugging
applications.
- string representation of event.