Class ModelLoader.JmtFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
common.xml.ModelLoader.JmtFileFilter
Enclosing class:
ModelLoader

public static class ModelLoader.JmtFileFilter extends FileFilter
Inner class used to create simple file filters with only extension check
Author:
Bertoli Marco Date: 15-feb-2006 Time: 15.36.51
  • Field Details

  • Constructor Details

    • JmtFileFilter

      public JmtFileFilter(String extensionList, String text)
      Creates a new file filter with specified semicolon separated list of extensions and specified description
      Parameters:
      extensionList - semicolon separated list of extensions of this filter (for example ".jsimg;.jmodel")
      text - text description of this filter
  • Method Details

    • accept

      public boolean accept(File f)
      Whether the given file is accepted by this filter.
      Specified by:
      accept in class FileFilter
    • getExtensions

      public String[] getExtensions()
      Gets the extensions of this filter
      Returns:
      extensions of this filter
    • getDescription

      public String getDescription()
      The description of this filter.
      Specified by:
      getDescription in class FileFilter