|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riotfamily.riot.list.support.ListParamsImpl
public class ListParamsImpl
A bean style implementation of the ListModelParams interface.
Constructor Summary | |
---|---|
ListParamsImpl()
|
|
ListParamsImpl(ListParams params)
|
Method Summary | |
---|---|
Object |
getFilter()
Returns an object populated by the list's filter-form, or null if the list does not have a filter. |
String[] |
getFilteredProperties()
Returns the names of all properties bound to the filter-form, or null if the list does not have a filter. |
int |
getOffset()
Returns the offset (starting at 0) of the first object that should be displayed. |
List<Order> |
getOrder()
Returns a list of Order objects that should be used to sort
the list. |
int |
getPage()
|
int |
getPageSize()
Returns the maximum number of objects that should be displayed on a page. |
Order |
getPrimaryOrder()
|
String |
getSearch()
Returns the String that should be used to perform a full-text search, or null if no search should be performed. |
String[] |
getSearchProperties()
Returns the name of all properties that should be included in the full-text search, or null if searching is disabled. |
boolean |
hasOrder()
Returns whether sort-order was specified. |
void |
orderBy(String property,
boolean ascending,
boolean caseSensitive)
Changes the sort order so that the list will be ordered by the given property. |
void |
setFilter(Object filter)
|
void |
setFilteredProperties(String[] filterProperties)
|
void |
setOffset(int offset)
|
void |
setOrder(List<Order> order)
|
void |
setOrder(Order order)
|
void |
setPage(int page)
|
void |
setPageSize(int pageSize)
|
void |
setSearch(String search)
|
void |
setSearchProperties(String[] searchProperties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListParamsImpl()
public ListParamsImpl(ListParams params)
Method Detail |
---|
public Object getFilter()
ListParams
null
if the list does not have a filter.
getFilter
in interface ListParams
public void setFilter(Object filter)
public String[] getFilteredProperties()
ListParams
null
if the list does not have a filter.
getFilteredProperties
in interface ListParams
public void setFilteredProperties(String[] filterProperties)
public String getSearch()
ListParams
null
if no search should be performed.
getSearch
in interface ListParams
public void setSearch(String search)
public String[] getSearchProperties()
ListParams
null
if searching is disabled.
getSearchProperties
in interface ListParams
public void setSearchProperties(String[] searchProperties)
public int getOffset()
ListParams
getOffset
in interface ListParams
public void setOffset(int offset)
public int getPage()
public void setPage(int page)
public List<Order> getOrder()
ListParams
Order
objects that should be used to sort
the list.
getOrder
in interface ListParams
public void setOrder(List<Order> order)
public void setOrder(Order order)
public boolean hasOrder()
ListParams
hasOrder
in interface ListParams
public Order getPrimaryOrder()
public void orderBy(String property, boolean ascending, boolean caseSensitive)
public int getPageSize()
ListParams
getPageSize
in interface ListParams
public void setPageSize(int pageSize)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |