public class DatatableResponse
extends java.lang.Object
http://datatables.net/
Constructor and Description |
---|
DatatableResponse(DatatableRequest request) |
Modifier and Type | Method and Description |
---|---|
void |
addRow(java.util.Map<java.lang.String,java.lang.String> row)
Adds the given row to the data.
|
void |
addRow(java.lang.String... row)
Adds the given row to the data.
|
java.lang.String[][] |
getAaData()
The data in a 2D array.
|
java.lang.Integer |
getiTotalDisplayRecords() |
java.lang.Integer |
getiTotalRecords() |
java.lang.String[] |
getsColumns() |
java.lang.Integer |
getsEcho()
An unaltered copy of sEcho sent from the client side.
|
void |
setiTotalDisplayRecords(java.lang.Integer iTotalDisplayRecords)
Total records, after filtering (i.e.
|
void |
setiTotalRecords(java.lang.Integer iTotalRecords)
Total records, before filtering (i.e.
|
void |
setsColumns(java.lang.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 java.lang.Integer getsEcho()
public java.lang.Integer getiTotalRecords()
setiTotalRecords(Integer)
public void setiTotalRecords(java.lang.Integer iTotalRecords)
iTotalRecords
- the iTotalRecords to setpublic java.lang.Integer getiTotalDisplayRecords()
setiTotalDisplayRecords(Integer)
public void setiTotalDisplayRecords(java.lang.Integer iTotalDisplayRecords)
iTotalDisplayRecords
- the iTotalDisplayRecords to setpublic java.lang.String[] getsColumns()
setsColumns(String...)
public void setsColumns(java.lang.String... sColumns)
sColumns
- the sColumns to setpublic java.lang.String[][] getAaData()
public void addRow(java.lang.String... row)
row
- public void addRow(java.util.Map<java.lang.String,java.lang.String> row)
row
- Copyright © 2018 OpenMRS Inc.. All Rights Reserved.