Changeset 513 for Dev/trunk/src/client/qed-client/widgets/ObjectBox.js
- Timestamp:
- 03/13/14 22:21:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/widgets/ObjectBox.js
r510 r513 2 2 "../lib/object", 3 3 "./LineWithActionsWidget", 4 "./_ComplexValueWidget", 4 5 "dijit/_TemplatedMixin", 5 6 "dijit/_WidgetBase", … … 8 9 "dojo/_base/lang", 9 10 "dojo/text!./templates/ObjectBox.html" 10 ], function(objectFuns, LineWithActionsWidget, _ TemplatedMixin, _WidgetBase, _WidgetsInTemplateMixin, declare, lang, template) {11 return declare([_ WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {11 ], function(objectFuns, LineWithActionsWidget, _ComplexValueWidget, _TemplatedMixin, _WidgetBase, _WidgetsInTemplateMixin, declare, lang, template) { 12 return declare([_ComplexValueWidget], { 12 13 baseClass: "rftObjectBox", 13 14 templateString: template, 14 value: null,15 15 actions: null, 16 16 startup: function() { … … 54 54 }, 55 55 _showInfoBox: function() {}, 56 _setValueAttr: function(value) { 57 this.value = value; 58 this._refresh(); 59 }, 60 _getValueAttr: function(value) { 61 this.value = value; 62 }, 63 _refresh: function() { 64 if ( this.value !== null ) { 65 this.iconNode.className = "rftIcon typeIcon rftIcon"+(this.value.type || ''); 66 this.line1.set('title', this.value.title || ''); 67 this.line2.set('title', this.value.subTitle || ''); 68 this.line3.set('title', this.value.lowerTitle || ''); 56 onChange: function(value) { 57 if ( value ) { 58 this.iconNode.className = "rftIcon typeIcon rftIcon"+(value.type || ''); 59 this.line1.set('title', value.title || ''); 60 this.line2.set('title', value.subTitle || ''); 61 this.line3.set('title', value.lowerTitle || ''); 69 62 } 70 63 }
Note: See TracChangeset
for help on using the changeset viewer.