Interface PlayListIterator<T>

    • Method Detail

      • getPlayListId

        Long getPlayListId()
        Returns a persistent playlist id. Together with getComponent() you may use this id to identify the playlist view or actual persistent playlist this iterator was created for.
        Returns:
        playlist id or null, if the playlist is not persistent
      • getComponent

        JComponent getComponent()
        The component the playlist is displayed in. Together with getPlayListId() you may use this component (most likely a JTable) to identify the playlist view or actual persistent playlist this iterator was created for.
        Returns:
        component, may be null, if the playlist is currently not displayed
      • setComponent

        void setComponent​(JComponent component)
        Set the component the playlists is played in.
        Parameters:
        component - component
        See Also:
        getComponent()
      • currentIndex

        int currentIndex()
        The index of the song last returned by ListIterator.next() or ListIterator.previous(). The index may change, as the underlying playlist is sorted, filtered or changed otherwise.
        Returns:
        index
      • reset

        void reset()
        Resets the iterator so that the next call to ListIterator.next() returns the first element of the collection this iterator is based on.
      • dispose

        void dispose()
        Cleans up an resources held by this iterator. It is strongly recommended you call this method, once you don't need the iterator anymore.