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

Chapter 5. Display > Events and Listeners

5.3. Events and Listeners

In the same manner as widgets, displays send events using untyped listeners.

addListener(int event, Listener listener) Adds the listener to the collection of listeners that will be notified when an event of the given type occurs. When the event occurs in the display, the listener is notified by calling its handleEvent() method.

removeListener(int event, Listener listener) Removes the listener from the collection of listeners that will be notified when an event of the given type occurs.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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