BaseRequestExecutedIndicator.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 BaseRequestExecutedIndicator(oCV)
  13. {
  14. this.m_oCV = oCV;
  15. if( oCV ){
  16. this.m_oCVId = oCV.getId();
  17. if( oCV.getViewerWidget() ){
  18. this.m_background = oCV.getViewerWidget().getReportBlocker();
  19. }
  20. }
  21. };
  22. BaseRequestExecutedIndicator.prototype = new IRequestIndicator();
  23. BaseRequestExecutedIndicator.prototype.getViewer = function()
  24. {
  25. return this.m_oCV;
  26. };
  27. BaseRequestExecutedIndicator.prototype.show = function(){
  28. this.m_background.setClassNameOverride( 'report-blocker');
  29. this.m_background.show();
  30. };
  31. BaseRequestExecutedIndicator.prototype.hide = function(){
  32. if (this.m_background ) {
  33. this.m_background.hide();
  34. }
  35. };