|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.ui.form.field.upload.basic.BasicFileItemWrapper info.magnolia.dam.asset.field.DamFileItemWrapper
public class DamFileItemWrapper
MultiMedia extended Implementation of the BasicFileItemWrapper
.
Field Summary |
---|
Fields inherited from class info.magnolia.ui.form.field.upload.basic.BasicFileItemWrapper |
---|
fileSize, item |
Constructor Summary | |
---|---|
DamFileItemWrapper(info.magnolia.ui.vaadin.integration.jcr.AbstractJcrNodeAdapter jcrItem,
File tmpDirectory,
DamModule damModule)
|
Method Summary | |
---|---|
void |
clearProperties()
|
long |
getDuration()
|
long |
getHeight()
|
MediaType |
getMediaType()
|
protected String |
getMediaTypeIdForMimeType(String mimeType)
|
protected UploadConfig |
getUploadConfig()
|
long |
getWidth()
|
boolean |
isImage()
|
protected void |
populateItem()
Based on the FileItemWrapper values, populate the Item .Add height, width and duration information. |
protected void |
populateWrapperFromFileInputStream(InputStream is)
Only update the File and File Sizes (size, height, width, duration). Used once MediaEditor returns in order to update the File based on the modifications. |
protected void |
populateWrapperFromItem()
Populate the current ItemWrapper with the Item properties. Based on the MediaType set the appropriate properties. |
protected void |
populateWrapperFromReceiver(info.magnolia.ui.form.field.upload.UploadReceiver receiver)
Populate the current ItemWrapper with the receiver properties. Based on the MediaType set the appropriate properties. |
Methods inherited from class info.magnolia.ui.form.field.upload.basic.BasicFileItemWrapper |
---|
getExtension, getFile, getFileFormatProperty, getFileName, getFileNameProperty, getFileSize, getMimeType, initJcrItemProperty, isEmpty, populateFromItem, populateFromReceiver, reloadPrevious |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DamFileItemWrapper(info.magnolia.ui.vaadin.integration.jcr.AbstractJcrNodeAdapter jcrItem, File tmpDirectory, DamModule damModule)
Method Detail |
---|
protected void populateWrapperFromItem()
populateWrapperFromItem
in class info.magnolia.ui.form.field.upload.basic.BasicFileItemWrapper
protected void populateWrapperFromReceiver(info.magnolia.ui.form.field.upload.UploadReceiver receiver)
populateWrapperFromReceiver
in class info.magnolia.ui.form.field.upload.basic.BasicFileItemWrapper
protected void populateWrapperFromFileInputStream(InputStream is)
public void clearProperties()
clearProperties
in interface info.magnolia.ui.form.field.upload.FileItemWrapper
clearProperties
in class info.magnolia.ui.form.field.upload.basic.BasicFileItemWrapper
protected void populateItem()
Item
.
populateItem
in class info.magnolia.ui.form.field.upload.basic.BasicFileItemWrapper
protected String getMediaTypeIdForMimeType(String mimeType)
protected UploadConfig getUploadConfig()
public boolean isImage()
public long getHeight()
public long getWidth()
public long getDuration()
public MediaType getMediaType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |