com.atlassian.confluence.content.render.xhtml.model.resource
Class DefaultEmbeddedImage

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.model.DefaultStandardTag
      extended by 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
DefaultEmbeddedImage(NamedResourceIdentifier resourceIdentifier)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlignment()
           
 java.lang.String getAlternativeText()
           
 java.lang.String getExtraQueryParameters()
           
 java.lang.String getHeight()
           
 java.lang.String getHspace()
           
 java.lang.String getMimeType()
           
 ResourceIdentifier getResourceIdentifier()
           
 java.lang.String getSource()
           
 java.lang.String getVspace()
           
 java.lang.String getWidth()
           
 int hashCode()
           
 boolean isBorder()
           
 boolean isThumbnail()
           
 void setAlignment(java.lang.String alignment)
           
 void setAlternativeText(java.lang.String alternativeText)
           
 void setBorder(boolean border)
           
 void setExtraQueryParameters(java.lang.String queryParams)
           
 void setHeight(java.lang.String height)
           
 void setHspace(java.lang.String hspace)
           
 void setSource(java.lang.String source)
           
 void setThumbnail(boolean thumbnail)
           
 void setVspace(java.lang.String vspace)
           
 void setWidth(java.lang.String width)
           
 java.lang.String 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 Detail

DefaultEmbeddedImage

public DefaultEmbeddedImage(NamedResourceIdentifier resourceIdentifier)
Method Detail

getResourceIdentifier

public ResourceIdentifier getResourceIdentifier()
Specified by:
getResourceIdentifier in interface EmbeddedImage

getMimeType

public java.lang.String getMimeType()
Specified by:
getMimeType in interface EmbeddedImage

getAlternativeText

public java.lang.String getAlternativeText()
Specified by:
getAlternativeText in interface EmbeddedImage
Returns:
An alternate text for an image

getHeight

public java.lang.String getHeight()
Specified by:
getHeight in interface EmbeddedImage
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 java.lang.String getSource()
Specified by:
getSource in interface EmbeddedImage
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 interface EmbeddedImage
Returns:
true if the image should be shown as a thumbnail.

getWidth

public java.lang.String getWidth()
Specified by:
getWidth in interface EmbeddedImage
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(java.lang.String source)

setAlternativeText

public void setAlternativeText(java.lang.String alternativeText)

setHeight

public void setHeight(java.lang.String height)

setWidth

public void setWidth(java.lang.String width)

setThumbnail

public void setThumbnail(boolean thumbnail)

isBorder

public boolean isBorder()
Specified by:
isBorder in interface EmbeddedImage
Returns:
true if the image should have a border

setBorder

public void setBorder(boolean border)

getAlignment

public java.lang.String getAlignment()
Specified by:
getAlignment in interface EmbeddedImage
Returns:
the value for the alignment of the image - none, center, left or right

setAlignment

public void setAlignment(java.lang.String alignment)

getHspace

public java.lang.String getHspace()
Specified by:
getHspace in interface EmbeddedImage
Returns:
the amount of whitespace to be inserted to the left and right of the image (in pixels)

getVspace

public java.lang.String getVspace()
Specified by:
getVspace in interface EmbeddedImage
Returns:
the amount of whitespace to be inserted above and below the image (in pixels)

setHspace

public void setHspace(java.lang.String hspace)

setVspace

public void setVspace(java.lang.String vspace)

toString

public java.lang.String toString()
Overrides:
toString in class DefaultStandardTag

getExtraQueryParameters

public java.lang.String getExtraQueryParameters()
Specified by:
getExtraQueryParameters in interface EmbeddedImage
Returns:
any extra query parameters added by the client. Could potentially be used for servlet filters.

setExtraQueryParameters

public void setExtraQueryParameters(java.lang.String queryParams)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class DefaultStandardTag

hashCode

public int hashCode()
Overrides:
hashCode in class DefaultStandardTag


Copyright © 2003-2014 Atlassian. All Rights Reserved.