|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.dialog.AbstractFeature
com.sdm.quasar.client.swing.dialogbase.features.ImageProviderFeature
An implementation of ImageProviderService, that uses configuration
entries to load images.
| Constructor Summary | |
ImageProviderFeature()
Creates a new ImageProviderFeature. |
|
| Method Summary | |
protected void |
dispose()
Called when the feature or dialog is disposed. |
java.awt.Image |
getImage(java.lang.String id)
Returns the Image associated with the given id. |
javax.swing.ImageIcon |
getImageIcon(java.lang.String id)
Returns the ImageIcon associated with the given id. |
static byte[] |
getResourceBytes(java.io.InputStream in)
Returns an array of bytes containing the given InputStream
content. |
protected void |
init()
Called when the feature is initializing. |
| Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature |
activate, attachDialogControl, collectSystemInfo, deactivate, disposeFeature, getDialogControl, isInitialized, prepare, release |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageProviderFeature()
ImageProviderFeature.
| Method Detail |
protected void init()
AbstractFeatureDialogControl installed to. To access the
DialogControl use the AbstractFeature.getDialogControl() method.
Override this method to perform some action on initialization e.g. register public services.
init in class AbstractFeatureAbstractFeature.init()
protected void dispose()
throws DisposeException
AbstractFeature
dispose in class AbstractFeatureDisposeExceptionAbstractFeature.dispose()public javax.swing.ImageIcon getImageIcon(java.lang.String id)
ImageProviderServiceImageIcon associated with the given id.
getImageIcon in interface ImageProviderServiceid - the id of the image
ImageIcon or null, if no icon was foundImageProviderService.getImageIcon(java.lang.String)public java.awt.Image getImage(java.lang.String id)
ImageProviderServiceImage associated with the given id.
getImage in interface ImageProviderServiceid - the id of the image
ImageIcon or null, if no icon was foundImageProviderService.getImage(java.lang.String)public static byte[] getResourceBytes(java.io.InputStream in)
InputStream
content.
in - the InputStream to read from
InputStream content
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||