Class FileChooserAction

java.lang.Object
javax.swing.AbstractAction
com.lowagie.rups.io.FileChooserAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class FileChooserAction extends AbstractAction
Allows you to browse the file system and forwards the file to the object that is waiting for you to choose a file.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      A serial version UID.
      See Also:
    • observable

      protected Observable observable
      An object that is expecting the result of the file chooser action.
    • filter

      protected FileFilter filter
      A file filter to apply when browsing for a file.
    • newFile

      protected boolean newFile
      Indicates if you're browsing to create a new or an existing file.
    • file

      protected File file
      The file that was chosen.
  • Constructor Details

    • FileChooserAction

      public FileChooserAction(Observable observable, String caption, FileFilter filter, boolean newFile)
      Creates a new file chooser action.
      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
  • Method Details