com.lowagie.rups.io
public class FileChooserAction extends javax.swing.AbstractAction
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
file
The file that was chosen.
|
protected javax.swing.filechooser.FileFilter |
filter
A file filter to apply when browsing for a file.
|
protected boolean |
newFile
Indicates if you're browsing to create a new or an existing file.
|
protected java.util.Observable |
observable
An object that is expecting the result of the file chooser action.
|
private static long |
serialVersionUID
A serial version UID.
|
Constructor and Description |
---|
FileChooserAction(java.util.Observable observable,
java.lang.String caption,
javax.swing.filechooser.FileFilter filter,
boolean newFile)
Creates a new file chooser action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt) |
java.io.File |
getFile()
Getter for the file.
|
protected java.util.Observable observable
protected javax.swing.filechooser.FileFilter filter
protected boolean newFile
protected java.io.File file
private static final long serialVersionUID
public FileChooserAction(java.util.Observable observable, java.lang.String caption, javax.swing.filechooser.FileFilter filter, boolean newFile)
observable
- the object waiting for you to select filecaption
- a description for the actionfilter
- a filter to apply when browsingnewFile
- indicates if you should browse for a new or existing file