se.datadosen.jalbum
Class ThumbnailFileView

java.lang.Object
  extended by javax.swing.filechooser.FileView
      extended by se.datadosen.jalbum.ThumbnailFileView

public class ThumbnailFileView
extends javax.swing.filechooser.FileView

Plugin for JFileChooser that renders thumbnail icons for files

Since:
8.0

Constructor Summary
ThumbnailFileView()
           
 
Method Summary
 javax.swing.Icon getIcon(java.io.File f)
          The icon that represents this file in the JFileChooser.
 java.lang.Boolean isTraversable(java.io.File f)
          Whether the directory is traversable or not.
 
Methods inherited from class javax.swing.filechooser.FileView
getDescription, getName, getTypeDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbnailFileView

public ThumbnailFileView()
Method Detail

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