1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
| /**
| * control基类
| * @author Wenyb
| * @date 2015/10/30
| */
| define([
| "dojo/_base/declare",
| "dijit/_WidgetBase",
| "dijit/_TemplatedMixin",
| "base/AppEvent",
| "dojo/domReady!"
| ], function (
| declare,
| _WidgetBase,
| _TemplatedMixin,
| AppEvent
| ){
| var Widget = declare([_WidgetBase,_TemplatedMixin
| ],
| {
| _config: null,
| _loaded:false,
| cssPathsIndex:{},
| label:"控件基类",
| id:"",
| /**
| * 挂接的父级control的Id
| */
| hockId:"",
| /**
| * 挂接的Map控件
| */
| map:null,
| constructor:function(options)
| {
| declare.safeMixin(this, options);
| if(this.cssPath&&!this.cssPathsIndex[this.cssPath])
| {
| dojo.create("link", {
| href: require.toUrl(this.cssPath),
| type: 'text/css',
| rel: 'stylesheet'
| },
| document.getElementsByTagName('head')[0]);
| this.cssPathsIndex[this.cssPath]=true;
| }
| this._loaded=false;
| },
| startup:function()
| {
| this._loaded = true;
| },
| loaded:function()
| {
| return this._loaded;
| },
| /**
| * 显示控件
| * @return
| */
| show:function()
| {
| },
| /**
| * 隐藏控件
| * @return boolean
| */
| hide:function()
| {
| }
| });
| return Widget;
| });
|
|