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
-
Field Summary
Fields inherited from class com.atlassian.confluence.content.render.xhtml.model.DefaultStandardTag
htmlClass, id, style, title
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getWidth()
int
hashCode()
boolean
isBorder()
boolean
void
setAlignment
(String alignment) void
setAlternativeText
(String alternativeText) void
setBorder
(boolean border) void
setExtraQueryParameters
(String queryParams) void
void
void
void
setThumbnail
(boolean thumbnail) void
void
toString()
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 Details
-
DefaultEmbeddedImage
-
-
Method Details
-
getResourceIdentifier
- Specified by:
getResourceIdentifier
in interfaceEmbeddedImage
-
getMimeType
- Specified by:
getMimeType
in interfaceEmbeddedImage
-
getAlternativeText
- Specified by:
getAlternativeText
in interfaceEmbeddedImage
- Returns:
- An alternate text for an image
-
getHeight
- Specified by:
getHeight
in 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
- Specified by:
getSource
in 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:
isThumbnail
in interfaceEmbeddedImage
- Returns:
- true if the image should be shown as a thumbnail.
-
getWidth
- Specified by:
getWidth
in 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
-
setAlternativeText
-
setHeight
-
setWidth
-
setThumbnail
public void setThumbnail(boolean thumbnail) -
isBorder
public boolean isBorder()- Specified by:
isBorder
in interfaceEmbeddedImage
- Returns:
- true if the image should have a border
-
setBorder
public void setBorder(boolean border) -
getAlignment
- Specified by:
getAlignment
in interfaceEmbeddedImage
- Returns:
- the value for the alignment of the image - none, center, left or right
-
setAlignment
-
getHspace
- Specified by:
getHspace
in interfaceEmbeddedImage
- Returns:
- the amount of whitespace to be inserted to the left and right of the image (in pixels)
-
getVspace
- Specified by:
getVspace
in interfaceEmbeddedImage
- Returns:
- the amount of whitespace to be inserted above and below the image (in pixels)
-
setHspace
-
setVspace
-
toString
- Overrides:
toString
in classDefaultStandardTag
-
getExtraQueryParameters
- Specified by:
getExtraQueryParameters
in interfaceEmbeddedImage
- Returns:
- any extra query parameters added by the client. Could potentially be used for servlet filters.
-
setExtraQueryParameters
-
equals
- Overrides:
equals
in classDefaultStandardTag
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDefaultStandardTag
-