|
GLG Toolkit, JavaScript Library
Version 4.6
|
Functions | |
| static boolean | IHCallCurrIH (GlgIHCallEvent call_event) |
| Passes an event to the current handler. More... | |
| static boolean | IHCallCurrIHWithModifToken (GlgIHCallEvent call_event, int token) |
| A variation on IHCallCurrIHWithToken that reuses an existing user interface event. More... | |
| static boolean | IHCallCurrIHWithToken (int token) |
| Passes a token to the current handler. More... | |
| static void | IHCallPrevIHWithModifToken (GlgIHCallEvent call_event, int token) |
| A variation on IHCallPrevIHWithToken that reuses an existing user interface event. More... | |
| static void | IHCallPrevIHWithToken (int token) |
| Passes the token to the parent handler of the currently active handler. More... | |
| static int | IHGetToken (GlgIHCallEvent call_event) |
| Returns a token associated with the MESSAGE_EVENT event. More... | |
| static GlgCallEventType | IHGetType (GlgIHCallEvent call_event) |
| Returns an event's type. More... | |
| static void | IHPassToken (GlgIHHandlerInterface handler_interface, int token, boolean uninstall) |
| Installs a handler, starts it and invokes its entry point with the specified token. More... | |
|
static |
Passes an event to the current handler.
| call_event | The user interface event to be passed. |
This method invokes the current handler's entry point with the specified user interface event.
|
static |
A variation on IHCallCurrIHWithToken that reuses an existing user interface event.
| call_event | The user interface event of the current handler that will be reused to pass the token. |
| token | The token to be passed. |
This method is the same as IHCallCurrIHWithToken, except that it reuses the existing event by setting its token instead of creating a new call event to pass the token to the handler.
|
static |
Passes a token to the current handler.
| token | The token to be passed. |
This method creates a call event object, uses it to pass the token to the entry point of the current handler and destroys the event object when done.
|
static |
A variation on IHCallPrevIHWithToken that reuses an existing user interface event.
| call_event | The user interface event of the current handler that will be reused to pass the token. |
| token | The token to be passed. |
This method is the same as IHCallPrevIHWithToken, except that it reuses the existing event by setting its token instead of creating a new call event to pass the token to the handler.
Note: When the parent handler is invoked, the current handler is not the parent handler but the handler that invoked it. Therefore, the parent handler cannot uninstall itself by simply calling IHUninstall.
|
static |
Passes the token to the parent handler of the currently active handler.
| token | The token to be passed. |
The parent handler is the handler preceding the current handler on the stack of installed handlers.
Note: When the parent handler is invoked, the current handler is not the parent handler but the handler that invoked it. Therefore, the parent handler cannot uninstall itself by simply calling IHUninstall.
|
static |
Returns a token associated with the MESSAGE_EVENT event.
| call_event | The user interface event the handler was invoked with. |
Tokens are application-defined integer values used to uniquely identify each user interaction event. For example, IH_OK token can be associated with pressing a dialog's OK button, and IH_MOUSE_MOVED can be used to identify a mouse move event that provides coordinates of the cursor. Integer values are used to allow efficient event processing using switch statements:
In a GLG application, Input and Trace callbacks are used to convert interface events to tokens, as shown in the DEMOS_HTML5/misc_demos/GlgDiagramgEditor.js file in the GLG installation directory. The tokens are then passed to the currently active handler via IHCallCurrIHWithToken.
|
static |
Returns an event's type.
| call_event | The user interface event a handler was invoked with. |
|
static |
Installs a handler, starts it and invokes its entry point with the specified token.
| handler_interface | A handler interface that implements functionality of the handler. |
| token | The token that will be passed to the handler. |
| uninstall |
|