net.sf.jabb.util.bean
Class JQueryGridData

java.lang.Object
  extended by net.sf.jabb.util.bean.JQueryGridData

public class JQueryGridData
extends Object

JSON data required by jqGrid.

Author:
James Hu

Nested Class Summary
 class JQueryGridData.Row
           
 
Field Summary
protected  int page
           
protected  int records
           
protected  List<Object> rows
           
protected  int total
           
 
Constructor Summary
JQueryGridData()
           
 
Method Summary
 void addRow(JQueryGridData.Row row)
           
 void addRow(Object row)
           
 void addRow(Object id, Object cell)
           
 void addRows(List<?> rows)
           
 void clearRows()
           
 int getPage()
           
 int getRecords()
           
 List<Object> getRows()
           
 int getTotal()
           
 void setPage(int page)
           
 void setRecords(int records)
           
 void setTotal(int total)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

total

protected int total

page

protected int page

records

protected int records

rows

protected List<Object> rows
Constructor Detail

JQueryGridData

public JQueryGridData()
Method Detail

addRow

public void addRow(JQueryGridData.Row row)

addRow

public void addRow(Object row)

addRow

public void addRow(Object id,
                   Object cell)

addRows

public void addRows(List<?> rows)

clearRows

public void clearRows()

getTotal

public int getTotal()

setTotal

public void setTotal(int total)

getPage

public int getPage()

setPage

public void setPage(int page)

getRecords

public int getRecords()

setRecords

public void setRecords(int records)

getRows

public List<Object> getRows()


Copyright © 2012. All Rights Reserved.