You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Whitcomb (JIRA)" <ji...@apache.org> on 2014/04/08 18:48:17 UTC

[jira] [Created] (PIVOT-941) Allow random access to ListenerList elements with a "get" method

Roger Whitcomb created PIVOT-941:
------------------------------------

             Summary: Allow random access to ListenerList elements with a "get" method
                 Key: PIVOT-941
                 URL: https://issues.apache.org/jira/browse/PIVOT-941
             Project: Pivot
          Issue Type: Improvement
          Components: core-util
    Affects Versions: 2.0.3
         Environment: All
            Reporter: Roger Whitcomb
            Assignee: Roger Whitcomb
            Priority: Trivial
             Fix For: 2.0.4, 2.1


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



--
This message was sent by Atlassian JIRA
(v6.2#6252)