org.nakedobjects.plugins.html.image
Class ImageProviderAbstract

java.lang.Object
  extended by org.nakedobjects.plugins.html.image.ImageProviderAbstract
All Implemented Interfaces:
ImageProvider
Direct Known Subclasses:
ImageProviderDirectoryBasedReworked, ImageProviderResourceBased

public abstract class ImageProviderAbstract
extends java.lang.Object
implements ImageProvider


Constructor Summary
ImageProviderAbstract()
           
 
Method Summary
 void debug(DebugString debug)
           
protected abstract  java.lang.String findImage(java.lang.String className, java.lang.String[] extensions)
          Hook method for subclass to actually return the image, else null.
 java.lang.String image(NakedObject object)
          For an object, the icon name from the object is return if it is not null, otherwise the specification is used to look up a suitable image name.
 java.lang.String image(NakedObjectSpecification specification)
           
 java.lang.String image(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageProviderAbstract

public ImageProviderAbstract()
Method Detail

image

public final java.lang.String image(NakedObject object)
Description copied from interface: ImageProvider
For an object, the icon name from the object is return if it is not null, otherwise the specification is used to look up a suitable image name.

Specified by:
image in interface ImageProvider
See Also:
NakedObject.getIconName(), ImageProvider.image(NakedObjectSpecification)

image

public final java.lang.String image(NakedObjectSpecification specification)
Specified by:
image in interface ImageProvider

image

public java.lang.String image(java.lang.String name)
Specified by:
image in interface ImageProvider

debug

public final void debug(DebugString debug)
Specified by:
debug in interface ImageProvider

findImage

protected abstract java.lang.String findImage(java.lang.String className,
                                              java.lang.String[] extensions)
Hook method for subclass to actually return the image, else null.

Parameters:
className - - the short name of the class to search for.
extensions - - the extensions to search for.


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