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 StringgetIcon()Returns the file name of the icon to show before the link.abstract StringgetTitle(MTLanguage language) Returns the title of the link in a given language.abstract URLgetURL(MTLanguage language) Returns the URL of the link in a given language.abstract booleanReturns true if the link should be opened in a new window.abstract booleanReturns 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:FieldContentReturns the unique ID of the content type.- Specified by:
getContentIDin 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.
-