All Implemented Interfaces:
TabTree, ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class LikeList extends FileList
A type of non-removable FileList viewable.

This represents the liked tracks the user's liked tracks.

In order to do such, everything here is handled as a "Virtual Folder" meaning that its just a list of folders to keep.

This viewport is static meaning the user cannot close this.

Since:
3.1
Author:
Jack Meng
See Also:
  • Field Details

  • Constructor Details

    • LikeList

      public LikeList()
      Inits the LikeList object as a child of the FileList class with a Virtual Folder to represent this viewport.
  • Method Details

    • unset

      public void unset(String file)
      Removes a track from the liked list listing.
      Parameters:
      file - The file's absolute path to remove from.
    • set

      public void set(String file)
      Adss a track to the liked list listing.
      Parameters:
      file - The file's absolute path to add.
    • revalidateFiles

      public void revalidateFiles()
      Description copied from class: FileList
      This function facilitates reloading the current folder:

      1. If a file doesn't exist anymore, it will be removed 2. If a new file has been added, it will be added into the Tree

      The detection on if a folder exists or not is up to the parent BottomPane BottomPane.

      Overrides:
      revalidateFiles in class FileList
    • getFolder

      public VirtualFolder getFolder()
      Returns the virtual folder representing this viewport.
      Returns:
      VirtualFolder
    • isLiked

      public boolean isLiked(String file)
      Checks if a given file is "liked" meaning it exists in the current virtual folder.
      Parameters:
      file - The file's absolute path
      Returns:
      (true | | false) if the file is contained in the list or not.
    • getRootNameTree

      public String getRootNameTree()
      Description copied from interface: TabTree
      Gets the default root name
      Returns:
      String