D_RenameReplace.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /****************************************************************
  2. ** Licensed Materials - Property of IBM
  3. **
  4. ** IBM Cognos Products: drill
  5. **
  6. ** (C) Copyright IBM Corp. 2001, 2010
  7. **
  8. ** US Government Users Restricted Rights - Use, duplication or
  9. ** disclosure restricted by GSA ADP Schedule Contract with
  10. ** IBM Corp.
  11. *****************************************************************/
  12. /**
  13. * RenameReplace Dialog
  14. * Prompt user to select if s/he wants to replace or rename an object when another object with the same name already exist
  15. *
  16. *
  17. */
  18. // dialog name, ,the path that is used to load the rest of the dialog files (D_RenameReplace.xml and D_RenameReplace_async.js)
  19. var D_RenameReplace = new C_Dialog( "D_RenameReplace",null,"hal/../drill/Dialogs/" );
  20. /*
  21. * D_RenameReplace.F_Show overrides the F_show method of C_Dialog and show the RenameReplace Dialog
  22. * @param owner The object that dialog will appears on top of it (visual owner)
  23. * @param v_sTitle The title of the dialog
  24. * @param v_oListener The listener object. This object is called when user clicks on OK and Cancel buttons on the dialog
  25. * @param v_sObjectName The name of the object that we are saving (this is going to be renamed to replaced)
  26. * @param v_iHeight Height of the dialog
  27. * @param v_iWidth Width of the dialog
  28. */
  29. D_RenameReplace.F_Show = function( owner, v_sTitle, v_oListener, v_sObjectName, v_iHeight, v_iWidth)
  30. {
  31. this.m_oListener = v_oListener ? v_oListener : null;
  32. this.m_sObjectName = v_sObjectName ? v_sObjectName : null;
  33. this.m_iHeight = v_iHeight;
  34. this.m_iWidth = v_iWidth;
  35. this.m_oForm = owner;
  36. this.M_fnSuper_Show( owner, v_oListener, v_sTitle );
  37. };