define(function(require, exports, module) { var Pagination = require('../views/widgets/pagination/pagination'); function PaginationAdapter(args) { this.pageSize = args.pageSize; this.totalRows = args.totalRows; this.container = args.container; this.args = args; this.actions = args.actions; this.init(); } PaginationAdapter.prototype.init = function() { this.pagination = new Pagination({ pageSize: this.pageSize, totalRows:this.totalRows, container: this.container, actions: this.actions }); }; PaginationAdapter.prototype.setRefreshPages = function(pageIndex, pageSize, totalRows){ this.pagination.setRefreshPages(pageIndex, pageSize, totalRows); } PaginationAdapter.prototype.getPageInfo = function() { return this.pagination.getPageInfo(); }; return PaginationAdapter; });