public class JQueryGridData extends Object
Modifier and Type | Class and Description |
---|---|
class |
JQueryGridData.Row |
Modifier and Type | Field and Description |
---|---|
protected int |
page |
protected int |
records |
protected List<Object> |
rows |
protected int |
total |
Constructor and Description |
---|
JQueryGridData() |
Modifier and Type | Method and Description |
---|---|
void |
addRow(Object row) |
void |
addRow(Object id,
Object cell) |
void |
addRows(Collection<?> rows) |
void |
addRows(ResultSet rs)
Add rows from a JDBC ResultSet.
|
void |
clearRows() |
int |
getPage() |
int |
getRecords() |
List<Object> |
getRows() |
int |
getTotal() |
void |
setPage(int page)
Set current page number
|
void |
setRecords()
Set number of records according to current size of the rows list.
|
void |
setRecords(int records)
Set total number of records
|
void |
setTotal(int total)
Set total number of pages
|
public void addRow(Object row)
public void addRows(Collection<?> rows)
public void addRows(ResultSet rs) throws SQLException
rs
- SQLException
public void clearRows()
public int getTotal()
public void setTotal(int total)
total
- public int getPage()
public void setPage(int page)
page
- public int getRecords()
public void setRecords(int records)
records
- public void setRecords()
records
- Copyright © 2014. All Rights Reserved.