Package org.javlo.component.core
Interface IReverseLinkComponent
-
- All Known Implementing Classes:
ArrayFileComponent,ExternalLink,GenericFile,InternalLink,SimpleInternalLink,SimpleVideo,SmartExternalLink,Sound,UnsubsribeLink,VFSFile
public interface IReverseLinkComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLinkText(ContentContext ctx)this text must be replace with a link.StringgetLinkURL(ContentContext ctx)return the link code (in HTML) with the link text in.MenuElementgetPage()get the page of the component.booleanisOnlyFirstOccurrence()only modify the first occurrence on the pagebooleanisOnlyPreviousComponent()change only the component juste before link componentbooleanisOnlyThisPage()only if reverse link change text only on the same page than the component.booleanisReverseLink()return true if the component must be use as reverselink.
-
-
-
Method Detail
-
getPage
MenuElement getPage()
get the page of the component. (same method define in IVisualContentComponent.- Returns:
-
getLinkText
String getLinkText(ContentContext ctx)
this text must be replace with a link.- Returns:
-
getLinkURL
String getLinkURL(ContentContext ctx)
return the link code (in HTML) with the link text in.- Returns:
-
isReverseLink
boolean isReverseLink()
return true if the component must be use as reverselink.- Returns:
-
isOnlyFirstOccurrence
boolean isOnlyFirstOccurrence()
only modify the first occurrence on the page
-
isOnlyThisPage
boolean isOnlyThisPage()
only if reverse link change text only on the same page than the component.- Returns:
-
isOnlyPreviousComponent
boolean isOnlyPreviousComponent()
change only the component juste before link component- Returns:
-
-