org.gnu.gtk.event

Class GtkEvent

Implemented Interfaces:
Serializable
Known Direct Subclasses:
ActionEvent, AdjustmentEvent, ButtonEvent, CalendarEvent, CellEditableEvent, CellRendererTextEvent, CellRendererToggleEvent, CheckMenuItemEvent, ColorButtonEvent, ColorSelectionEvent, ComboBoxEvent, ConfigureEvent, ContainerEvent, DialogEvent, DragEvent, EntryCompletionEvent, EntryEvent, ExpanderEvent, ExposeEvent, FileChooserEvent, 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

Constructor Summary

GtkEvent(Object source, EventType type)
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Method Summary

Object
getSource()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
EventType
getType()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
String
toString()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Constructor Details

GtkEvent

public GtkEvent(Object source,
                EventType type)

Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

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()

Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

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; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns:
The type of the event.

toString

public String toString()

Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

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