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

Allow random access to ListenerList elements with a "get" method

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4, 2.1
    • Component/s: core-util
    • Labels:
      None
    • Environment:
      All

      Description

      I'm finding that sometimes I need quick access to a particular listener (for instance, the one I added to a component vs. the one added by the skin), and for this instead of iterating through the list I would like to just get a particular one. Most Java lists allow arbitrary access to a particular element, so I propose adding a "get(int)" method to the ListenerList class that returns the particular element (if it exists).

        Attachments

          Activity

            People

            • Assignee:
              rwhitcomb Roger Lee Whitcomb
              Reporter:
              rwhitcomb Roger Lee Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: