public class DatatableResponse extends Object
Constructor and Description |
---|
DatatableResponse(DatatableRequest request) |
Modifier and Type | Method and Description |
---|---|
void |
addRow(Map<String,String> row)
Adds the given row to the data.
|
void |
addRow(String... row)
Adds the given row to the data.
|
String[][] |
getAaData()
The data in a 2D array.
|
Integer |
getiTotalDisplayRecords() |
Integer |
getiTotalRecords() |
String[] |
getsColumns() |
Integer |
getsEcho()
An unaltered copy of sEcho sent from the client side.
|
void |
setiTotalDisplayRecords(Integer iTotalDisplayRecords)
Total records, after filtering (i.e.
|
void |
setiTotalRecords(Integer iTotalRecords)
Total records, before filtering (i.e.
|
void |
setsColumns(String... sColumns)
Optional - this is a string of column names, comma separated (used in combination with sName)
which will allow DataTables to reorder data on the client-side if required for display.
|
public DatatableResponse(DatatableRequest request)
public Integer getsEcho()
public Integer getiTotalRecords()
setiTotalRecords(Integer)
public void setiTotalRecords(Integer iTotalRecords)
iTotalRecords
- the iTotalRecords to setpublic Integer getiTotalDisplayRecords()
setiTotalDisplayRecords(Integer)
public void setiTotalDisplayRecords(Integer iTotalDisplayRecords)
iTotalDisplayRecords
- the iTotalDisplayRecords to setpublic String[] getsColumns()
setsColumns(String...)
public void setsColumns(String... sColumns)
sColumns
- the sColumns to setpublic String[][] getAaData()
public void addRow(String... row)
row
- Copyright © 2015 OpenMRS Inc.. All rights reserved.