org.beanfabrics.swt.samples.filebrowser
Class FileInfoRegistry

java.lang.Object
  extended by org.beanfabrics.swt.samples.filebrowser.FileInfoRegistry

public class FileInfoRegistry
extends java.lang.Object

The FileInfoRegistry is a helper class that offers OS specific information for File objects. For instance it provides an Image object for a given File showing the filesystem's file icon of that file.

Since there is no convenient support for this functionality in plain SWT this class uses the Swing class JFileChooser. For converting a Swing Icon to an SWT Image this class uses the ImageConverter which is part of this package.


Constructor Summary
FileInfoRegistry()
           
FileInfoRegistry(boolean useSystemLookAndFeel)
           
 
Method Summary
 void clear()
           
 org.eclipse.swt.graphics.Image getImage(java.io.File file)
           
 java.lang.String getName(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInfoRegistry

public FileInfoRegistry()

FileInfoRegistry

public FileInfoRegistry(boolean useSystemLookAndFeel)
Method Detail

getName

public java.lang.String getName(java.io.File file)

getImage

public org.eclipse.swt.graphics.Image getImage(java.io.File file)

clear

public void clear()