|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.html.image.ImageProviderAbstract
org.nakedobjects.plugins.html.image.ImageProviderResourceBased
public class ImageProviderResourceBased
| 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 |
|---|
public static final java.lang.String[] DEFAULT_LOCATIONS
| Constructor Detail |
|---|
public ImageProviderResourceBased()
locations with DEFAULT_LOCATIONS, but can
be overridden using setLocations(List).
| Method Detail |
|---|
protected java.lang.String findImage(java.lang.String className,
java.lang.String[] extensions)
ImageProviderAbstract
findImage in class ImageProviderAbstractclassName - - the short name of the class to search for.extensions - - the extensions to search for.public void setLocations(java.util.List<java.lang.String> locations)
If not specified, will use the locations in DEFAULT_LOCATIONS.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||