ViewerUIConfig.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 ViewerUIConfig() {
  13. this.showBanner = true;
  14. this.showToolbar = true;
  15. this.showContextMenu = true;
  16. this.showPageNavigation = true;
  17. this.primarySelectionColor = null;
  18. this.secondarySelectionColor = null;
  19. this.showSecondarySelection = true;
  20. }
  21. ViewerUIConfig.prototype.configure = function(configuration) {
  22. applyJSONProperties(this, configuration);
  23. };
  24. ViewerUIConfig.prototype.getShowBanner = function() {
  25. return this.showBanner;
  26. };
  27. ViewerUIConfig.prototype.getShowToolbar = function() {
  28. return this.showToolbar;
  29. };
  30. ViewerUIConfig.prototype.getShowContextMenu = function() {
  31. return this.showContextMenu;
  32. };
  33. ViewerUIConfig.prototype.getShowPageNavigation = function() {
  34. return this.showPageNavigation;
  35. };
  36. ViewerUIConfig.prototype.getPrimarySelectionColor = function() {
  37. return this.primarySelectionColor;
  38. };
  39. ViewerUIConfig.prototype.getSeondarySelectionColor = function() {
  40. return this.secondarySelectionColor;
  41. };
  42. ViewerUIConfig.prototype.getShowSecondarySelection = function() {
  43. return this.showSecondarySelection;
  44. };