|
Class: PluggableEventListener
Object
|
+--EventListener
|
+--PluggableEventListener
- Package:
- stx:libview2
- Category:
- Interface-Support-UI
- Version:
- rev:
1.2
date: 2014/09/23 11:36:30
- user: cg
- file: PluggableEventListener.st directory: libview2
- module: stx stc-classLibrary: libview2
- Author:
- Claus Gittinger
a preliminary version of a pluggable event listener.
can be configured via handler blocks.
WindowSensor
WindowEvent
WindowGroup
accessing
-
keyPressAction: aBlock
-
install a block as handler for keyPress events.
the block will get the windowEvent as argument,
and is supposed to return true if it handled the event,
false if not (so the event is processed as usual).
-
keyReleaseAction: aBlock
-
install a block as handler for keyRelease events.
the block will get the windowEvent as argument,
and is supposed to return true if it handled the event,
false if not (so the event is processed as usual).
event processing
-
processEvent: anEvent
-
process an event; if true is returned, the event is considered to be
'eaten' by the listener, and not passed to the view.
If false is returned, the event is processed as usual.
Here, the event is dispatched into one of the button*/key* etc. methods
|