public abstract class AbstractResourceImageInitializer
extends java.lang.Object
| Constructor and Description |
|---|
AbstractResourceImageInitializer(java.lang.Class<?> resourceClass,
IImageRegistry imageRegistry,
java.lang.String resourcesPath)
Creates a new instance
|
AbstractResourceImageInitializer(java.lang.ClassLoader resourceClassLoader,
IImageRegistry imageRegistry,
java.lang.String resourcesPath)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkEnumAvailability(java.lang.Class<? extends java.lang.Enum<? extends IImageConstant>> imageEnumType)
Check if all keys of the given enum are available in the registry
|
abstract void |
doRegistration()
Does the image registration
|
protected java.util.List<IImageConstant> |
getUnavailableKeys(java.lang.Class<? extends java.lang.Enum<? extends IImageConstant>> imageEnumType)
Gets all unavailable keys of a given enum
|
protected void |
registerResourceImage(IImageConstant key,
java.lang.String resourceName)
Register a image from the resources
|
protected void |
registerSubstitudeIcon(IImageConstant key,
IImageConstant substitude)
Registers a image with help of another image key
|
public AbstractResourceImageInitializer(java.lang.Class<?> resourceClass,
IImageRegistry imageRegistry,
java.lang.String resourcesPath)
resourceClass - A class that has the same class loader then the resources that holds the image file, e.g. the concrete
class that is derived from this classimageRegistry - The image registry to useresourcesPath - The root path of the resourcespublic AbstractResourceImageInitializer(java.lang.ClassLoader resourceClassLoader,
IImageRegistry imageRegistry,
java.lang.String resourcesPath)
resourceClassLoader - The class loader to access the resources that holds the image fileimageRegistry - The image registry to useresourcesPath - The root path of the resourcesprotected void registerResourceImage(IImageConstant key, java.lang.String resourceName)
key - The key of the image to registerresourceName - The name of the resource (will be appended to the resource path)protected void registerSubstitudeIcon(IImageConstant key, IImageConstant substitude)
key - The key to registersubstitude - The (already available) image to use as substitudeprotected void checkEnumAvailability(java.lang.Class<? extends java.lang.Enum<? extends IImageConstant>> imageEnumType)
imageEnumType - The enum to checksprotected java.util.List<IImageConstant> getUnavailableKeys(java.lang.Class<? extends java.lang.Enum<? extends IImageConstant>> imageEnumType)
imageEnumType - The enum to get the unavailable keys forpublic abstract void doRegistration()
Siehe auch Jowidgets Nutzerhandbuch