org.gnu.gtk.event

Class GtkEvent

Implemented Interfaces:
Serializable
Known Direct 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 Serializable

See Also:
FocusEvent, KeyEvent, LifeCycleEvent, MouseEvent

Nested Class Summary

Field Summary

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

Constructor Summary

GtkEvent(Object source, EventType type)
Construct a GtkEvent object with the specified source object and type.

Method Summary

Object
getSource()
Returns the object on which the event originally occured
EventType
getType()
String
toString()
Generates a string representation of the event.

Field Details

source

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


type

protected EventType type
The type of event

Constructor Details

GtkEvent

public GtkEvent(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.

Method Details

getSource

public 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 String toString()
Generates a string representation of the event. Useful for debugging applications.

Returns:
string representation of event.