public class JFileChooserCommunication extends Object implements Communication
| Modifier and Type | Field and Description |
|---|---|
protected JFileChooser |
m_Chooser
the underlying chooser.
|
| Constructor and Description |
|---|
JFileChooserCommunication(JFileChooser chooser)
Initializes the communication.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds the property change listener.
|
void |
ensureFileIsVisible(File f)
Scrolls the specified file into view
|
File |
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.
|
protected JFileChooser m_Chooser
public JFileChooserCommunication(JFileChooser chooser)
chooser - the underlying file chooserpublic void setCurrentDirectory(File dir)
setCurrentDirectory in interface Communicationdir - the directory to usepublic File getCurrentDirectory()
getCurrentDirectory in interface Communicationpublic File[] getSelectedFiles()
getSelectedFiles in interface Communicationpublic void ensureFileIsVisible(File f)
ensureFileIsVisible in interface Communicationf - the file to scroll into viewpublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in interface Communicationl - the listener to addpublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in interface Communicationl - the listener to removeCopyright © 2022. All rights reserved.