[ 
https://issues.apache.org/jira/browse/PIVOT-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13963909#comment-13963909
 ] 

Sandro Martini commented on PIVOT-941:
--------------------------------------

Hi Roger, do you think it would be useful to add another version of add (or 
probably a new method with a little different name) so when you add a Listener 
you con get directly the related index number (so you don't need to search it) ?


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

Reply via email to