bibliothek.gui.dock.util.icon
Class DefaultIconScheme.IconResource

java.lang.Object
  extended by bibliothek.gui.dock.util.icon.DefaultIconScheme.IconResource
Enclosing class:
DefaultIconScheme

public static class DefaultIconScheme.IconResource
extends Object

A helper class describing a source for icons

Author:
Benjamin Sigg

Constructor Summary
DefaultIconScheme.IconResource(String fileName, String path, ClassLoader loader)
          Creates a new source for icons
 
Method Summary
 String getFileName()
          Gets the name of the file with the "key=path" values.
 ClassLoader getLoader()
          Gets the ClassLoader which should be used to load files
 String getPath()
          Gets the prefix of the paths that are found in the icons file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIconScheme.IconResource

public DefaultIconScheme.IconResource(String fileName,
                                      String path,
                                      ClassLoader loader)
Creates a new source for icons

Parameters:
fileName - the name of the file that contains "key=path" values
path - the prefix of the paths that are found in the file
loader - the ClassLoader to load the icons
Method Detail

getFileName

public String getFileName()
Gets the name of the file with the "key=path" values.

Returns:
the file name

getPath

public String getPath()
Gets the prefix of the paths that are found in the icons file.

Returns:
the prefix, can be null

getLoader

public ClassLoader getLoader()
Gets the ClassLoader which should be used to load files

Returns:
the class loader