#include "listeners.h"
Include dependency graph for listeners.c:
Go to the source code of this file.
Defines | |
#define | CLS_CBACTIONLISTENER "at/fhv/sgr/guilib/listeners/CBActionListener" |
Defines the full name of the CBActionListener-Class. | |
#define | CLS_CBCOMPONENTLISTENER "at/fhv/sgr/guilib/listeners/CBComponentListener" |
Defines the full name of the CBComponentListener-Class. | |
#define | CLS_CBITEMLISTENER "at/fhv/sgr/guilib/listeners/CBItemListener" |
Defines the full name of the CBItemListener-Class. | |
#define | CLS_CBMOUSELISTENER "at/fhv/sgr/guilib/listeners/CBMouseListener" |
Defines the full name of the CBMouseListener-Class. | |
#define | CLS_CBWINDOWLISTENER "at/fhv/sgr/guilib/listeners/CBWindowListener" |
Defines the full name of the CBWindowListener-Class. | |
Functions | |
ActionListener | addActionListener (jobject obj, void(*func)(Component)) |
Adds an ActionListener for a Component to call back the specified function. | |
ComponentListener | addComponentListener (jobject obj, void(*func)(jint, Component)) |
Adds a ComponentListener for a Component to call back the specified function. | |
ItemListener | addItemListener (jobject obj, void(*func)(Component, jboolean, const char *)) |
Adds a ItemListener for a Component to call back the specified function. | |
MouseListener | addMouseListener (jobject obj, void(*func)(jint, Component, jint, jint, jint, jint)) |
Adds a MouseListener for a Component to call back the specified function. | |
WindowListener | addWindowListener (jobject obj, void(*func)(jint, Window)) |
Adds a WindowListener for a Window to call back the specified function. | |
void | cbActionListener (JNIEnv *env, jobject jobj, jlong ptr, jobject source) |
ActionListener callback function. | |
void | cbComponentListener (JNIEnv *env, jobject jobj, jlong ptr, jint event, jobject source) |
ComponentListener callback function. | |
void | cbItemListener (JNIEnv *env, jobject jobj, jlong ptr, jobject source, jboolean selected, jobject item) |
ItemListener callback function. | |
void | cbMouseListener (JNIEnv *env, jobject jobj, jlong ptr, jint event, jobject window, jint x, jint y, jint button, jint clickCount) |
MouseListener callback function. | |
void | cbWindowListener (JNIEnv *env, jobject jobj, jlong ptr, jint event, jobject window) |
WindowListener callback function. | |
void | removeActionListener (jobject obj, ActionListener al) |
Removes an ActionListener from a Component and deletes the global reference to the ActionListener. | |
void | removeComponentListener (jobject obj, ComponentListener cl) |
Removes a ComponentListener from a Component and deletes the global reference to the ComponentListener. | |
void | removeItemListener (jobject obj, ItemListener il) |
Removes a ItemListener from a Component and deletes the global reference to the MouseListener. | |
void | removeMouseListener (jobject obj, MouseListener ml) |
Removes a MouseListener from a Component and deletes the global reference to the MouseListener. | |
void | removeWindowListener (jobject obj, WindowListener wl) |
Removes a WindowListener from a Window and deletes the global reference to the WindowListener. |
In Java Listeners are objects which want to get informed about specific events. In this library callback functions where used to get informed about events. These functions allow to register the callback functions as listeners. The callback functions must have a certain signature depending on the event(s) you want to get informed about.
Definition in file listeners.c.
|
Defines the full name of the CBActionListener-Class.
Definition at line 31 of file listeners.c. |
|
Defines the full name of the CBComponentListener-Class.
Definition at line 28 of file listeners.c. |
|
Defines the full name of the CBItemListener-Class.
Definition at line 34 of file listeners.c. |
|
Defines the full name of the CBMouseListener-Class.
Definition at line 25 of file listeners.c. |
|
Defines the full name of the CBWindowListener-Class.
Definition at line 22 of file listeners.c. |
|
Adds an ActionListener for a Component to call back the specified function. The parameters of the function pointer are:
Definition at line 285 of file listeners.c. |
|
Adds a ComponentListener for a Component to call back the specified function. The parameters of the function pointer are:
Definition at line 137 of file listeners.c. |
|
Adds a ItemListener for a Component to call back the specified function. The parameters of the function pointer are:
Definition at line 359 of file listeners.c. |
|
Adds a MouseListener for a Component to call back the specified function. The parameters of the function pointer are:
Definition at line 216 of file listeners.c. |
|
Adds a WindowListener for a Window to call back the specified function. The parameters of the function pointer are:
Definition at line 66 of file listeners.c. |
|
ActionListener callback function. Called from a Java CBActionListener Object. The function calls the function of the pointer.
Definition at line 266 of file listeners.c. |
|
ComponentListener callback function. Called from a Java CBComponentListener Object. The function calls the function of the pointer.
Definition at line 117 of file listeners.c. |
|
ItemListener callback function. Called from a Java CBMouseListener Object. The function calls the function of the pointer.
Definition at line 337 of file listeners.c. |
|
MouseListener callback function. Called from a Java CBMouseListener Object. The function calls the function of the pointer.
Definition at line 192 of file listeners.c. |
|
WindowListener callback function. Called from a Java CBWindowListener Object. The function calls the function of the pointer.
Definition at line 46 of file listeners.c. |
|
Removes an ActionListener from a Component and deletes the global reference to the ActionListener.
Definition at line 318 of file listeners.c. |
|
Removes a ComponentListener from a Component and deletes the global reference to the ComponentListener.
Definition at line 170 of file listeners.c. |
|
Removes a ItemListener from a Component and deletes the global reference to the MouseListener.
Definition at line 392 of file listeners.c. |
|
Removes a MouseListener from a Component and deletes the global reference to the MouseListener.
Definition at line 249 of file listeners.c. |
|
Removes a WindowListener from a Window and deletes the global reference to the WindowListener.
Definition at line 99 of file listeners.c. |