Class PlayListTree

    • Field Detail

      • ADDITIONAL_LEFT_SPACING_FOR_SOURCE_LIST

        public static final int ADDITIONAL_LEFT_SPACING_FOR_SOURCE_LIST
        See Also:
        Constant Field Values
    • Constructor Detail

      • PlayListTree

        public PlayListTree​(MainWindow mainWindow)
        Creates view.
        Parameters:
        mainWindow - main window
    • Method Detail

      • showInspection

        public void showInspection()
        Manipulate the tree model in a way that makes the inspection node visible.
      • showTaskQueue

        public void showTaskQueue()
        Manipulate the tree model in a way that makes the task queue node visible.
      • showLibrary

        public void showLibrary()
        Manipulate the tree model in a way that makes the library node visible.
      • showCharts

        public void showCharts()
        Manipulate the tree model in a way that makes the charts node visible.
      • registerDoubleClick

        public void registerDoubleClick​(String actionId)
        Registers the id of the action to execute upon a double click.
        Parameters:
        actionId - action id
      • getPlayListTreeModel

        public PlayListTreeModel getPlayListTreeModel()
        Returns the current model for the tree.
        Returns:
        tree
      • getSelectedPlayListTreeNode

        public DefaultMutableTreeNode getSelectedPlayListTreeNode()
        Returns the playlist tree node selected in the tree view whether the tree view has the focus or not
        Returns:
        currently selected playlist tree node or null, if none is selected
      • addPlaylist

        public void addPlaylist​(PlayList beaTunesPlayList)
        Adds a playlist to the tree in beaTunes in the currently selected folder.
        Parameters:
        beaTunesPlayList - beaTunes PlayList
      • addPlaylist

        public void addPlaylist​(PlayList beaTunesPlayList,
                                PlayList parentSibling)
        Adds a playlist to the tree in beaTunes.
        Parameters:
        beaTunesPlayList - beaTunes PlayList
        parentSibling - null, parent folder or sibling playlist
      • setPlayLists

        public void setPlayLists​(List<PlayList> playLists)
        Refreshes all models.
        Parameters:
        playLists - playlists
      • getSelectedPlayListsParentFolder

        public PlayList getSelectedPlayListsParentFolder()
        Parent folder of the currently selected playlist or the selected folder itself.
        Returns:
        parent folder
      • getSelectedDetailView

        public DetailView getSelectedDetailView()
        Returns the DetailView selected in the tree view whether the tree view has the focus or not
        Returns:
        currently selected DetailView or null, if none is selected
      • getSelectedPlayList

        public PlayList getSelectedPlayList()
        Returns the PlayList selected in the tree view whether the tree view has the focus or not
        Returns:
        currently selected PlayList or null, if none is selected
      • getSelectedUserObject

        public Object getSelectedUserObject()
        Returns the user object/detailview selected in the tree view whether the tree view has the focus or not
        Returns:
        currently selected user object or null, if none is selected
      • restoreView

        public void restoreView()
        Makes sure that the correct category nodes are installed below the root node.
      • selectFirstInspectorWithIssues

        public void selectFirstInspectorWithIssues()
        Select the first InspectorView with issues.
      • getPlayListTree

        public JTree getPlayListTree()
        Returns the actual tree component.
        Returns:
        tree
      • getComponent

        public JComponent getComponent()
        Description copied from interface: View
        The actual visual component for this view.
        Specified by:
        getComponent in interface View
        Returns:
        detail component
      • isIndeterminateProgress

        public boolean isIndeterminateProgress()
        Description copied from interface: DetailView
        Indicates that the current status is an operation with indeterminate progress which should be reflected in the rendering of the status bar.
        Specified by:
        isIndeterminateProgress in interface DetailView
        Returns:
        true if an indeterminate progress indicator is supposed to be rendered
      • $$$getRootComponent$$$

        public JComponent $$$getRootComponent$$$()