Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.chordcast.io
Class ChordSheetFileFilter  view ChordSheetFileFilter download ChordSheetFileFilter.java

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byorg.chordcast.io.ChordSheetFileFilter

public class ChordSheetFileFilter
extends javax.swing.filechooser.FileFilter

A filter for retain only the xcs Files.


Field Summary
(package private)  java.lang.String extension
           
(package private)  java.lang.String message
           
 
Constructor Summary
ChordSheetFileFilter()
           
ChordSheetFileFilter(java.lang.String ext, java.lang.String mess)
           
 
Method Summary
 boolean accept(java.io.File f)
          Returns true if the specified file matches the filter, and false otherwise.
 java.lang.String getDescription()
          Returns a description of the files that will be selected by the filter (for example, "Java source files").
protected static java.lang.String getExtension(java.io.File f)
          Get the extension of the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extension

java.lang.String extension

message

java.lang.String message
Constructor Detail

ChordSheetFileFilter

public ChordSheetFileFilter()

ChordSheetFileFilter

public ChordSheetFileFilter(java.lang.String ext,
                            java.lang.String mess)
Method Detail

accept

public boolean accept(java.io.File f)
Description copied from class: javax.swing.filechooser.FileFilter
Returns true if the specified file matches the filter, and false otherwise.


getExtension

protected static java.lang.String getExtension(java.io.File f)
Get the extension of the file


getDescription

public java.lang.String getDescription()
Description copied from class: javax.swing.filechooser.FileFilter
Returns a description of the files that will be selected by the filter (for example, "Java source files"). This description will usually be displayed on the javax.swing.JFileChooser component, often in a combo box that is used to select the appropriate filter (in cases where more than one filter is available).