Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.gnu.glib.EventMap
public class EventMap
extends java.lang.Object
Method Summary | |
void | |
void | |
Class |
|
EventType |
|
void |
|
void |
|
void |
|
void |
|
public void addEvent(String signal, String method, EventType eventType, Class listenerClass)
public void addEvent(EventType eventType, Class listenerClass)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Adds an event to the EventMap. This is a convenience method that usesaddEvent(String,String,EventType,Class)
internally. It gets the signal name by callingEventType.getName()
and it expects the callback method to be named in a very specific format. It should start with 'handle' and then be followed by the signal name in camel case format.
For example, if the signal name is 'file-activated', the generated method name will be 'handleFileActivated'.
- Parameters:
eventType
-listenerClass
-
public Class getEventListenerClass(String signal)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Return the event listener class for a given signal.
public EventType getEventType(String signal)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Get the event type for a given signal.
public void initialize(GObject source)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Connect all event handlers to this event source.
public void initialize(GObject source, EventType type)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Connect an event handler of the type provided.
public void initialize(GObject source, EventType type, boolean shouldCopyIfBoxed)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Connect an event handler of the type provided.
public void uninitialize(GObject source, EventType type)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Disconnect an event handler of the type provided.