|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
com.huguesjohnson.hapsby.SaveGameFilter
public class SaveGameFilter
Customizable filter for save game files.
| Constructor Summary | |
|---|---|
SaveGameFilter(java.lang.String filePattern,
java.lang.String gameTitle)
Creates a filter based on file pattern passed. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File f)
Tests if a file fits the filter defined in the constructor. |
java.lang.String |
getDescription()
Returns the description of file accepted by the filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SaveGameFilter(java.lang.String filePattern,
java.lang.String gameTitle)
filePattern - Pattern, or specific name, to apply to filter.gameTitle - Title of game the pattern is for, used to set the description.| Method Detail |
|---|
public boolean accept(java.io.File f)
accept in class javax.swing.filechooser.FileFilterf - The file to check.
public java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||