MainInContainer.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. MWF.xDesktop.requireApp("Collect", "lp."+MWF.language, null, false);
  2. MWF.xDesktop.requireApp("Collect", "Main", null, false);
  3. MWF.xApplication.Collect.MainInContainer = new Class({
  4. Extends: MWF.xApplication.Collect.Main,
  5. Implements: [Options, Events],
  6. options: {
  7. "style": "default",
  8. "name": "Collect",
  9. "sideBarEnable" : false
  10. },
  11. initialize: function(desktop, options, container, content){
  12. this.setOptions(options);
  13. this.desktop = desktop;
  14. this.container = container;
  15. this.content = content;
  16. this.path = "../x_component_"+this.options.name.replace(/\./g, "_")+"/$Main/";
  17. this.options.icon = this.path+this.options.style+"/"+this.options.icon;
  18. this.cssPath =this.path+this.options.style+"/css.wcss" ;
  19. this.inBrowser = true;
  20. this.inContainer = true;
  21. this._loadCss();
  22. },
  23. loadInBrowser: function(){
  24. this.window = {
  25. "isHide": false,
  26. "isMax": true,
  27. "maxSize": function(){},
  28. "restore": function(){},
  29. "setCurrent": function(){},
  30. "hide": function(){},
  31. "maxOrRestoreSize": function(){},
  32. "restoreSize": function(){},
  33. "close": function(){},
  34. "titleText" : {
  35. set : function(){}
  36. }
  37. };
  38. this.window.content = this.content;
  39. this.fireAppEvent("postLoadWindow");
  40. this.fireAppEvent("queryLoadApplication");
  41. this.setContentEvent();
  42. this.loadApplication(function(){
  43. this.fireAppEvent("postLoadApplication");
  44. }.bind(this));
  45. this.fireAppEvent("postLoad");
  46. },
  47. });