• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Display > Event Filters

5.4. Event Filters

An event filter is in essence a global untyped listener. Filtering an event is equivalent to adding a listener to every widget on a display. Filters run before the other event listeners, giving a filter the opportunity to modify the event or even stop the other listeners from running. To add a filter, use the following Display method.

addFilter(int eventType, Listener listener) Adds the listener to the collection of listeners that will be notified before any event of the given type is sent to any widget.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint