Class DefaultEmbeddedImage
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.model.DefaultStandardTag
-
- com.atlassian.confluence.content.render.xhtml.model.resource.DefaultEmbeddedImage
-
- All Implemented Interfaces:
EmbeddedImage,StandardTag
public class DefaultEmbeddedImage extends DefaultStandardTag implements EmbeddedImage
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.content.render.xhtml.model.DefaultStandardTag
htmlClass, id, style, title
-
-
Constructor Summary
Constructors Constructor Description DefaultEmbeddedImage(NamedResourceIdentifier resourceIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAlignment()StringgetAlternativeText()StringgetExtraQueryParameters()StringgetHeight()StringgetHspace()StringgetMimeType()ResourceIdentifiergetResourceIdentifier()StringgetSource()StringgetVspace()StringgetWidth()inthashCode()booleanisBorder()booleanisThumbnail()voidsetAlignment(String alignment)voidsetAlternativeText(String alternativeText)voidsetBorder(boolean border)voidsetExtraQueryParameters(String queryParams)voidsetHeight(String height)voidsetHspace(String hspace)voidsetSource(String source)voidsetThumbnail(boolean thumbnail)voidsetVspace(String vspace)voidsetWidth(String width)StringtoString()-
Methods inherited from class com.atlassian.confluence.content.render.xhtml.model.DefaultStandardTag
getHtmlClass, getId, getStyle, getTitle, setHtmlClass, setId, setStyle, setTitle
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.xhtml.api.StandardTag
getHtmlClass, getId, getStyle, getTitle
-
-
-
-
Constructor Detail
-
DefaultEmbeddedImage
public DefaultEmbeddedImage(NamedResourceIdentifier resourceIdentifier)
-
-
Method Detail
-
getResourceIdentifier
public ResourceIdentifier getResourceIdentifier()
- Specified by:
getResourceIdentifierin interfaceEmbeddedImage
-
getMimeType
public String getMimeType()
- Specified by:
getMimeTypein interfaceEmbeddedImage
-
getAlternativeText
public String getAlternativeText()
- Specified by:
getAlternativeTextin interfaceEmbeddedImage- Returns:
- An alternate text for an image
-
getHeight
public String getHeight()
- Specified by:
getHeightin interfaceEmbeddedImage- Returns:
- the height of the image either in pixels or percent. e.g. may be purely numeric, or something like nnpx or nn%
-
getSource
public String getSource()
- Specified by:
getSourcein interfaceEmbeddedImage- Returns:
- the url for the source of the image. This only applies to external embedded images so may be null if the image is a Confluence attachment.
-
isThumbnail
public boolean isThumbnail()
- Specified by:
isThumbnailin interfaceEmbeddedImage- Returns:
- true if the image should be shown as a thumbnail.
-
getWidth
public String getWidth()
- Specified by:
getWidthin interfaceEmbeddedImage- Returns:
- the width of the image either in pixels or percent. e.g. may be purely numeric, or something like nnpx or nn%
-
setSource
public void setSource(String source)
-
setAlternativeText
public void setAlternativeText(String alternativeText)
-
setHeight
public void setHeight(String height)
-
setWidth
public void setWidth(String width)
-
setThumbnail
public void setThumbnail(boolean thumbnail)
-
isBorder
public boolean isBorder()
- Specified by:
isBorderin interfaceEmbeddedImage- Returns:
- true if the image should have a border
-
setBorder
public void setBorder(boolean border)
-
getAlignment
public String getAlignment()
- Specified by:
getAlignmentin interfaceEmbeddedImage- Returns:
- the value for the alignment of the image - none, center, left or right
-
setAlignment
public void setAlignment(String alignment)
-
getHspace
public String getHspace()
- Specified by:
getHspacein interfaceEmbeddedImage- Returns:
- the amount of whitespace to be inserted to the left and right of the image (in pixels)
-
getVspace
public String getVspace()
- Specified by:
getVspacein interfaceEmbeddedImage- Returns:
- the amount of whitespace to be inserted above and below the image (in pixels)
-
setHspace
public void setHspace(String hspace)
-
setVspace
public void setVspace(String vspace)
-
toString
public String toString()
- Overrides:
toStringin classDefaultStandardTag
-
getExtraQueryParameters
public String getExtraQueryParameters()
- Specified by:
getExtraQueryParametersin interfaceEmbeddedImage- Returns:
- any extra query parameters added by the client. Could potentially be used for servlet filters.
-
setExtraQueryParameters
public void setExtraQueryParameters(String queryParams)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDefaultStandardTag
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDefaultStandardTag
-
-