|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.sns.tools.apputils.files.FileFilterFactory
FileFilterFactory generates file filters based on supplied file types.
Constructor Summary | |
protected |
FileFilterFactory()
Creates a new instance of FileFilterFactory |
Method Summary | |
static javax.swing.JFileChooser |
applyFileFilters(javax.swing.JFileChooser fileChooser,
java.lang.String[] fileTypes)
Applies the file filters to the file chooser and returns this file chooser. |
static javax.swing.filechooser.FileFilter |
getFileFilter(java.lang.String fileType)
Create a file filter that accepts files of the specified type. |
static javax.swing.filechooser.FileFilter |
getSupportedFileFilter(java.lang.String[] fileTypes)
Create a file filter that accepts files of the specified types. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FileFilterFactory()
Method Detail |
public static javax.swing.JFileChooser applyFileFilters(javax.swing.JFileChooser fileChooser, java.lang.String[] fileTypes)
fileChooser
- the file chooser to which to add the file filtersfileTypes
- An array of file types to accept
public static javax.swing.filechooser.FileFilter getFileFilter(java.lang.String fileType)
fileType
- File type to accept
public static javax.swing.filechooser.FileFilter getSupportedFileFilter(java.lang.String[] fileTypes)
fileTypes
- Array of file types to accept
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |