|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
JTP.LevelSetFilter
public class LevelSetFilter
Custom file filter for levelset open/save dialogs
Constructor Summary | |
---|---|
LevelSetFilter(String extension)
Constructs a new LevelSetFilter with the given extension. |
Method Summary | |
---|---|
boolean |
accept(File f)
Determines whether a particular file is to be listed or not |
String |
getDescription()
Provides description for this file filter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LevelSetFilter(String extension) throws NullPointerException
LevelSetFilter
with the given extension.
extension
- to filter by
NullPointerException
- if extension
is
null
Method Detail |
---|
public boolean accept(File f)
accept
in class FileFilter
f
- file to check
true
if the supplied file has a valid extensionpublic String getDescription()
getDescription
in class FileFilter
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |