com.lowagie.rups.io
public class FileChooserAction extends AbstractAction
Field Summary | |
---|---|
protected File | file The file that was chosen. |
protected 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 Observable | observable An object that is expecting the result of the file chooser action. |
static long | serialVersionUID A serial version UID. |
Constructor Summary | |
---|---|
FileChooserAction(Observable observable, String caption, FileFilter filter, boolean newFile)
Creates a new file chooser action. |
Method Summary | |
---|---|
void | actionPerformed(ActionEvent evt) |
File | getFile()
Getter for the file. |
Parameters: observable the object waiting for you to select file caption a description for the action filter a filter to apply when browsing newFile indicates if you should browse for a new or existing file
See Also: java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)