DESY ACOP Beans Home

com.cosylab.gui.components.customizer
Class ImageFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.cosylab.gui.components.customizer.ImageFilter

public abstract class ImageFilter
extends javax.swing.filechooser.FileFilter

ImageFilter is a file filter for common image files. This filter can be used by a JFileChooser and will filter out all but png, jpg and jpeg files.


Constructor Summary
ImageFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          This is the one of the methods that is declared in the abstract class
 java.lang.String getDescription()
          Again, this is declared in the abstract class The description of this filter
protected  java.lang.String getExtension(java.io.File f)
          Method to get the extension of the file, in lowercase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFilter

public ImageFilter()
Method Detail

accept

public boolean accept(java.io.File f)
This is the one of the methods that is declared in the abstract class

Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Again, this is declared in the abstract class The description of this filter

Specified by:
getDescription in class javax.swing.filechooser.FileFilter

getExtension

protected java.lang.String getExtension(java.io.File f)
Method to get the extension of the file, in lowercase



Copyright © 2010. All Rights Reserved.