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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.0.3
    • 2.0.4, 2.1
    • core-util
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment