javoids
Class KeyboardFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by javoids.KeyboardFileFilter

 class KeyboardFileFilter
extends javax.swing.filechooser.FileFilter

A class to handle the input of actions for key presses.

Author:
mallette

Constructor Summary
KeyboardFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Determine whether or not to accept the changes.
 java.lang.String getDescription()
          Get the description of the file filter.
static java.lang.String getExtension(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyboardFileFilter

KeyboardFileFilter()
Method Detail

accept

public boolean accept(java.io.File file)
Determine whether or not to accept the changes.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - the file to load from, and save to.
Returns:
were the changes successful?

getDescription

public java.lang.String getDescription()
Get the description of the file filter.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
the description for the file type

getExtension

public static java.lang.String getExtension(java.io.File file)
Parameters:
file - the file name for the keyboard information
Returns:
the extension on the file