nl.gx.webmanager.cms.mediarepository
Interface MediaItemImageVersion

All Superinterfaces:
FormBackingObject, MediaItemVersion, WorkflowEnabled, Wrapper

public interface MediaItemImageVersion
extends MediaItemVersion

Representation of image media item.


Method Summary
 boolean attachFile(org.springframework.web.multipart.MultipartFile multipartFile)
          Attaches a image to this image media item version
 boolean detachFile()
          Detaches a file from this image media item version
 java.lang.String getAlternativeText()
          Return alt text.
 Image getImage()
          Return the image.
 Image getResizedImage(int sizeId)
          Deprecated. use image.getSizedImage(width,height) Return the image for a particular size.
 Image getResizedImage(int width, int height)
          Deprecated. use image.getSizedImage(width,height) Return the image for a width and height.
 ImageSizeModel getSizeModel()
          Return the size model assosiated with this media item image, null if no size model is assosiated with it
 Image getThumbNailImage()
          Return the thumbnail image.
 boolean isEditableAlternativeText()
          Returns a boolean indicating whether the alternative text may be edited at the element the image media item is assigned to .
 void setAlternativeText(java.lang.String text)
          Sets the alternative text of this image media item version.
 
Methods inherited from interface nl.gx.webmanager.cms.mediarepository.MediaItemVersion
addTerm, createRichTextElements, getAttachedLeadImage, getComponent, getContentType, getCreationDate, getDiscussionConfiguration, getElementHolder, getElements, getExpirationDate, getExternalId, getForum, getForumSettings, getFriendlyURLTitle, getHtmlTitle, getLastElement, getLastModifiedDate, getLastModifiedUser, getLead, getLeadImage, getLeadImageMediaItem, getMediaItem, getPrivateNode, getPublicationDate, getResourceInstances, getTargetPage, getTerms, getTitle, getTotalVotes, getVotingAverage, getVotingModel, getWebsite, insertLastElementAtCursor, isArticle, isAuthorized, isBundle, isCurrent, isPublic, removeTerm, setArticle, setAuthorized, setComponent, setContentType, setDiscussionConfiguration, setElementHolder, setElements, setExpirationDate, setExternalId, setForum, setForumSettings, setFriendlyURLTitle, setHtmlTitle, setLead, setLeadImage, setLeadImage, setPrivateNode, setPublic, setPublicationDate, setResourceInstances, setTargetPage, setTerms, setTitle, setWebsite
 
Methods inherited from interface nl.gx.webmanager.wrapper.Wrapper
getId, getUUID, setId, setUUID
 
Methods inherited from interface nl.gx.webmanager.springmvc.FormBackingObject
getNestedPath, getUUID
 
Methods inherited from interface nl.gx.webmanager.cms.workflow.WorkflowEnabled
getWorkflowModel, getWorkflowModelInstance
 

Method Detail

getAlternativeText

java.lang.String getAlternativeText()
Return alt text.

Returns:
alt text.

setAlternativeText

void setAlternativeText(java.lang.String text)
Sets the alternative text of this image media item version.

Parameters:
text - The text to set

getImage

Image getImage()
Return the image.

Returns:
the image.

getThumbNailImage

Image getThumbNailImage()
Return the thumbnail image.

Returns:
the thumbnail image.

getSizeModel

ImageSizeModel getSizeModel()
Return the size model assosiated with this media item image, null if no size model is assosiated with it

Returns:
the size model assosiated with this media item image

getResizedImage

Image getResizedImage(int sizeId)
Deprecated. use image.getSizedImage(width,height) Return the image for a particular size.

Returns:
the image for a particular size.

getResizedImage

Image getResizedImage(int width,
                      int height)
Deprecated. use image.getSizedImage(width,height) Return the image for a width and height.

Returns:
the image for a width and height.

isEditableAlternativeText

boolean isEditableAlternativeText()
Returns a boolean indicating whether the alternative text may be edited at the element the image media item is assigned to .

Returns:
a boolean.

attachFile

boolean attachFile(org.springframework.web.multipart.MultipartFile multipartFile)
Attaches a image to this image media item version

Parameters:
multipartFile - The file to attach
Returns:
true if attaching the file succeeded, false otherwise

detachFile

boolean detachFile()
Detaches a file from this image media item version

Returns:
true if attaching the file succeeded, false otherwise


Copyright © 2007-2011 GX Software BV. All Rights Reserved.