org.gnu.glib
Class EventMap

java.lang.Object
  |
  +--org.gnu.glib.EventMap

public class EventMap
extends java.lang.Object

An EventMap is a Java-GNOME implementation class which encapsulates all static information that maps GTK signals to Java-GNOME events. There should be one private static EventMap for each Java-GNOME class which fires events. Besides reducing the code needed to add event handling to a widget instance, this mapping is needed by libglade to look up which event is associated with which signal for a given class. It should not be used by client code, however.

Author:
Tom Ball

Constructor Summary
EventMap()
           
 
Method Summary
 void addEvent(java.lang.String signal, java.lang.String method, GtkEventType eventType, java.lang.Class listenerClass)
           
 GtkEventType getEventType(java.lang.String signal)
          Get the event type for a given signal.
 java.lang.Class getListenerClass(java.lang.String signal)
          Return the event listener class for a given signal.
 void initialize(GObject source)
          Connect all event handlers to this event source.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventMap

public EventMap()
Method Detail

addEvent

public void addEvent(java.lang.String signal,
                     java.lang.String method,
                     GtkEventType eventType,
                     java.lang.Class listenerClass)

initialize

public void initialize(GObject source)
Connect all event handlers to this event source.


getListenerClass

public java.lang.Class getListenerClass(java.lang.String signal)
Return the event listener class for a given signal.


getEventType

public GtkEventType getEventType(java.lang.String signal)
Get the event type for a given signal.


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