org.thdl.savant
Class SavantFileView

java.lang.Object
  |
  +--javax.swing.filechooser.FileView
        |
        +--org.thdl.savant.SavantFileView

public class SavantFileView
extends FileView

The SavantFileView "sees through" a *.savant file and returns the title associated with it. A *.savant file is a properties file like the following:

 #Tue May 14 16:07:15 EDT 2002
 TRANSCRIPT=MST4.xml
 PROJECT=THDL
 MEDIA=MST4.mpg
 TITLE=MST Chapter 4 (video)
 

Author:
Edward Garrett

Constructor Summary
SavantFileView()
           
 
Method Summary
 String getDescription(File f)
          Returns null always, which lets the default look-and-feel's FileView take over.
static String getDotSavant()
          When opening a file, this is the only extension Savant cares about.
 String getName(File f)
          This loads *.savant files as properties files and returns an associated TITLE attribute.
 String getTypeDescription(File f)
          Returns null always, which lets the default look-and-feel's FileView take over.
 Boolean isTraversable(File f)
          Returns null always, which lets the default look-and-feel's FileView take over.
 
Methods inherited from class javax.swing.filechooser.FileView
getIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SavantFileView

public SavantFileView()
Method Detail

getDotSavant

public static final String getDotSavant()
When opening a file, this is the only extension Savant cares about. This is case-insensitive.


getName

public String getName(File f)
This loads *.savant files as properties files and returns an associated TITLE attribute. For any other type of file, or for a properties file that does not specify a non-empty-string TITLE attribute, this returns null.

Overrides:
getName in class FileView

getDescription

public String getDescription(File f)
Returns null always, which lets the default look-and-feel's FileView take over.

Overrides:
getDescription in class FileView
Returns:
null

isTraversable

public Boolean isTraversable(File f)
Returns null always, which lets the default look-and-feel's FileView take over.

Overrides:
isTraversable in class FileView
Returns:
null

getTypeDescription

public String getTypeDescription(File f)
Returns null always, which lets the default look-and-feel's FileView take over.

Overrides:
getTypeDescription in class FileView
Returns:
null


These API docs were created 02/02/2003 08:19 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by SourceForge_Logo