org.gnu.gtk.event
Class GtkEvent
java.lang.Object
org.gnu.gtk.event.GtkEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known 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
Deprecated. This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. Signal handling an connection has been completely
re-implemented in java-gnome 4.0, so you will need to refactor
any code attempting to use this class.
public class GtkEvent
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
FocusEvent
,
KeyEvent
,
LifeCycleEvent
,
MouseEvent
,
Serialized Form
Constructor Summary |
GtkEvent(java.lang.Object source,
org.gnu.glib.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 |
java.lang.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. |
org.gnu.glib.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. |
java.lang.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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GtkEvent
public GtkEvent(java.lang.Object source,
org.gnu.glib.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.
- Throws:
java.lang.IllegalArgumentException
- if the source object is null
getSource
public java.lang.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 org.gnu.glib.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 java.lang.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.
- Overrides:
toString
in class java.lang.Object
- Returns:
- string representation of event.