org.argouml.uml.ui
Class ProjectFileView

java.lang.Object
  extended byjavax.swing.filechooser.FileView
      extended byorg.argouml.uml.ui.ProjectFileView

public final class ProjectFileView
extends FileView

Provides an icon for project files.

Since:
Jun 2, 2006

Method Summary
 Icon getIcon(File f)
          Load an icon for a supported project file.
static ProjectFileView getInstance()
          Returns the singleton instance.
 
Methods inherited from class javax.swing.filechooser.FileView
getDescription, getName, getTypeDescription, isTraversable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProjectFileView getInstance()
Returns the singleton instance.

Returns:
ProjectFileView

getIcon

public Icon getIcon(File f)
Load an icon for a supported project file.

Parameters:
f - the file to check
Returns:
a nice icon if the file is known as a project file, otherwise a default one


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook