nl.gx.webmanager.cms.core
Interface Image

All Known Subinterfaces:
InternalImage

public interface Image

Image object.


Method Summary
 java.lang.String getAbsoluteUrl()
          Returns the absolute URL to the image file.
 java.lang.String getAlign()
          Returns alignment.
 java.lang.String getAlternativeText()
          Returns alt text for the HTML IMG tag.
 int getHeight()
          Returns image height.
 java.lang.String getHtmlTag()
          Deprecated. html tag is not xhtml strict compliant, create tag from presentation JSP.
 Image getSizedImage(int width, int height)
          Returns the image for a particular size.
 java.lang.String getUrl()
          Returns the URL to the image file.
 Website getWebsite()
          Returns website which owns the image.
 int getWidth()
          Returns image width.
 boolean isExists()
          Returns whether image exists.
 

Method Detail

getUrl

java.lang.String getUrl()
Returns the URL to the image file.

Returns:
the URL to the image file.

getAbsoluteUrl

java.lang.String getAbsoluteUrl()
Returns the absolute URL to the image file.

Returns:
the absolute URL to the image file.

getHtmlTag

@Deprecated
java.lang.String getHtmlTag()
Deprecated. html tag is not xhtml strict compliant, create tag from presentation JSP.

Returns html img tag for image.

Returns:
html img tag for image.

getWidth

int getWidth()
Returns image width.

Returns:
image width.

getHeight

int getHeight()
Returns image height.

Returns:
image height.

getAlign

java.lang.String getAlign()
Returns alignment.

Returns:
alignment.

getWebsite

Website getWebsite()
Returns website which owns the image.

Returns:
website which owns the image.

isExists

boolean isExists()
Returns whether image exists. Useful when using >wm:image< tag for testing availability.

Returns:
true if image exists, false otherwise.

getAlternativeText

java.lang.String getAlternativeText()
Returns alt text for the HTML IMG tag.

Returns:
alt text for the HTML IMG tag.

getSizedImage

Image getSizedImage(int width,
                    int height)
Returns the image for a particular size.

Parameters:
width - Resize the image to this width.
height - Resize the image to this height.
Returns:
the image for a particular size.


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