Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-884

Add support for dynamic construction of ListenerList<CustomListener>

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 2.5
    • core-beans
    • None

    Description

      As a Pivot application developer I would like to have option to dynamically create ListenerList implementation to support my custom Listener interface. I do not want to implement for each application Listener interface event dispatching logic. I use custom Listener interfaces to enable property binding between my application model classes and Pivot components in BXML.

      I implemented prototype of org.apache.pivot.util.listener.DynaListenerList class, which accepts Listener interface in constructor and provides event dispatcher in getEventDispatcher() method. Source will be attached, please consider this functionality in next Pivot release.

      Attachments

        1. Pivot-sample.zip
          15 kB
          Karel Hübl

        Activity

          People

            rwhitcomb Roger Lee Whitcomb
            kaja78 Karel Hübl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: