shady.common.ui
Class ControlsDisplay.FrameFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by shady.common.ui.ControlsDisplay.FrameFileFilter
Enclosing class:
ControlsDisplay

protected class ControlsDisplay.FrameFileFilter
extends javax.swing.filechooser.FileFilter

A filter for frame files.


Field Summary
(package private)  java.lang.String format
          The format.
 
Constructor Summary
ControlsDisplay.FrameFileFilter(java.lang.String format)
          Create a FrameFileFilter.
 
Method Summary
 boolean accept(java.io.File f)
          Accepts directories and files with matching suffixes (ignoring case).
 java.lang.String getDescription()
          Returns a human-readable description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

format

java.lang.String format

The format.

Constructor Detail

ControlsDisplay.FrameFileFilter

ControlsDisplay.FrameFileFilter(java.lang.String format)

Create a FrameFileFilter.

Parameters:
format - the frame format (and filename extension)
Method Detail

accept

public boolean accept(java.io.File f)

Accepts directories and files with matching suffixes (ignoring case).

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - the file to check
Returns:
true iff f should be choosable

getDescription

public java.lang.String getDescription()

Returns a human-readable description.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
a human-readable description