Class PageParams
java.lang.Object
de.espirit.firstspirit.access.store.PageParams
- Direct Known Subclasses:
ContentMultiPageParams.ContentPageParams
- Since:
- 4.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PageParams
Static instance which may be used as page params for 'single pages'. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
long
Calculate the last change date.long
getLastChangeDate
(long after) Calculate the last change date after the provided timestamp.@NotNull String
@NotNull String
int
getSize()
A single page may render multiple containers, e.g. datasets, on one page - this method delivers the number of instances.final boolean
isFirst()
boolean
isLast()
-
Field Details
-
SINGLE_PAGE_PARAMS
Static instance which may be used as page params for 'single pages'.- Since:
- 5.0.3
-
-
Constructor Details
-
PageParams
public PageParams(int index, boolean last) - Since:
- 4.0
-
-
Method Details
-
getSize
public int getSize()A single page may render multiple containers, e.g. datasets, on one page - this method delivers the number of instances.- Returns:
- number of inner elements
- Since:
- 5.0.3
-
isFirst
public final boolean isFirst()- Since:
- 4.0
-
isLast
public boolean isLast()- Since:
- 4.0
-
getIndex
public int getIndex()- Since:
- 4.0
-
getPageSuffix
- Since:
- 4.0
-
getPreviewSuffix
- Since:
- 4.0
-
getLastChangeDate
public long getLastChangeDate()Calculate the last change date. The default implementation callsgetLastChangeDate(0L)
.- Since:
- 4.0
- See Also:
-
getLastChangeDate
public long getLastChangeDate(long after) Calculate the last change date after the provided timestamp. The default implementation returns the provided timestamp.- Since:
- 4.2.400
- See Also:
-