Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua.filechooser
Class QuaquaFileView

java.lang.Object
  extended by javax.swing.filechooser.FileView
      extended by ch.randelshofer.quaqua.filechooser.QuaquaFileView

public class QuaquaFileView
extends javax.swing.filechooser.FileView

A FileView for the Quaqua Look and Feel.

Version:
$Id: QuaquaFileView.java 363 2010-11-21 17:41:04Z wrandelshofer $
Author:
Werner Randelshofer

Constructor Summary
QuaquaFileView(QuaquaFileSystemView fsv)
          Creates a new instance.
 
Method Summary
 java.lang.String getDescription(java.io.File f)
          A human readable description of the file.
 javax.swing.Icon getIcon(java.io.File f)
          The icon that represents this file in the JFileChooser.
 java.lang.String getName(java.io.File f)
          The name of the file.
 java.lang.String getTypeDescription(java.io.File f)
          A human readable description of the type of the file.
 java.lang.Boolean isTraversable(java.io.File f)
          Whether the directory is traversable or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaquaFileView

public QuaquaFileView(QuaquaFileSystemView fsv)
Creates a new instance.

Method Detail

getName

public java.lang.String getName(java.io.File f)
The name of the file. Normally this would be simply f.getName()

Overrides:
getName in class javax.swing.filechooser.FileView

getDescription

public java.lang.String getDescription(java.io.File f)
A human readable description of the file. For example, a file named jag.jpg might have a description that read: "A JPEG image file of James Gosling's face"

Overrides:
getDescription in class javax.swing.filechooser.FileView

getTypeDescription

public java.lang.String getTypeDescription(java.io.File f)
A human readable description of the type of the file. For example, a jpg file might have a type description of: "A JPEG Compressed Image File"

Overrides:
getTypeDescription in class javax.swing.filechooser.FileView

getIcon

public javax.swing.Icon getIcon(java.io.File f)
The icon that represents this file in the JFileChooser.

Overrides:
getIcon in class javax.swing.filechooser.FileView

isTraversable

public java.lang.Boolean isTraversable(java.io.File f)
Whether the directory is traversable or not. This might be useful, for example, if you want a directory to represent a compound document and don't want the user to descend into it.

Overrides:
isTraversable in class javax.swing.filechooser.FileView

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.