org.pfsw.joi
Class ImageProvider

java.lang.Object
  extended by org.pfsw.joi.ImageProvider

public class ImageProvider
extends java.lang.Object

This singleton is responsible to provide all icons and image JOI needs.


Method Summary
protected  javax.swing.ImageIcon createIcon(java.lang.String filename)
           
protected  java.net.URL findFileOnClasspath(java.lang.String filePath)
          Tries to find the file with the given Name on the classpath.
 javax.swing.ImageIcon getLogoIcon()
           
 javax.swing.ImageIcon getPackageIcon()
           
 javax.swing.ImageIcon getPrivateIcon()
           
 javax.swing.ImageIcon getProtectedIcon()
           
 javax.swing.ImageIcon getPublicIcon()
           
 javax.swing.ImageIcon getRootIcon()
           
protected  void initialize()
           
static ImageProvider instance()
          Returns the only instance this class supports (design pattern "Singleton")
protected  void setLogoIcon(javax.swing.ImageIcon newValue)
           
protected  void setPackageIcon(javax.swing.ImageIcon newValue)
           
protected  void setPrivateIcon(javax.swing.ImageIcon newValue)
           
protected  void setProtectedIcon(javax.swing.ImageIcon newValue)
           
protected  void setPublicIcon(javax.swing.ImageIcon newValue)
           
protected  void setRootIcon(javax.swing.ImageIcon newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLogoIcon

public javax.swing.ImageIcon getLogoIcon()

setLogoIcon

protected void setLogoIcon(javax.swing.ImageIcon newValue)

getRootIcon

public javax.swing.ImageIcon getRootIcon()

setRootIcon

protected void setRootIcon(javax.swing.ImageIcon newValue)

getPackageIcon

public javax.swing.ImageIcon getPackageIcon()

setPackageIcon

protected void setPackageIcon(javax.swing.ImageIcon newValue)

getPublicIcon

public javax.swing.ImageIcon getPublicIcon()

setPublicIcon

protected void setPublicIcon(javax.swing.ImageIcon newValue)

getProtectedIcon

public javax.swing.ImageIcon getProtectedIcon()

setProtectedIcon

protected void setProtectedIcon(javax.swing.ImageIcon newValue)

getPrivateIcon

public javax.swing.ImageIcon getPrivateIcon()

setPrivateIcon

protected void setPrivateIcon(javax.swing.ImageIcon newValue)

instance

public static ImageProvider instance()
Returns the only instance this class supports (design pattern "Singleton")


initialize

protected void initialize()

createIcon

protected javax.swing.ImageIcon createIcon(java.lang.String filename)

findFileOnClasspath

protected java.net.URL findFileOnClasspath(java.lang.String filePath)
Tries to find the file with the given Name on the classpath. If the file was found and really exists, then it will be returned. In all other cases null will be returned.

Copied from com.pf.file.FileFinder, because JOI should be independent of other proprietary packages