ViewerPageState.js 746 B

12345678910111213141516171819202122232425262728
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Viewer
  5. *| (C) Copyright IBM Corp. 2013
  6. *|
  7. *| US Government Users Restricted Rights - Use, duplication or
  8. *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. *|
  10. *+------------------------------------------------------------------------+
  11. */
  12. function ViewerPageState() {
  13. this.currentPage = 1;
  14. this.pageCount = 1;
  15. }
  16. ViewerPageState.prototype.setState = function(state) {
  17. applyJSONProperties(this, state);
  18. };
  19. ViewerPageState.prototype.getCurrentPage = function() {
  20. return this.currentPage;
  21. };
  22. ViewerPageState.prototype.getPageCount = function() {
  23. return this.pageCount;
  24. };