Class PaginatingNewsFeed
java.lang.Object
org.jasig.portlet.newsreader.model.NewsFeed
org.jasig.portlet.newsreader.model.PaginatingNewsFeed
- All Implemented Interfaces:
Serializable
PaginatingNewsFeed class.
- Since:
- 5.1.1
- Author:
- Chris White (christopher.white@manchester.ac.uk)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPaginatingNewsFeed(int entriesPerPage) Constructor for PaginatingNewsFeed.PaginatingNewsFeed(int entriesPerPage, int initialPage) Constructor for PaginatingNewsFeed. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldentries.intGetter for the fieldmaxStories.intgetPage()Getter for the fieldpage.doublegetPageCount.voidsetMaxStories(int maxStories) Setter for the fieldmaxStories.voidsetPage(int p) Setter for the fieldpage.Methods inherited from class org.jasig.portlet.newsreader.model.NewsFeed
equals, getAuthor, getCopyright, getLink, getTitle, hashCode, setAuthor, setCopyright, setEntries, setLink, setTitle, toString
-
Constructor Details
-
PaginatingNewsFeed
public PaginatingNewsFeed(int entriesPerPage) Constructor for PaginatingNewsFeed.
- Parameters:
entriesPerPage- a int
-
PaginatingNewsFeed
public PaginatingNewsFeed(int entriesPerPage, int initialPage) Constructor for PaginatingNewsFeed.
- Parameters:
entriesPerPage- a intinitialPage- a int
-
-
Method Details
-
getPage
public int getPage()Getter for the field
page.- Returns:
- a int
-
setPage
public void setPage(int p) Setter for the field
page.- Parameters:
p- a int
-
getPageCount
public double getPageCount()getPageCount.
- Returns:
- a double
-
setMaxStories
public void setMaxStories(int maxStories) Setter for the field
maxStories.- Parameters:
maxStories- a int
-
getMaxStories
public int getMaxStories()Getter for the field
maxStories.- Returns:
- a int
-
getEntries
Getter for the field
entries.- Overrides:
getEntriesin classNewsFeed- Returns:
- a
Listobject
-