org.gnu.gtk.event
Class GtkEvent

java.lang.Object
  extended byorg.gnu.gtk.event.GtkEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AdjustmentEvent, ButtonEvent, CalendarEvent, CellEditableEvent, CellRendererTextEvent, CellRendererToggleEvent, CheckMenuItemEvent, ColorButtonEvent, ColorSelectionEvent, ComboBoxEvent, ContainerEvent, DialogEvent, EntryCompletionEvent, EntryEvent, ExpanderEvent, ExposeEvent, FocusEvent, FontButtonEvent, HandleBoxEvent, IconViewEvent, ItemEvent, KeyEvent, LifeCycleEvent, MenuItemEvent, MouseEvent, MouseMotionEvent, NotebookEvent, OptionMenuEvent, RangeEvent, ScaleEvent, SpinEvent, StatusBarEvent, TextBufferEvent, TextViewEvent, ToggleEvent, ToggleToolButtonEvent, ToolBarEvent, ToolButtonEvent, TreeModelEvent, TreeSelectionEvent, TreeViewColumnEvent, TreeViewEvent, UIManagerEvent

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

See Also:
FocusEvent, KeyEvent, LifeCycleEvent, MouseEvent, Serialized Form

Field Summary
protected  java.lang.Object source
          The object on which the event initially occurred.
protected  EventType type
          The type of event
 
Constructor Summary
GtkEvent(java.lang.Object source, EventType 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
 EventType getType()
           
 java.lang.String toString()
          Generates a string representation of the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected EventType type
The type of event


source

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

Constructor Detail

GtkEvent

public GtkEvent(java.lang.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:
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 EventType getType()
Returns:
The type of the event.

toString

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

Returns:
string representation of event.