[ https://issues.apache.org/jira/browse/PIVOT-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13965160#comment-13965160 ]
Sandro Martini commented on PIVOT-941: -------------------------------------- I agree with you, it would be better to do incompatible changes at least in 2.1, but discussing them in dev list and maybe related to the PIVOT-799 issue (or a new one) if not for 2.1 maybe for 2.5. And if it doesn't help in your (current) case, forget it for now :-) . Bye > 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)