|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.presentation.portlet.widgets.model.WidgetModel
org.jaffa.presentation.portlet.widgets.model.ImageModel
Model for the Image widget. This will keep the image in memory by default. This can however be modified to store the image in a temporary folder on the filesystem.
| Constructor Summary | |
ImageModel(byte[] image)
Create a new image model. |
|
ImageModel(byte[] image,
String extention)
Create a new Image Model specifying the image type (if null, GIF is assumed). |
|
| Method Summary | |
void |
finalize()
This will ensure that the temporary file (if created) gets deleted. |
String |
getExtention()
Getter for property extension (image type). |
byte[] |
getImage()
Get the byte array for the image. |
String |
getImageUrl()
Returns the URL to access the image relative of the web server. |
String |
getMimeType()
Getter for property mimeType. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageModel(byte[] image)
image - The image.
public ImageModel(byte[] image,
String extention)
image - The image.extention - The image type.| Method Detail |
public String getMimeType()
public String getExtention()
public String getImageUrl()
public byte[] getImage()
throws IOException
IOException - if any error occurs in reading the image from the filesystem.public void finalize()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||