Class ImageLinkFieldContent

java.lang.Object
se.conciliate.extensions.publish.ImageLinkFieldContent
All Implemented Interfaces:
FieldContent

public abstract class ImageLinkFieldContent extends Object implements 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 Details

    • ImageLinkFieldContent

      public ImageLinkFieldContent()
  • Method Details

    • getContentID

      public String getContentID()
      Description copied from interface: FieldContent
      Returns the unique ID of the content type.
      Specified by:
      getContentID in interface FieldContent
      Returns:
      The content type ID.
    • getIcon

      public abstract String 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

      public abstract String getTitle(MTLanguage language)
      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

      public abstract String getImageName(MTLanguage language)
      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

      public abstract BufferedImage getImage(MTLanguage language)
      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.