|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
LogFilter
public class LogFilter
This is an file filter that accepts directories and .log files.
| Field Summary | |
|---|---|
static java.lang.String |
log
Log file extension |
| Constructor Summary | |
|---|---|
LogFilter()
|
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File f)
Accepts directories and log files. |
java.lang.String |
getDescription()
Returns the description of the filter. |
static java.lang.String |
getExtension(java.io.File f)
Deterimines the file extension of the passed in file, then returns it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String log
| Constructor Detail |
|---|
public LogFilter()
| Method Detail |
|---|
public boolean accept(java.io.File f)
accept in class javax.swing.filechooser.FileFilterf - File to test for acceptance
true on accepted; false otherwise.public java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterpublic static java.lang.String getExtension(java.io.File f)
f - The file to determine the extension of
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||