public class Image extends AbstractIdentifiedHibernateObject<Image>
id
Constructor and Description |
---|
Image()
Returns the relative path to the image.
|
Image(BufferedImage img) |
Modifier and Type | Method and Description |
---|---|
void |
clearImage() |
protected static ImageIcon |
createImageIcon(Blob imBlob) |
static Image |
getBackArrow() |
BufferedImage |
getBufferedImage() |
static Image |
getDefaultProductImage() |
static Image |
getDefaultUserImage() |
String |
getDescription()
A short description for the image.
|
Icon |
getImage()
This method returns a pointer to the real image.
|
static Image |
getImage(String id) |
Blob |
getImageBlob()
Get the image blog data from the database
|
void |
setBufferedImage(BufferedImage img) |
void |
setDescription(String description) |
void |
setImageBlob(Blob imageBlob) |
void |
setImageFromPath(String fileName)
The following method will set this beans image by reading it from a file
|
equals, getId, getVersion, hashCode, setId, setVersion
delete, getGetters, getKeyValue, merge, refresh, save
public Image()
All images are stored inside a folder called images inside the POSper directory
public Image(BufferedImage img)
public String getDescription()
public void setDescription(String description)
public BufferedImage getBufferedImage()
public Icon getImage()
public void clearImage()
public static Image getDefaultUserImage()
public static Image getDefaultProductImage()
public static Image getBackArrow()
public Blob getImageBlob()
public void setImageBlob(Blob imageBlob)
public final void setBufferedImage(BufferedImage img)
public void setImageFromPath(String fileName)
fileName
- Copyright © 2021. All rights reserved.