|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
halo.userinterface.gui.tools.JPEGFilter
public class JPEGFilter
File filter that accepts only jpg files
Constructor Summary | |
---|---|
JPEGFilter()
Generates a new filter, initializes the list of accepted endings |
Method Summary | |
---|---|
boolean |
accept(java.io.File f)
Tests if a given file is accepted |
void |
addEnding(java.lang.String ending)
Adds an accepted ending to the list |
java.util.ArrayList<java.lang.String> |
getAcceptedEndings()
Returns the list of accepted endings |
java.lang.String |
getDescription()
Returns the description of the filter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JPEGFilter()
Method Detail |
---|
public void addEnding(java.lang.String ending)
ending
- The file ending that is also acceptedpublic boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
f
- File that will be tested
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
public java.util.ArrayList<java.lang.String> getAcceptedEndings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |