Class LinkFieldContent

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

public abstract class LinkFieldContent extends Object implements FieldContent
Provides a link with an icon and title.
  • Constructor Details

    • LinkFieldContent

      public LinkFieldContent()
  • 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 link. This icon must be returned by the provider implementation in order to be available.
      Returns:
      The file name of the icon to show before the link.
    • getTitle

      public abstract String getTitle(MTLanguage language)
      Returns the title of the link in a given language.
      Parameters:
      language - The language.
      Returns:
      The title of the link in a given language.
    • getURL

      public abstract URL getURL(MTLanguage language)
      Returns the URL of the link in a given language.
      Parameters:
      language - The language.
      Returns:
      The URL in a given language.
    • isOpenInNewWindow

      public abstract boolean isOpenInNewWindow()
      Returns true if the link should be opened in a new window.
      Returns:
      true if the link should be opened in a new window.
    • isOpenInTop

      public abstract boolean isOpenInTop()
      Returns true if the link should be opened in the top frame even when embedded in an iframe on the page.
      Returns:
      true if the link should be opened in the top frame even when embedded in an iframe on the page.