Class SelectApplicableFolders

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JFileChooser
com.jackmeng.halcyoninae.cosmos.components.SelectApplicableFolders
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Runnable, Accessible

public class SelectApplicableFolders extends JFileChooser implements Runnable
This dialog class constructs a simple JFileChooser that alerts any listeners of a file being selected.
Since:
3.0
Author:
Jack Meng
See Also:
  • Field Details

  • Constructor Details

    • SelectApplicableFolders

      public SelectApplicableFolders()
      Constructs a new a dialog

      This new dialog is not visible until run() is called.

      Note that a listener is considered a dead listener if the listener is attempted to be set after the dialog has been run and the user has chosen the file without any attached listener at that time.

  • Method Details

    • setFolderSelectedListener

      public void setFolderSelectedListener(SelectApplicableFolders.FolderSelectedListener fs)
      This sets the current Dialog's folder listener to the one in the parameter.
      Parameters:
      fs - The valid listener locale
    • run

      public void run()
      Runs the dialog with the attached listener if there is If no dialog is set (== null) no event will be dispatched.
      Specified by:
      run in interface Runnable
      See Also: