public class ListingContext extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_ITEMS
The Constant DEFAULT_MAX_ITEMS.
|
Constructor and Description |
---|
ListingContext()
Instantiates a new listing context.
|
ListingContext(String sorting,
int maxItems,
int skipCount,
boolean sortingModifier)
Instantiates a new listing context.
|
Modifier and Type | Method and Description |
---|---|
ListingFilter |
getFilter()
Returns the
ListingFilter associated to the current ListingContext. |
int |
getMaxItems()
Returns the maximum items within the list.
|
int |
getSkipCount()
Returns current skip count
|
String |
getSortProperty()
Returns the sorting field for the list.
|
boolean |
isSortAscending()
Define the sorting direction.
|
void |
setFilter(ListingFilter filter)
Sets the
ListingFilter . |
void |
setIsSortAscending(Boolean sortAscending)
Returns the sorting direction.
|
void |
setMaxItems(int maxItems)
Sets the max items.
|
void |
setSkipCount(int skipCount)
Sets the skip count.
|
void |
setSortProperty(String sortProperty)
Define the sorting field for the list.
|
public static final int DEFAULT_MAX_ITEMS
public ListingContext()
public ListingContext(String sorting, int maxItems, int skipCount, boolean sortingModifier)
sorting
- the sortingmaxItems
- the max itemsskipCount
- the skip countsortingModifier
- the sorting modifierpublic String getSortProperty()
public void setSortProperty(String sortProperty)
sortProperty
- the new sort propertypublic boolean isSortAscending()
public void setIsSortAscending(Boolean sortAscending)
sortAscending
- the new checks if is sort ascendingpublic int getMaxItems()
public void setMaxItems(int maxItems)
maxItems
- : maximum items Sets the maximum items inside the list.public int getSkipCount()
public void setSkipCount(int skipCount)
skipCount
- : current skip count Sets the current skip count.public ListingFilter getFilter()
ListingFilter
associated to the current ListingContext.public void setFilter(ListingFilter filter)
ListingFilter
.filter
- :Copyright © 2012-2018 Alfresco Software. All Rights Reserved.