public static class DefaultFileFilter.EditorFileFilter
extends javax.swing.filechooser.FileFilter
ImageIO.getReaderFormatNames()| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
desc
Description of the File format
|
| Constructor and Description |
|---|
EditorFileFilter(java.lang.String description)
Constructs a new editor file filter using the specified description.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File file)
Returns true if the file is a directory or has a .xml or .xml.gz
extension.
|
java.lang.String |
getDescription()
Returns the description.
|
public EditorFileFilter(java.lang.String description)
description - The description to use for the filter.public boolean accept(java.io.File file)
accept in class javax.swing.filechooser.FileFilterpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilter