utils
Class ScenarioFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--utils.ScenarioFileFilter

public class ScenarioFileFilter
extends javax.swing.filechooser.FileFilter


Constructor Summary
ScenarioFileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Return true if this file should be shown in the directory pane, false if it shouldn't.
 java.lang.String getDescription()
          Returns the human readable description of this filter.
 void setDescription(java.lang.String description)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioFileFilter

public ScenarioFileFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Return true if this file should be shown in the directory pane, false if it shouldn't. Files that begin with "." are ignored. =>Accept all directories and all .scf files

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - a File
Returns:
boolean

getDescription

public java.lang.String getDescription()
Returns the human readable description of this filter.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter

setDescription

public void setDescription(java.lang.String description)