Class MainWindow

    • Constructor Detail

      • MainWindow

        public MainWindow​(BeaTunes application)
        Parameters:
        application - beatunes
    • Method Detail

      • setCoverPanelDelay

        public void setCoverPanelDelay​(int seconds)
        Sets the amount of seconds that shall pass until the "screen saver" artwork is shown. To set this value persistently, please use GeneralPreferences.setCoverPanelDelay(int).
        Parameters:
        seconds - delay in seconds
      • select

        public void select​(Object object)
        In the sidebar/tree, selects the tree node that has the given object as the user object of its PlayListTreeModel.UO.
        Parameters:
        object - user object, e.g. an Inspector or a Playlist
      • getLowerLeftButtonPanel

        @Deprecated
        public JPanel getLowerLeftButtonPanel()
        Deprecated.
        Returns:
        lower left panel in the status bar.
      • getMasterButtonPanel

        public MasterButtonPanel getMasterButtonPanel()
        Panel containing button that allow switching between main/master views like Inspection and Library.
        Returns:
        panel.
      • restoreMasterButtonState

        public void restoreMasterButtonState()
        Restores the last state of the master button panel. To be called after the UI is completely set up.
      • setVisible

        public void setVisible​(boolean b)
        Overrides:
        setVisible in class Window
      • setSideBarVisible

        public void setSideBarVisible​(boolean visible)
      • isSideBarVisible

        public boolean isSideBarVisible()
        Indicates whether the side bar (e.g. containing playlists) is visible.
        Returns:
        true or false
      • setFullScreen

        public void setFullScreen​(boolean fullScreen)
        Turns full screen mode on or off.
        Parameters:
        fullScreen - true or false
      • isFullScreen

        public boolean isFullScreen()
        Are we showing the app in full screen mode?
        Returns:
        true or false
      • setMasterComponent

        public void setMasterComponent​(Component masterComponent)
        Sets the master component. I.e. sets the left side of the main screen divider usually occupied with the source tree view.
        Parameters:
        masterComponent - master component
      • setDetailView

        public void setDetailView​(TreePath selectionPath)
        Set DetailView suitable for the given selection path from the PlayListTree.
        Parameters:
        selectionPath - path
      • pushDetailView

        public void pushDetailView​(DetailView detailView)
        Pushes a new DetailView onto the detailview stack.
        Parameters:
        detailView - detail view
        See Also:
        popDetailView()
      • $$$getRootComponent$$$

        public JComponent $$$getRootComponent$$$()
      • getDetailView

        public DetailView getDetailView()
      • getStatusLabel

        public JLabel getStatusLabel()
      • setStatusBarVisible

        public void setStatusBarVisible​(boolean show)
        Shows/hides the status bar.
        Parameters:
        show - true, if you want to show the status bar, false to hide it
      • isStatusBarVisible

        public boolean isStatusBarVisible()
        Indicates whether the status bar is visible.
        Returns:
        true or false
      • getSearchTextField

        public SearchTextField getSearchTextField()
        Returns the main search/filter field.
        Returns:
        search field
      • getSongTable

        public SongTable getSongTable()
        Returns the main song table.
        Returns:
        song table
      • getAnalysisQueue

        public AnalysisQueue getAnalysisQueue()
        Returns the analysis table.
        Returns:
        analysis table
      • getPlayListTree

        public PlayListTree getPlayListTree()
        Returns the main selection tree (sidebar).
        Returns:
        tree