Package adams.gui.chooser
Class SimpleDirectoryChooser.SimpleDirectoryChooserCommunication
- java.lang.Object
-
- adams.gui.chooser.SimpleDirectoryChooser.SimpleDirectoryChooserCommunication
-
- All Implemented Interfaces:
com.googlecode.jfilechooserbookmarks.Communication
- Enclosing class:
- SimpleDirectoryChooser
public static class SimpleDirectoryChooser.SimpleDirectoryChooserCommunication extends Object implements com.googlecode.jfilechooserbookmarks.Communication
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleDirectoryChooser
m_Chooser
the chooser.
-
Constructor Summary
Constructors Constructor Description SimpleDirectoryChooserCommunication(SimpleDirectoryChooser chooser)
Initializes the communication.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener l)
Adds the property change listener.void
ensureFileIsVisible(File f)
Scrolls the specified file into viewFile
getCurrentDirectory()
Returns the current directory.File[]
getSelectedFiles()
Returns all the selected files.void
removePropertyChangeListener(PropertyChangeListener l)
Removes the property change listener.void
setCurrentDirectory(File dir)
Sets the current directory.
-
-
-
Field Detail
-
m_Chooser
protected SimpleDirectoryChooser m_Chooser
the chooser.
-
-
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 interfacecom.googlecode.jfilechooserbookmarks.Communication
- Parameters:
dir
- the directory to use
-
getCurrentDirectory
public File getCurrentDirectory()
Returns the current directory.- Specified by:
getCurrentDirectory
in interfacecom.googlecode.jfilechooserbookmarks.Communication
- Returns:
- the directory in use
-
getSelectedFiles
public File[] getSelectedFiles()
Returns all the selected files.- Specified by:
getSelectedFiles
in interfacecom.googlecode.jfilechooserbookmarks.Communication
- Returns:
- the currently selected files
-
ensureFileIsVisible
public void ensureFileIsVisible(File f)
Scrolls the specified file into view- Specified by:
ensureFileIsVisible
in interfacecom.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 interfacecom.googlecode.jfilechooserbookmarks.Communication
- Parameters:
l
- the listener to add
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
Removes the property change listener.- Specified by:
removePropertyChangeListener
in interfacecom.googlecode.jfilechooserbookmarks.Communication
- Parameters:
l
- the listener to remove
-
-