Package org.silverpeas.looks.aurora
Class NewsList
- java.lang.Object
-
- org.silverpeas.looks.aurora.ListOfContributions
-
- org.silverpeas.looks.aurora.NewsList
-
public class NewsList extends ListOfContributions
Created by Nicolas on 19/07/2017.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNewsList.RenderingType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<NewsListButton>getButtons()StringgetImageSize()Gets the image size the image of news MUST be displayed.List<AuroraNews>getNews()NewsList.RenderingTypegetRenderingType()Gets the type the news list MUST be rendered in.AuroraSpaceHomePageZonegetZone()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.voidsetRenderingType(NewsList.RenderingType type)Sets the type the news list MUST be rendered in.voidsetZone(AuroraSpaceHomePageZone zone)Sets the zone location the news list MUST be managed.voidwithTaxonomyButtons()-
Methods inherited from class org.silverpeas.looks.aurora.ListOfContributions
getAppShortcuts, getUniqueAppURL
-
-
-
-
Method Detail
-
getNews
public List<AuroraNews> getNews()
-
limitNews
public void limitNews(int size)
-
isEmpty
public boolean isEmpty()
-
withTaxonomyButtons
public void withTaxonomyButtons()
-
getButtons
public List<NewsListButton> getButtons()
-
getZone
public AuroraSpaceHomePageZone getZone()
Gets the zone location the news list MUST be managed.- Returns:
- a
AuroraSpaceHomePageZoneinstance.
-
getImageSize
public String 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
public void setImageSize(String imageSize)
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
public void setZone(AuroraSpaceHomePageZone zone)
Sets the zone location the news list MUST be managed.- Parameters:
zone-AuroraSpaceHomePageZoneinstance.
-
getRenderingType
public NewsList.RenderingType getRenderingType()
Gets the type the news list MUST be rendered in.- Returns:
- a
NewsList.RenderingTypeinstance.
-
setRenderingType
public void setRenderingType(NewsList.RenderingType type)
Sets the type the news list MUST be rendered in.- Parameters:
type- aNewsList.RenderingTypeinstance.
-
-