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 SimpleDirectoryChooserm_Chooserthe 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 voidaddPropertyChangeListener(PropertyChangeListener l)Adds the property change listener.voidensureFileIsVisible(File f)Scrolls the specified file into viewFilegetCurrentDirectory()Returns the current directory.File[]getSelectedFiles()Returns all the selected files.voidremovePropertyChangeListener(PropertyChangeListener l)Removes the property change listener.voidsetCurrentDirectory(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:
setCurrentDirectoryin interfacecom.googlecode.jfilechooserbookmarks.Communication- Parameters:
dir- the directory to use
-
getCurrentDirectory
public File getCurrentDirectory()
Returns the current directory.- Specified by:
getCurrentDirectoryin interfacecom.googlecode.jfilechooserbookmarks.Communication- Returns:
- the directory in use
-
getSelectedFiles
public File[] getSelectedFiles()
Returns all the selected files.- Specified by:
getSelectedFilesin interfacecom.googlecode.jfilechooserbookmarks.Communication- Returns:
- the currently selected files
-
ensureFileIsVisible
public void ensureFileIsVisible(File f)
Scrolls the specified file into view- Specified by:
ensureFileIsVisiblein 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:
addPropertyChangeListenerin interfacecom.googlecode.jfilechooserbookmarks.Communication- Parameters:
l- the listener to add
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
Removes the property change listener.- Specified by:
removePropertyChangeListenerin interfacecom.googlecode.jfilechooserbookmarks.Communication- Parameters:
l- the listener to remove
-
-