public class EnhancedPageSection extends StaticPageSection
DEFAULT_ORDER| Constructor and Description |
|---|
EnhancedPageSection(String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionLink(String labelMessageKey,
String url)
Add an action link.
|
List<Pair<String,String>> |
getActionLinks(Locale locale,
javax.servlet.http.HttpServletRequest request)
A list of pairs were each entry represents an action link.
|
String |
getImageLink(javax.servlet.http.HttpServletRequest request)
Render and return the URL that should be set as link behind the image.
|
String |
getImageUrl(javax.servlet.http.HttpServletRequest request)
Render and return the URL pointing to the image of the section.
|
boolean |
hasActionLinks() |
boolean |
hasImageUrl() |
void |
setImageLink(String imageLink)
Set a relative or absolute URL which should be added as a link behind the image.
|
void |
setImageUrl(String imageUrl)
Set the URL of an image for the section.
|
addContentTemplateParameter, getContent, getContentTemplateName, getContentTemplateParameter, getId, getOrder, getShortTitle, getTitle, isContentTemplate, isShortTitleAvailable, setContent, setContentMessageKey, setContentTemplateName, setOrder, setShortTitle, setShortTitleMessageKey, setTitle, setTitleMessageKeypublic EnhancedPageSection(String id)
public void addActionLink(String labelMessageKey, String url)
labelMessageKey - the message key of the label of the linkurl - the relative or absolute URL of the linkpublic List<Pair<String,String>> getActionLinks(Locale locale, javax.servlet.http.HttpServletRequest request)
locale - the locale for rendering the link labelrequest - the current requestpublic String getImageLink(javax.servlet.http.HttpServletRequest request)
request - the current requestpublic String getImageUrl(javax.servlet.http.HttpServletRequest request)
request - the current requestpublic boolean hasActionLinks()
public boolean hasImageUrl()
public void setImageLink(String imageLink)
imageLink - the URL of the linkpublic void setImageUrl(String imageUrl)
imageUrl - relative or absolute URL pointing to an imageCopyright © 2019 Communote team. All rights reserved.