com.zfqjava.swing
Class DefaultFileFilter
java.lang.Object
|
+--javax.swing.filechooser.FileFilter
|
+--com.zfqjava.swing.DefaultFileFilter
- public class DefaultFileFilter
- extends javax.swing.filechooser.FileFilter
DefaultFileFilter
provides a default file filter.
Constructor Summary |
DefaultFileFilter(java.lang.String[] ext,
java.lang.String description)
Constructs a default file filter use the specified
ext and desciption . |
DefaultFileFilter(java.lang.String ext,
java.lang.String description)
Constructs a default file filter use the specified
ext and desciption . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFileFilter
public DefaultFileFilter(java.lang.String ext,
java.lang.String description)
- Constructs a default file filter use the specified
ext
and desciption
.
- Parameters:
ext
- the extension namedescription
- the description for the extension- Throws:
NullPointerException
- if any parameter is
null
.
DefaultFileFilter
public DefaultFileFilter(java.lang.String[] ext,
java.lang.String description)
- Constructs a default file filter use the specified
ext
and desciption
.
- Parameters:
ext
- the extension namesdescription
- the description for the extension- Throws:
NullPointerException
- if any parameter is
null
.
accept
public boolean accept(java.io.File f)
- Overrides:
accept
in class javax.swing.filechooser.FileFilter
getDescription
public java.lang.String getDescription()
- Overrides:
getDescription
in class javax.swing.filechooser.FileFilter
Copyright © 2001-2003 Extreme Component, Inc. All rights reserved.