Package org.silverpeas.looks.aurora
Class NewsList
java.lang.Object
org.silverpeas.looks.aurora.ListOfContributions
org.silverpeas.looks.aurora.NewsList
Created by Nicolas on 19/07/2017.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the image size the image of news MUST be displayed.getNews()Gets the type the news list MUST be rendered in.getZone()Gets the zone location the news list MUST be managed.booleanisEmpty()voidlimitNews(int size) voidsetImageSize(String imageSize) Sets the image size the image of news MUST be displayed.voidSets the type the news list MUST be rendered in.voidSets the zone location the news list MUST be managed.voidMethods inherited from class org.silverpeas.looks.aurora.ListOfContributions
getApp, getAppShortcuts, getUniqueAppId, getUniqueAppURL
-
Constructor Details
-
NewsList
public NewsList(List<org.silverpeas.components.quickinfo.model.News> someNews, org.silverpeas.core.admin.component.model.ComponentInst app)
-
-
Method Details
-
getNews
-
limitNews
public void limitNews(int size) -
isEmpty
public boolean isEmpty() -
withTaxonomyButtons
public void withTaxonomyButtons() -
getButtons
-
getZone
Gets the zone location the news list MUST be managed.- Returns:
- a
AuroraSpaceHomePageZoneinstance.
-
getImageSize
Gets the image size the image of news MUST be displayed.Format MUST be "WxH" (W = width and H = height in pixels)
- Returns:
- the image size (width x height) as string.
-
setImageSize
Sets the image size the image of news MUST be displayed.Format MUST be "WxH" (W = width and H = height in pixels)
- Parameters:
imageSize- the image size (width x height) as string.
-
setZone
Sets the zone location the news list MUST be managed.- Parameters:
zone-AuroraSpaceHomePageZoneinstance.
-
getRenderingType
Gets the type the news list MUST be rendered in.- Returns:
- a
NewsList.RenderingTypeinstance.
-
setRenderingType
Sets the type the news list MUST be rendered in.- Parameters:
type- aNewsList.RenderingTypeinstance.
-