|
NextApp Echo App Container 1.0.5 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echoservlet.image.ImageManager
Manages the images referenced by a ComponentPeer.
| Field Summary | |
private ComponentPeer |
componentPeer
The ComponentPeer for which this ImageManager is managing images. |
private java.util.Map |
images
A map that maps image names to image peers. |
private static int |
INITIAL_CAPACITY
|
| Constructor Summary | |
ImageManager(ComponentPeer componentPeer)
Creates an image manager for the specified component. |
|
| Method Summary | |
nextapp.echo.ImageReference |
getImage(java.lang.String imageName)
Returns an image managed by this ImageManager,
identified by imageName. |
int |
getImageCount()
Returns the number of images managed by this ImageManager. |
java.util.Iterator |
getImageNames()
Returns an Iterator over the names of images managed by
this ImageManager. |
java.lang.String |
getImageUri(Connection conn,
java.lang.String imageName)
Returns the URI of the image with provided name. |
void |
removeAllImages()
Removes all images. |
void |
setImage(java.lang.String imageName,
nextapp.echo.ImageReference newImage)
Adds an image to the image manager, identified by imageName. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final int INITIAL_CAPACITY
private java.util.Map images
private ComponentPeer componentPeer
| Constructor Detail |
public ImageManager(ComponentPeer componentPeer)
componentPeer - The ComponentPeer whose images will
be managed by this instance.| Method Detail |
public nextapp.echo.ImageReference getImage(java.lang.String imageName)
ImageManager,
identified by imageName.
imageName - The name of the image to return.
ImageReference that corresponds to the
specified name.public int getImageCount()
ImageManager.
ImageManager.public java.util.Iterator getImageNames()
Iterator over the names of images managed by
this ImageManager.
Iterator over the names of images managed by
this ImageManager.
public java.lang.String getImageUri(Connection conn,
java.lang.String imageName)
conn - The connection rendering the image URI.imageName - The name of the image whose URI is to be returned.
public void removeAllImages()
public void setImage(java.lang.String imageName,
nextapp.echo.ImageReference newImage)
imageName - A identifier that will be used for the added image.newImage - The new image to be added.
|
NextApp Echo App Container 1.0.5 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||