- Timestamp:
- 08/15/12 18:30:58 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui
- Property svn:ignore
-
old new 1 1 nbproject 2 .project
-
- Property svn:ignore
-
Dev/branches/rest-dojo-ui/client/rft/ui/content/ContentWidgetFactory.js
r394 r399 86 86 this._textBox = new TextBox(); 87 87 this._textBox.set('value', this.options.contents); 88 this._textBox.set('readOnly', true);89 88 this.addChild(this._textBox); 90 89 }, 91 90 _getValueAttr: function() { 92 91 return { type: 'Header', 93 contents: this._textBox.get('displayedValue'), 94 }; 92 contents: this._textBox.get('displayedValue') 93 }; 94 }, 95 _setReadOnlyAttr: function(value) { 96 this._textBox.set('readOnly', value); 95 97 } 96 98 }); … … 107 109 _getValueAttr: function() { 108 110 return { type: 'Header', 109 contents: this._textBox.get('displayedValue') ,111 contents: this._textBox.get('displayedValue') 110 112 }; 111 113 } … … 117 119 this._textArea = new Textarea(); 118 120 this._textArea.set('value', this.options.contents); 119 this._textArea.set('readOnly', true);120 121 this.addChild(this._textArea); 121 122 }, 122 123 _getValueAttr: function() { 123 124 return { type: 'Text', 124 contents: this._textArea.get('displayedValue'), 125 }; 126 }, 125 contents: this._textArea.get('displayedValue') 126 }; 127 }, 128 _setReadOnlyAttr: function(value) { 129 this._textBox.set('readOnly', value); 130 } 127 131 }); 128 132 … … 149 153 this._textArea = new Textarea(); 150 154 this._textArea.set('maxLength', this.options.maxLength || 1000); 151 this._textArea.set('readOnly', this.options.readOnly || false);152 155 this._textArea.set('value', this.options.defaultValue || ""); 153 156 this.addChild(this._textArea); … … 156 159 return { type: "FreeTextInput", 157 160 defaultValue: this.options.defaultValue, 158 readOnly: this.options.readOnly,159 161 maxLength: this.options.maxLength 160 162 }; 163 }, 164 _setReadOnlyAttr: function(value) { 165 this._textArea.set('readOnly', value); 161 166 } 162 167 });
Note: See TracChangeset
for help on using the changeset viewer.