java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
com.jackmeng.halcyoninae.cosmos.components.bottompane.BottomPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class BottomPane extends JTabbedPane
Handles the Tabs in the BottomPane.
Since:
3.0
Author:
Jack Meng
See Also:
  • Field Details

    • tabs

      private final List<FileList> tabs
    • tabsMap

      private final Map<String,Integer> tabsMap
      Holds a list of folder paths in correspondence with their index in the JTabbedPane.
    • t

      private final TitledBorder t
  • Constructor Details

    • BottomPane

      public BottomPane()
      Creates a bottom viewport
  • Method Details

    • getTabs

      public List<FileList> getTabs()
      Returns:
      list that represents the FileList tabs.
    • findByTree

      public FileList findByTree(JTree tree)
      Goes through all of the avaliable FileList components and gets which ever has the same instance of a JTree
      Parameters:
      tree - The JTree to compare against
      Returns:
      The FileList component holding the JTree component
    • containsFolder

      public boolean containsFolder(String folderAbsoluteStr)
      Parameters:
      folderAbsoluteStr - A folder's absolute path
      Returns:
      (true | | false) if said folder is within the list.
    • getStrTabs

      public List<String> getStrTabs()
      Returns:
      A List of String representsin the tabs with the different names.
    • pokeNewFileListTab

      public void pokeNewFileListTab(FileList plain)
      Pokes a direct File List object

      This should only be used to add a static viewport, which means this tab cannot be deleted by the end-user

      Parameters:
      plain - A File List Component
    • pokeNewFileListTab

      public void pokeNewFileListTab(String folder)
      Adds a new File List object to the viewport of tabs.
      Parameters:
      folder - An absolute path to a folder.
    • mastRevalidate

      public void mastRevalidate()
      Runs a master revalidation of all of the FileLists and checks if every added folder exists and all of it's sub-files.
      See Also: