Package se.conciliate.extensions.publish
Class ImageLinkFieldContent
java.lang.Object
se.conciliate.extensions.publish.ImageLinkFieldContent
- All Implemented Interfaces:
FieldContent
Field content that shows a link to an image. In the HTML this
is represented as a link (with an optional icon) that when
clicked opens an image in this window or a new window.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the unique ID of the content type.abstract String
getIcon()
Returns the file name of the icon to show before the image link.abstract BufferedImage
getImage
(MTLanguage language) Returns the image for a given language.abstract String
getImageName
(MTLanguage language) Returns the name of the image in a given language.abstract String
getTitle
(MTLanguage language) Returns the title of the image link in a given language.abstract boolean
Returns true if the image should be opened in a new window.
-
Constructor Details
-
ImageLinkFieldContent
public ImageLinkFieldContent()
-
-
Method Details
-
getContentID
Description copied from interface:FieldContent
Returns the unique ID of the content type.- Specified by:
getContentID
in interfaceFieldContent
- Returns:
- The content type ID.
-
getIcon
Returns the file name of the icon to show before the image link. These icons must be returned by the provider implementation in order to be available.- Returns:
- The file name of the icon to show before the image link.
- Since:
- 3.3
-
getTitle
Returns the title of the image link in a given language.- Parameters:
language
- The language.- Returns:
- The title of the image link in a given language.
- Since:
- 3.3
-
getImageName
Returns the name of the image in a given language.- Parameters:
language
- The language.- Returns:
- The name of the image in a given language.
- Since:
- 3.3
-
getImage
Returns the image for a given language. This image will be shown in a popup window when the link is clicked.- Parameters:
language
- The language.- Returns:
- The image for a given language.
- Since:
- 3.3
-
openInNewWindow
public abstract boolean openInNewWindow()Returns true if the image should be opened in a new window.- Returns:
- true if the image should be opened in a new window.
-