Variable.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. MWF.xApplication.ScriptEditor.statement.variable.Variable = new Class({
  2. Extends: MWF.xApplication.ScriptEditor.statement.$Statement.$Expression
  3. // Implements: [Options, Events],
  4. //
  5. // parseNodes: function(){
  6. // this.contentNode = this.node.getFirst();
  7. // this.nameInput = this.node.getElement("input");
  8. //
  9. // // this.downLinkStatementNode = new Element("div", {"styles": this.css.linkStatementNode_down}).inject(this.node);
  10. // // this.upLinkStatementNode = new Element("div", {"styles": this.css.linkStatementNode_up}).inject(this.node, "top");
  11. // this.statementType = "expression";
  12. //
  13. // // this.downLink = new MWF.xApplication.ScriptEditor.statement.Link(this, "down", this.downLinkStatementNode);
  14. // // this.upLink = new MWF.xApplication.ScriptEditor.statement.Link(this, "up", this.upLinkStatementNode);
  15. // //
  16. // // this.links.push(this.upLink);
  17. // // this.links.push(this.downLink);
  18. // // this.topLink = this.upLink;
  19. // // this.bottomLink = this.downLink;
  20. // },
  21. // buildStatement: function(){
  22. // this.setInputNode();
  23. // },
  24. // setInputNode: function(){
  25. // this.nameInput.set("readonly", false);
  26. // this.nameInput.setStyle("max-width", "none");
  27. //
  28. // this.nameInput.addEvents({
  29. // "mousedown": function(e){
  30. // this.nameInput.focus();
  31. // e.stopPropagation();
  32. // }.bind(this),
  33. // "keyup": function(e){
  34. // var width = MWF.getTextSize(this.valueInput.get("value")).x;
  35. // this.nameInput.setStyle("width", ""+width+"px");
  36. // e.stopPropagation();
  37. // }.bind(this)
  38. // });
  39. // },
  40. //
  41. // reportLinks: function(){
  42. // // this.area.links.include(this.downLink.rePosition());
  43. // // this.area.links.include(this.upLink.rePosition());
  44. // },
  45. //
  46. // setLinkStyle: function(){
  47. //
  48. // }
  49. });