public class DatatableRequest
extends java.lang.Object
HttpServletRequest
with parseRequest(HttpServletRequest)
.http://datatables.net/
Constructor and Description |
---|
DatatableRequest() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getbRegex()
True if the global filter should be treated as a regular expression for advanced filtering,
false if not.
|
java.lang.Boolean[] |
getbRegexCol()
True if the individual column filter should be treated as a regular expression for advanced
filtering, false if not.
|
java.lang.Boolean[] |
getbSearchableCol()
Indicator for if a column is flagged as searchable or not on the client-side.
|
java.lang.Boolean[] |
getbSortableCol()
Indicator for if a column is flagged as sortable or not on the client-side.
|
java.lang.Integer |
getiColumns()
Number of columns being displayed (useful for getting individual column search info).
|
java.lang.Integer |
getiDisplayLength()
Number of records that the table can display in the current draw.
|
java.lang.Integer |
getiDisplayStart()
Display start point in the current data set.
|
java.lang.Integer[] |
getiSortCol()
Column being sorted on (you will need to decode this number for your database).
|
java.lang.Integer |
getiSortingCols()
Number of columns to sort on.
|
java.lang.String[] |
getmDataPropCol()
The value specified by mDataProp for each column.
|
java.lang.Integer |
getsEcho()
Information for DataTables to use for rendering.
|
java.lang.String |
getsSearch()
Global search field.
|
java.lang.String[] |
getsSearchCol()
Individual column filter.
|
java.lang.String[] |
getsSortDirCol()
Direction to be sorted - "desc" or "asc".
|
static DatatableRequest |
parseRequest(javax.servlet.http.HttpServletRequest request)
Creates
DatatableRequest from parameters found in the given request. |
void |
setbRegex(java.lang.Boolean bRegex) |
void |
setbRegexCol(java.lang.Boolean[] bRegexCol) |
void |
setbSearchableCol(java.lang.Boolean[] bSearchableCol) |
void |
setbSortableCol(java.lang.Boolean[] bSortableCol) |
void |
setiColumns(java.lang.Integer iColumns) |
void |
setiDisplayLength(java.lang.Integer iDisplayLength) |
void |
setiDisplayStart(java.lang.Integer iDisplayStart) |
void |
setiSortCol(java.lang.Integer[] iSortCol) |
void |
setiSortingCols(java.lang.Integer iSortingCols) |
void |
setmDataPropCol(java.lang.String[] mDataPropCol) |
void |
setsEcho(java.lang.Integer sEcho) |
void |
setsSearch(java.lang.String sSearch) |
void |
setsSearchCol(java.lang.String[] sSearchCol) |
void |
setsSortDirCol(java.lang.String[] sSortDirCol) |
public java.lang.Integer getiDisplayStart()
public void setiDisplayStart(java.lang.Integer iDisplayStart)
iDisplayStart
- the iDisplayStart to setgetiDisplayStart()
public java.lang.Integer getiDisplayLength()
public void setiDisplayLength(java.lang.Integer iDisplayLength)
iDisplayLength
- the iDisplayLength to setgetiDisplayLength()
public java.lang.Integer getiColumns()
public void setiColumns(java.lang.Integer iColumns)
iColumns
- the iColumns to setgetiColumns()
public java.lang.String getsSearch()
public void setsSearch(java.lang.String sSearch)
sSearch
- the sSearch to setgetsSearch()
public java.lang.Boolean getbRegex()
public void setbRegex(java.lang.Boolean bRegex)
bRegex
- the bRegex to setgetbRegex()
public java.lang.Boolean[] getbSearchableCol()
public void setbSearchableCol(java.lang.Boolean[] bSearchableCol)
bSearchableCol
- the bSearchable to setgetbSearchableCol()
public java.lang.String[] getsSearchCol()
public void setsSearchCol(java.lang.String[] sSearchCol)
sSearchCol
- the sSearchColumn to setgetsSearchCol()
public java.lang.Boolean[] getbRegexCol()
public void setbRegexCol(java.lang.Boolean[] bRegexCol)
bRegexCol
- the bRegexColumn to setgetbRegexCol()
public java.lang.Boolean[] getbSortableCol()
public void setbSortableCol(java.lang.Boolean[] bSortableCol)
bSortableCol
- the bSortable to setgetbSortableCol()
public java.lang.Integer getiSortingCols()
public void setiSortingCols(java.lang.Integer iSortingCols)
iSortingCols
- the iSortingCols to setgetiSortingCols()
public java.lang.Integer[] getiSortCol()
public void setiSortCol(java.lang.Integer[] iSortCol)
iSortCol
- the iSortCol to setgetiSortCol()
public java.lang.String[] getsSortDirCol()
public void setsSortDirCol(java.lang.String[] sSortDirCol)
sSortDirCol
- the sSortDir to setgetsSortDirCol()
public java.lang.String[] getmDataPropCol()
public void setmDataPropCol(java.lang.String[] mDataPropCol)
mDataPropCol
- the mDataProp to setgetmDataPropCol()
public java.lang.Integer getsEcho()
public void setsEcho(java.lang.Integer sEcho)
sEcho
- the sEcho to setgetsEcho()
public static DatatableRequest parseRequest(javax.servlet.http.HttpServletRequest request)
DatatableRequest
from parameters found in the given request.request
- DatatableRequest
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.