Package se.conciliate.extensions.publish
Class LinkFieldContent
java.lang.Object
se.conciliate.extensions.publish.LinkFieldContent
- All Implemented Interfaces:
FieldContent
Provides a link with an icon and title.
-
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 link.abstract String
getTitle
(MTLanguage language) Returns the title of the link in a given language.abstract URL
getURL
(MTLanguage language) Returns the URL of the link in a given language.abstract boolean
Returns true if the link should be opened in a new window.abstract boolean
Returns true if the link should be opened in the top frame even when embedded in an iframe on the page.
-
Constructor Details
-
LinkFieldContent
public LinkFieldContent()
-
-
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 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
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
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.
-