ehsbe CommonsTM
Version 1.1.0rc3

com.ehsbe.commons.gui
Class ImageFileView

java.lang.Object
  extended by javax.swing.filechooser.FileView
      extended by com.ehsbe.commons.gui.ImageFileView

public class ImageFileView
extends FileView

Simple class to get the appropriate icon and description for a given file.

Version:
$Revision: 432 $
Author:
Jens Elkner

Constructor Summary
ImageFileView(Locale locale)
          Default constructor.
 
Method Summary
 String getDescription(File f)
          
 Icon getIcon(File f)
          
 String getName(File f)
          
 Set<String> getSupportedExtension()
          Get all extensions supported by this viewer.
 String getTypeDescription(File f)
          
 Boolean isTraversable(File f)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFileView

public ImageFileView(Locale locale)
Default constructor.

Parameters:
locale - locale to use for i18n
Method Detail

getSupportedExtension

public Set<String> getSupportedExtension()
Get all extensions supported by this viewer.

Returns:
a (possible not empty) set

getName

public String getName(File f)

Overrides:
getName in class FileView

getDescription

public String getDescription(File f)

Overrides:
getDescription in class FileView

isTraversable

public Boolean isTraversable(File f)

Overrides:
isTraversable in class FileView

getTypeDescription

public String getTypeDescription(File f)

Overrides:
getTypeDescription in class FileView

getIcon

public Icon getIcon(File f)

Overrides:
getIcon in class FileView

ehsbe CommonsTM
Version 1.1.0rc3

Copyright ©2005-2009 EHSBE, Walther-Rathenau-Str. 58, 39104 Magdeburg, Sachsen-Anhalt, Germany. All Rights Reserved.