public interface IImageRegistry
Modifier and Type | Method and Description |
---|---|
IImageHandle |
getImageHandle(IImageConstant key)
Gets the image handle for a image constant.
|
boolean |
isImageAvailable(IImageConstant key)
Checks if a image is available for a given key
A image is available if the key is registered or if a image can be created from
the key (e.g. because the key is a image provider).
|
boolean |
isImageInitialized(IImageConstant key)
Checks if an image is already initialized.
|
boolean |
isImageRegistered(IImageConstant key)
Checks if an image constant is already registered.
|
void |
registerImageConstant(IImageConstant key,
IImageConstant substitude)
Registers an image constant with an substitude image constant
The substitude must be available
isImageAvailable(IImageConstant) and
the value of the substitude becomes the new image for the key. |
void |
registerImageConstant(IImageConstant key,
IImageDescriptor descriptor)
Registers an image constant with an image descriptor value
|
void |
registerImageConstant(IImageConstant key,
IImageHandle imageHandle)
Registers an image constant key with a image handle value
A image handle provides native (ui framework dependent) information, so
for writing spi independent code, this method normally will not be used.
|
void |
registerImageConstant(IImageConstant key,
IImageProvider provider)
Registers an image constant with an image provider value
|
void |
registerImageConstant(IImageConstant key,
java.net.URL url)
Registers an image constant with an url value
|
<T extends java.lang.Enum<?> & IImageUrlProvider> |
registerImageEnum(java.lang.Class<T> enumClass)
Deprecated.
The registration of an image enum is not necessary,
because an image provider will be registered automatically
at first use
|
void |
registerImageProvider(IImageProvider provider)
Deprecated.
The registration of an image provider is not necessary,
because an image provider will be registered automatically
at first use
|
void |
registerImageStream(IImageStreamProvider provider)
Deprecated.
The registration of an image provider is not necessary,
because an image provider will be registered automatically
at first use
|
void |
registerImageUrl(IImageUrlProvider provider)
Deprecated.
The registration of an image provider is not necessary,
because an image provider will be registered automatically
at first use
|
void |
unRegisterImage(IImageCommon image)
Unregisters an image.
|
void |
unRegisterImageConstant(IImageConstant key)
Unregisters a image constant.
|
void registerImageConstant(IImageConstant key, IImageDescriptor descriptor)
key
- The key to use, must not be nulldescriptor
- The descriptor to use, must not be nullvoid registerImageConstant(IImageConstant key, IImageProvider provider)
key
- The key to use, must not be nulldescriptor
- The provider to use, must not be nullvoid registerImageConstant(IImageConstant key, java.net.URL url)
key
- The key to use, must not be nulldescriptor
- The url to use, must not be nullvoid registerImageConstant(IImageConstant key, IImageConstant substitude)
isImageAvailable(IImageConstant)
and
the value of the substitude becomes the new image for the key.key
- The key to use, must not be nullsubstitude
- The substitude to use, must not be nullvoid registerImageConstant(IImageConstant key, IImageHandle imageHandle)
key
- The key to useimageHandle
- The image handle to useIImageHandle getImageHandle(IImageConstant key)
key
- The key to get the handle forvoid unRegisterImageConstant(IImageConstant key)
key
- The image constant to unregistervoid unRegisterImage(IImageCommon image)
image
- The image to unregisterboolean isImageAvailable(IImageConstant key)
key
- The key to check if image is available forboolean isImageRegistered(IImageConstant key)
isImageAvailable(IImageConstant)
even if it has not been registered yetkey
- The key to checkboolean isImageInitialized(IImageConstant key)
key
- The key to check@Deprecated <T extends java.lang.Enum<?> & IImageUrlProvider> void registerImageEnum(java.lang.Class<T> enumClass)
enumClass
- The enum to register@Deprecated void registerImageProvider(IImageProvider provider)
provider
- The provider to register@Deprecated void registerImageUrl(IImageUrlProvider provider)
provider
- The provider to register@Deprecated void registerImageStream(IImageStreamProvider provider)
provider
- The provider to registerSiehe auch Jowidgets Nutzerhandbuch