Package mgui.io.util

Class WildcardFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
mgui.io.util.WildcardFileFilter

public class WildcardFileFilter
extends javax.swing.filechooser.FileFilter
File filter allowing wildcard characters..
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Summary

    Constructors
    Constructor Description
    WildcardFileFilter​(java.lang.String[] patterns, java.lang.String description)  
    WildcardFileFilter​(java.lang.String pattern, java.lang.String description)  
  • Method Summary

    Modifier and Type Method Description
    boolean accept​(java.io.File file)  
    java.lang.String getDescription()  
    java.util.ArrayList<java.lang.String> getPatterns()  

    Methods inherited from class java.lang.Object

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

    • WildcardFileFilter

      public WildcardFileFilter​(java.lang.String pattern, java.lang.String description)
    • WildcardFileFilter

      public WildcardFileFilter​(java.lang.String[] patterns, java.lang.String description)
  • Method Details

    • getPatterns

      public java.util.ArrayList<java.lang.String> getPatterns()
    • accept

      public boolean accept​(java.io.File file)
      Specified by:
      accept in class javax.swing.filechooser.FileFilter
    • getDescription

      public java.lang.String getDescription()
      Specified by:
      getDescription in class javax.swing.filechooser.FileFilter