Project

General

Profile

Statistics
| Revision:

root / trunk / web / dojo / dojox / form / manager / _ValueMixin.js

History | View | Annotate | Download (1.26 KB)

1 9 andrej.cim
/*
2
        Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
3
        Available via Academic Free License >= 2.1 OR the modified BSD license.
4
        see: http://dojotoolkit.org/license for details
5
*/
6
7
8
if(!dojo._hasResource["dojox.form.manager._ValueMixin"]){
9
dojo._hasResource["dojox.form.manager._ValueMixin"]=true;
10
dojo.provide("dojox.form.manager._ValueMixin");
11
dojo.declare("dojox.form.manager._ValueMixin",null,{elementValue:function(_1,_2){
12
if(_1 in this.formWidgets){
13
return this.formWidgetValue(_1,_2);
14
}
15
if(this.formNodes&&_1 in this.formNodes){
16
return this.formNodeValue(_1,_2);
17
}
18
return this.formPointValue(_1,_2);
19
},gatherFormValues:function(_3){
20
var _4=this.inspectFormWidgets(function(_5){
21
return this.formWidgetValue(_5);
22
},_3);
23
if(this.inspectFormNodes){
24
dojo.mixin(_4,this.inspectFormNodes(function(_6){
25
return this.formNodeValue(_6);
26
},_3));
27
}
28
dojo.mixin(_4,this.inspectAttachedPoints(function(_7){
29
return this.formPointValue(_7);
30
},_3));
31
return _4;
32
},setFormValues:function(_8){
33
if(_8){
34
this.inspectFormWidgets(function(_9,_a,_b){
35
this.formWidgetValue(_9,_b);
36
},_8);
37
if(this.inspectFormNodes){
38
this.inspectFormNodes(function(_c,_d,_e){
39
this.formNodeValue(_c,_e);
40
},_8);
41
}
42
this.inspectAttachedPoints(function(_f,_10,_11){
43
this.formPointValue(_f,_11);
44
},_8);
45
}
46
return this;
47
}});
48
}