ModalInfoMessageDialog.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Viewer
  5. *| (C) Copyright IBM Corp. 2001, 2012
  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. dojo.provide("ModalInfoMessageDialog");
  13. dojo.declare("ModalInfoMessageDialog", null, {
  14. sMessage: "",
  15. sDescription: "",
  16. sTitle : "",
  17. constructor : function( args){
  18. dojo.safeMixin( this, args );
  19. },
  20. getMessage: function() {
  21. return this.sMessage;
  22. },
  23. getDescription: function() {
  24. return this.sDescription;
  25. },
  26. getTitle: function() {
  27. return this.sTitle;
  28. },
  29. show : function() {
  30. dojo["require"]("bux.dialogs.InformationDialog"); //@lazyload
  31. var infoDialog = new bux.dialogs.InformationDialog({
  32. title: this.getTitle(),
  33. sMainMessage : this.getMessage(),
  34. sDescription : this.getDescription(),
  35. sInfoIconClass : 'bux-informationDialog-info-icon'
  36. });
  37. infoDialog.show();
  38. }
  39. });