Class FileSelectionField

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
MediaSelectionField

public class FileSelectionField extends JPanel
Special text field for selecting file/folders.
See Also:
  • Field Details

    • FILE_PROP

      public static final String FILE_PROP
      Property for changes to the selected file
      See Also:
    • textField

      protected PromptedTextField textField
    • lastSelectedFile

      protected File lastSelectedFile
      Set the current file
  • Constructor Details

    • FileSelectionField

      public FileSelectionField()
      Constructor
  • Method Details

    • getBrowseButton

      public JButton getBrowseButton()
    • getSelectedFile

      public File getSelectedFile()
      Return the selected file/folder
      Returns:
      selected file or null if invalid/empty
    • setFile

      public void setFile(File f)
    • setMode

      public void setMode(FileSelectionField.SelectionMode mode)
    • getMode

    • getFileFilter

      public ca.phon.ui.nativedialogs.FileFilter getFileFilter()
    • setFileFilter

      public void setFileFilter(ca.phon.ui.nativedialogs.FileFilter fileFilter)
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • getTextField

      public PromptedTextField getTextField()
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • onBrowse

      public void onBrowse()
      Open browse dialog.