|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
ch.hearc.I04_05s08.GUI.SimpleFileFilter
A file filter for file selector
Field Summary | |
private String |
description
Description |
private String |
extension
Extension |
Constructor Summary | |
SimpleFileFilter()
Build the filter |
|
SimpleFileFilter(String description)
Build filter |
Method Summary | |
boolean |
accept(File f)
|
void |
addExtension(String extension)
Add an extension |
String |
getDescription()
Get the description of the filter |
private String |
getExtension(File f)
Get the extension of a file |
void |
setDescription(String description)
Set the description of the filter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String description
private String extension
Constructor Detail |
public SimpleFileFilter(String description)
description
- the description of the filterpublic SimpleFileFilter()
Method Detail |
public void addExtension(String extension)
extension
- public boolean accept(File f)
public void setDescription(String description)
description
- the description of the filterpublic String getDescription()
private String getExtension(File f)
f
- the file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC