Class JPlaylist

All Implemented Interfaces:
DropTargetListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, PersistentList

public class JPlaylist extends JFileDropPanel implements PersistentList
Music playlist. This class presents a list of music files, allows new files to be added and files to be arranged, deleted and played Its state can be saved and restored with the current project. New with jAlbum 8.5.1 is that the play list appears as a tab separated string of paths to the chosen files Skin developers can easily parse this list into an array of strings by calling .split("\t") on it
Since:
7.2
See Also:
  • Constructor Details

    • JPlaylist

      public JPlaylist()
    • JPlaylist

      public JPlaylist(File[] files)
  • Method Details

    • getFileFilter

      public FileFilter getFileFilter()
    • setFileFilter

      public void setFileFilter(FileFilter ff)
    • setCurrentDirectory

      public void setCurrentDirectory(File dir)
    • getSelectedFile

      public File getSelectedFile()
    • getFileList

      public File[] getFileList()
    • clearFileList

      public void clearFileList()
    • addFileList

      public void addFileList(List<File> newFiles)
      Parameters:
      newFiles -
      Since:
      13.7
    • addFileList

      public void addFileList(File[] newFiles)
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • getModel

      public ListModel getModel()
      Get the backing model
      Since:
      15.2
    • addButton

      public void addButton(JButton toolbarButton)
    • play

      public void play()
    • stop

      public void stop()
    • getContent

      public List<String> getContent()
      PersistentList
      Specified by:
      getContent in interface PersistentList
    • setContent

      public void setContent(List<String> content)
      PersistentList
      Specified by:
      setContent in interface PersistentList
    • this_componentHidden

      public void this_componentHidden(ComponentEvent e)