Class ExtensionFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
org.compiere.util.ExtensionFileFilter
All Implemented Interfaces:
Serializable

@Deprecated(forRemoval=true, since="11") public class ExtensionFileFilter extends FileFilter implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
Extension File Chooser
Version:
$Id: ExtensionFileFilter.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor
    ExtensionFileFilter(String extension, String description)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(File file)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Accept File
    Deprecated, for removal: This API element is subject to removal in a future version.
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get Extension
    static File
    getFile(File file, FileFilter filter)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Verify file with filter
    static String
    getFileName(File file, FileFilter filter)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Verify file name with filer
    void
    setDescription(String newDescription)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set Description
    void
    setExtension(String newExtension)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Extension

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExtensionFileFilter

      public ExtensionFileFilter()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor
    • ExtensionFileFilter

      public ExtensionFileFilter(String extension, String description)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor
      Parameters:
      extension - extension
      description - description
  • Method Details

    • getDescription

      public String getDescription()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description
      Specified by:
      getDescription in class FileFilter
      Returns:
      description
    • setDescription

      public void setDescription(String newDescription)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set Description
      Parameters:
      newDescription - description
    • setExtension

      public void setExtension(String newExtension)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Extension
      Parameters:
      newExtension - ext
    • getExtension

      public String getExtension()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get Extension
      Returns:
      extension
    • accept

      public boolean accept(File file)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Accept File
      Specified by:
      accept in class FileFilter
      Parameters:
      file - file to be tested
      Returns:
      true if OK
    • getFileName

      public static String getFileName(File file, FileFilter filter)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Verify file name with filer
      Parameters:
      file - file
      filter - filter
      Returns:
      file name
    • getFile

      public static File getFile(File file, FileFilter filter)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Verify file with filter
      Parameters:
      file - file
      filter - filter
      Returns:
      file