net.ontopia.utils
Class SimpleFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.ontopia.utils.SimpleFileFilter

public class SimpleFileFilter
extends javax.swing.filechooser.FileFilter

INTERNAL: Description: a simple file filter


Constructor Summary
SimpleFileFilter(java.lang.String description)
           
SimpleFileFilter(java.lang.String description, java.lang.String extension)
           
SimpleFileFilter(java.lang.String description, java.lang.String ext1, java.lang.String ext2)
           
 
Method Summary
 boolean accept(java.io.File f)
           
 void addExtension(java.lang.String extension)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileFilter

public SimpleFileFilter(java.lang.String description)

SimpleFileFilter

public SimpleFileFilter(java.lang.String description,
                        java.lang.String extension)

SimpleFileFilter

public SimpleFileFilter(java.lang.String description,
                        java.lang.String ext1,
                        java.lang.String ext2)
Method Detail

addExtension

public void addExtension(java.lang.String extension)

getDescription

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

accept

public boolean accept(java.io.File f)
Specified by:
accept in class javax.swing.filechooser.FileFilter


Copyright © 2000-2012 Ontopia.