Class FolderToolBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class FolderToolBar extends JToolBar
Manages the optional folder toolbar that sits above the folder view's tree view panel
See Also:
  • Field Details

  • Constructor Details

    • FolderToolBar

      public FolderToolBar(boolean showRecentFolders, List<String> recentFoldersList)
      Constructor to create the FolderToolBar.
      Parameters:
      showRecentFolders - the flag indicating if the recent folders should be shown
      recentFoldersList - the recent folders list if the flag is true
  • Method Details

    • enableDelete

      public void enableDelete()
      Enable the delete button.
    • disableDelete

      public void disableDelete()
      Disable the delete button.
    • enableNewFolder

      public void enableNewFolder()
      Enable the new folder button.
    • disableNewFolder

      public void disableNewFolder()
      Disable the new folder button.
    • getButton

      public JButton getButton(String buttonName)
      Get the button instance from the name.
      Parameters:
      buttonName - the name of the button
      Returns:
      the JButton instance. null if not found.
    • addListener

      public void addListener(com.jidesoft.plaf.basic.FolderToolBarListener listener)
      Add the FolderToolBarListener.
      Parameters:
      listener - the listener
    • removeListener

      public void removeListener(com.jidesoft.plaf.basic.FolderToolBarListener listener)
      Remove the FolderToolBarListener.
      Parameters:
      listener - the listener
    • clearListeners

      public void clearListeners()
      Clear all FolderToolBarListener's.
    • setRecentList

      public void setRecentList(List<String> recentFoldersList)
      Set the recent folders list.
      Parameters:
      recentFoldersList - the recent folders list