eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'PluggableEventListener':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: PluggableEventListener


Inheritance:

   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

Description:


a preliminary version of a pluggable event listener.
can be configured via handler blocks.


Related information:

    WindowSensor
    WindowEvent
    WindowGroup

Instance protocol:

accessing
o  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).

o  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
o  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



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 19 Sep 2018 07:17:59 GMT