org.gnu.gtk.event
Class GtkEvent

java.lang.Object
  |
  +--org.gnu.gtk.event.GtkEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AdjustmentEvent, ButtonEvent, CalendarEvent, CellRendererTextEvent, CellRendererToggleEvent, ContainerEvent, DialogEvent, EditableEvent, EntryEvent, FocusEvent, KeyEvent, LifeCycleEvent, MenuItemEvent, MouseEvent, NotebookEvent, OptionMenuEvent, RangeEvent, ScaleEvent, SpinEvent, TextBufferEvent, TextViewEvent, ToggleEvent, TreeSelectionEvent, TreeViewColumnEvent, TreeViewEvent

public class GtkEvent
extends java.lang.Object
implements java.io.Serializable

Author:
Jeffrey S. Morgan The base event class for all Gtk events.
See Also:
FocusEvent, KeyEvent, LifeCycleEvent, MouseEvent, Serialized Form

Constructor Summary
GtkEvent(java.lang.Object source, GtkEventType type)
          Construct a GtkEvent object with the specified source object and type.
 
Method Summary
 java.lang.Object getSource()
          Returns the object on which the event originally occured
 GtkEventType getType()
           
 java.lang.String toString()
          Generates a string representation of the event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GtkEvent

public GtkEvent(java.lang.Object source,
                GtkEventType 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:
java.lang.IllegalArgumentException - if the source object is null
Method Detail

getSource

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

Returns:
Object on which the event originally occured

getType

public GtkEventType getType()
Returns:
The type of the event.

toString

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

Overrides:
toString in class java.lang.Object
Returns:
string representation of event.

Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net