Module org.autogui

Class SettingsWindow.FileDialogManager

java.lang.Object
org.autogui.swing.util.SettingsWindow.FileDialogManager
Enclosing class:
SettingsWindow

public static class SettingsWindow.FileDialogManager extends Object
a shared dialog, can be obtained by SettingsWindow.getFileDialogManager(). The dialog has an accessory which manages history of selected files
  • Field Details

  • Constructor Details

    • FileDialogManager

      public FileDialogManager()
  • Method Details

    • setCurrentPath

      public void setCurrentPath(Path p)
    • addListener

      public void addListener(SettingsWindow.FileDialogManagerListener l)
    • removeListener

      public void removeListener(SettingsWindow.FileDialogManagerListener l)
    • showOpenDialog

      public Path showOpenDialog(Component sender, JComponent accessory)
    • dialogComponent

      protected Component dialogComponent(Component sender)
    • showSaveDialog

      public Path showSaveDialog(Component sender, JComponent accessory, String defaultName)
    • showConfirmDialogIfOverwriting

      public Path showConfirmDialogIfOverwriting(JComponent sender, Path p)
    • getFileChooser

      public JFileChooser getFileChooser()
    • init

      public void init()
    • initFileChooser

      public void initFileChooser()
    • initFileChooserAfter

      public void initFileChooserAfter()
    • initHistory

      public void initHistory()
    • initAccessory

      public void initAccessory()
    • initPopup

      public void initPopup()
    • setAccessory

      public void setAccessory(JComponent accessory)
    • selectList

      public void selectList(ListSelectionEvent e)
    • currentDirectoryChanged

      public void currentDirectoryChanged(PropertyChangeEvent e)
    • updateListModel

      public void updateListModel()
    • setFieList

      public void setFieList(List<Path> ps)
    • setFileListWithLimit

      protected void setFileListWithLimit(List<Path> ps, boolean alwaysSet)
    • addFileListPath

      public void addFileListPath(Path path)
    • setBackButtonPath

      public void setBackButtonPath(Path path)
    • setMaxHistoryList

      public void setMaxHistoryList(int maxHistoryList)
    • getMaxHistoryList

      public int getMaxHistoryList()