org.nakedobjects.plugins.html.image
Class ImageProviderResourceBased

java.lang.Object
  extended by org.nakedobjects.plugins.html.image.ImageProviderAbstract
      extended by org.nakedobjects.plugins.html.image.ImageProviderResourceBased
All Implemented Interfaces:
ImageProvider

public class ImageProviderResourceBased
extends ImageProviderAbstract


Field Summary
static java.lang.String[] DEFAULT_LOCATIONS
          Is an array since easy to maintain
 
Constructor Summary
ImageProviderResourceBased()
          Initializes locations with DEFAULT_LOCATIONS, but can be overridden using setLocations(List).
 
Method Summary
protected  java.lang.String findImage(java.lang.String className, java.lang.String[] extensions)
          Hook method for subclass to actually return the image, else null.
 void setLocations(java.util.List<java.lang.String> locations)
          Optionally inject the locations where the provider will search.
 
Methods inherited from class org.nakedobjects.plugins.html.image.ImageProviderAbstract
debug, image, image, image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOCATIONS

public static final java.lang.String[] DEFAULT_LOCATIONS
Is an array since easy to maintain

Constructor Detail

ImageProviderResourceBased

public ImageProviderResourceBased()
Initializes locations with DEFAULT_LOCATIONS, but can be overridden using setLocations(List).

Method Detail

findImage

protected java.lang.String findImage(java.lang.String className,
                                     java.lang.String[] extensions)
Description copied from class: ImageProviderAbstract
Hook method for subclass to actually return the image, else null.

Specified by:
findImage in class ImageProviderAbstract
Parameters:
className - - the short name of the class to search for.
extensions - - the extensions to search for.

setLocations

public void setLocations(java.util.List<java.lang.String> locations)
Optionally inject the locations where the provider will search.

If not specified, will use the locations in DEFAULT_LOCATIONS.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.