Property.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. MWF.require("MWF.widget.Common", null, false);
  2. MWF.require("MWF.widget.JsonTemplate", null, false);
  3. MWF.xDesktop.requireApp("query.ViewDesigner", "Property", null, false);
  4. MWF.xApplication.query.StatementDesigner.Property = MWF.SDProperty = new Class({
  5. Extends: MWF.xApplication.query.ViewDesigner.Property,
  6. Implements: [Options, Events],
  7. options: {
  8. "style": "default"
  9. },
  10. show: function () {
  11. if (!this.propertyContent) {
  12. this.getHtmlString(function () {
  13. if (this.htmlString) {
  14. this.JsonTemplate = new MWF.widget.JsonTemplate(this.data, this.htmlString);
  15. this.propertyContent = new Element("div", {"styles": {"overflow": "hidden"}}).inject(this.propertyNode);
  16. this.propertyContent.set("html", this.JsonTemplate.load());
  17. this.setEditNodeEvent();
  18. this.setEditNodeStyles(this.propertyContent);
  19. this.loadPropertyTab();
  20. this.loadPersonInput();
  21. this.loadPersonSelectInput();
  22. this.loadViewFilter();
  23. this.loadScriptArea();
  24. this.loadColumnExportEditor();
  25. this.loadJSONArea();
  26. this.loadEventsEditor();
  27. this.loadViewStylesArea();
  28. this.loadPagingStylesArea();
  29. this.loadActionStylesArea();
  30. this.loadActionArea();
  31. this.loadStylesList();
  32. this.loadMaplist();
  33. }
  34. }.bind(this));
  35. } else {
  36. this.propertyContent.setStyle("display", "block");
  37. }
  38. }
  39. });