|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.filechooser.FileFilter | +--au.edu.swin.synergy.lib.io.BFileFilter
An extension of the FileFilter class to allow filtering of only those filetypes that are necessary to display in a JFileChooser
Constructor Summary | |
BFileFilter()
Creates a file filter. |
|
BFileFilter(String extension)
Creates a file filter that accepts files with the given extension. |
|
BFileFilter(String extension,
String description)
Creates a file filter that accepts the given file type, and is supplied with an appropriate description. |
Method Summary | |
boolean |
accept(File file)
Returns whether this file should be displayed in a JFileChooser |
void |
addExtension(String extension)
Adds an extension for filtering. |
String |
getDescription()
Returns a description of this file filter. |
String |
getExtension(File file)
Return only the extension part of the specified file |
void |
setDescription(String description)
Sets the description of this filter. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public BFileFilter()
public BFileFilter(String extension)
addExtension(java.lang.String)
public BFileFilter(String extension, String description)
extension
- the extension to filter againstdescription
- a description of this file filterMethod Detail |
public boolean accept(File file)
file
- the file to accept or rejectpublic String getExtension(File file)
the
- file to act uponpublic void addExtension(String extension)
extension
- the filetype extension to add to the file filterpublic String getDescription()
public void setDescription(String description)
description
- a description of the filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |