|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
apollo.gui.GenericFileFilter
public class GenericFileFilter
This is a generic file filter for filtering results for javax.swing.FileChooser
| Field Summary | |
|---|---|
protected java.lang.String |
description
|
protected java.util.Set<java.lang.String> |
extensions
|
| Constructor Summary | |
|---|---|
GenericFileFilter()
Builds a GenericFileFilter object |
|
GenericFileFilter(java.lang.String description)
Builds a GenericFileFilter object |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File f)
Whether the given file is accepted by this filter |
void |
addExtension(java.lang.String extension)
Adds a file extension for filtering |
java.lang.String |
getDescription()
The description of this filter |
java.util.Set<java.lang.String> |
getExtensions()
Get the file extensions added to this filter |
void |
setDescription(java.lang.String description)
Set the description of this filter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Set<java.lang.String> extensions
protected java.lang.String description
| Constructor Detail |
|---|
public GenericFileFilter()
public GenericFileFilter(java.lang.String description)
description - - the description of this filter to be displayed by FileChooser| Method Detail |
|---|
public boolean accept(java.io.File f)
accept in class javax.swing.filechooser.FileFilterf - - File to be tested
public java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterpublic void setDescription(java.lang.String description)
description - - new description of this filterpublic void addExtension(java.lang.String extension)
extension - - file extension to be added for filteringpublic java.util.Set<java.lang.String> getExtensions()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||