Resources

public class Resources implements Serializable

A collection of org.motechproject.cmslite.web.ResourceDto objects to be displayed on the jqgrid. It also contains paging information for the grid.

Constructors

Resources

public Resources(GridSettings settings, List<ResourceDto> list)

Constructs an instance from the list of resources (by creating a sub-list) and the given grid settings.

Parameters:
  • settings – the grid settings to use
  • list – the list of all available records

Methods

getPage

public Integer getPage()
Returns:the page that is being displayed

getRecords

public Integer getRecords()
Returns:the total number of records in the system

getRows

public List<ResourceDto> getRows()
Returns:list of org.motechproject.cmslite.web.ResourceDto instances that will displayed on the grid

getTotal

public Integer getTotal()
Returns:the total number of pages available

toString

public String toString()