HPCCPlatformRoxieWidget.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*##############################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ############################################################################## */
  16. define([
  17. "dojo/_base/declare",
  18. "dojo/_base/lang",
  19. "dojo/i18n",
  20. "dojo/i18n!./nls/hpcc",
  21. "dijit/registry",
  22. "hpcc/_TabContainerWidget",
  23. "hpcc/QuerySetQueryWidget",
  24. //"hpcc/PackageMapQueryWidget",
  25. "dojo/text!../templates/HPCCPlatformRoxieWidget.html",
  26. "dijit/layout/BorderContainer",
  27. "dijit/layout/TabContainer",
  28. "dijit/layout/ContentPane"
  29. ], function (declare, lang, i18n, nlsHPCC,
  30. registry,
  31. _TabContainerWidget, QuerySetQueryWidget, /*PackageMapQueryWidget,*/
  32. template) {
  33. return declare("HPCCPlatformRoxieWidget", [_TabContainerWidget], {
  34. templateString: template,
  35. baseClass: "HPCCPlatformRoxieWidget",
  36. i18n: nlsHPCC,
  37. postCreate: function (args) {
  38. this.inherited(arguments);
  39. },
  40. startup: function (args) {
  41. this.inherited(arguments);
  42. },
  43. getTitle: function () {
  44. return this.i18n.title_HPCCPlatformRoxie;
  45. },
  46. // Hitched actions ---
  47. // Implementation ---
  48. init: function (params) {
  49. if (this.inherited(arguments))
  50. return;
  51. this.initTab();
  52. },
  53. initTab: function () {
  54. var currSel = this.getSelectedChild();
  55. if (currSel && !currSel.initalized) {
  56. if (currSel.init) {
  57. currSel.init({});
  58. }
  59. }
  60. }
  61. });
  62. });