Class SimpleDirectoryChooser.SimpleDirectoryChooserCommunication

  • All Implemented Interfaces:
    com.googlecode.jfilechooserbookmarks.Communication
    Enclosing class:
    SimpleDirectoryChooser

    public static class SimpleDirectoryChooser.SimpleDirectoryChooserCommunication
    extends Object
    implements com.googlecode.jfilechooserbookmarks.Communication
    • Constructor Detail

      • SimpleDirectoryChooserCommunication

        public SimpleDirectoryChooserCommunication​(SimpleDirectoryChooser chooser)
        Initializes the communication.
        Parameters:
        chooser - the underlying chooser
    • Method Detail

      • setCurrentDirectory

        public void setCurrentDirectory​(File dir)
        Sets the current directory.
        Specified by:
        setCurrentDirectory in interface com.googlecode.jfilechooserbookmarks.Communication
        Parameters:
        dir - the directory to use
      • getCurrentDirectory

        public File getCurrentDirectory()
        Returns the current directory.
        Specified by:
        getCurrentDirectory in interface com.googlecode.jfilechooserbookmarks.Communication
        Returns:
        the directory in use
      • getSelectedFiles

        public File[] getSelectedFiles()
        Returns all the selected files.
        Specified by:
        getSelectedFiles in interface com.googlecode.jfilechooserbookmarks.Communication
        Returns:
        the currently selected files
      • ensureFileIsVisible

        public void ensureFileIsVisible​(File f)
        Scrolls the specified file into view
        Specified by:
        ensureFileIsVisible in interface com.googlecode.jfilechooserbookmarks.Communication
        Parameters:
        f - the file to scroll into view
      • addPropertyChangeListener

        public void addPropertyChangeListener​(PropertyChangeListener l)
        Adds the property change listener.
        Specified by:
        addPropertyChangeListener in interface com.googlecode.jfilechooserbookmarks.Communication
        Parameters:
        l - the listener to add
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener l)
        Removes the property change listener.
        Specified by:
        removePropertyChangeListener in interface com.googlecode.jfilechooserbookmarks.Communication
        Parameters:
        l - the listener to remove