Package org.cyclos.model.system.images
Class ImageVO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityVO
-
- org.cyclos.model.NamedEntityVO
-
- org.cyclos.model.utils.StoredFileVO
-
- org.cyclos.model.system.images.ImageVO
-
- All Implemented Interfaces:
Serializable,Comparable<NamedEntityVO>,IBinaryFile,IEntity,INamedEntity,IImage
- Direct Known Subclasses:
ConfigurationImageVO,DefaultUserImageVO,SystemCustomImageVO,ThemeImageVO,VoucherTemplateImageVO
public class ImageVO extends StoredFileVO implements IImage
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAMEstatic BasicProperty<Boolean,ImageVO>CONVERTED_TO_JPEGstatic BasicProperty<Integer,ImageVO>HEIGHTstatic BasicProperty<String,ImageVO>KEYstatic BasicProperty<ImageNature,ImageVO>NATUREstatic BasicProperty<Integer,ImageVO>WIDTH-
Fields inherited from class org.cyclos.model.utils.StoredFileVO
CONTENT_TYPE, LAST_MODIFIED, LAST_MODIFIED_IN_MILLIS, LENGTH
-
Fields inherited from class org.cyclos.model.NamedEntityVO
NAME
-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()intgetHeight()StringgetKey()ImageNaturegetNature()intgetWidth()booleanisConvertedToJpeg()voidsetConvertedToJpeg(boolean convertedToJpeg)voidsetHeight(int height)voidsetKey(String key)voidsetNature(ImageNature nature)voidsetWidth(int width)-
Methods inherited from class org.cyclos.model.utils.StoredFileVO
getContentType, getLastModified, getLastModifiedInMillis, getLength, setContentType, setLastModified, setLastModifiedInMillis, setLength, toString
-
Methods inherited from class org.cyclos.model.NamedEntityVO
compareTo, getName, setName
-
Methods inherited from class org.cyclos.model.EntityModel
getId, setId
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId, values
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.contentmanagement.IBinaryFile
getContentType, getLength
-
Methods inherited from interface org.cyclos.model.INamedEntity
getName, setName
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
CONVERTED_TO_JPEG
public static final BasicProperty<Boolean,ImageVO> CONVERTED_TO_JPEG
-
HEIGHT
public static final BasicProperty<Integer,ImageVO> HEIGHT
-
KEY
public static final BasicProperty<String,ImageVO> KEY
-
NATURE
public static final BasicProperty<ImageNature,ImageVO> NATURE
-
WIDTH
public static final BasicProperty<Integer,ImageVO> WIDTH
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classStoredFileVO
-
isConvertedToJpeg
public boolean isConvertedToJpeg()
-
setConvertedToJpeg
public void setConvertedToJpeg(boolean convertedToJpeg)
-
setHeight
public void setHeight(int height)
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getNature
public ImageNature getNature()
-
setNature
public void setNature(ImageNature nature)
-
setWidth
public void setWidth(int width)
-
className
public String className()
- Overrides:
classNamein classStoredFileVO
-
-