| author | hamidouk |
| Fri, 21 Oct 2011 17:27:04 +0200 | |
| branch | popcorn-port |
| changeset 123 | 58bb8ccea9a8 |
| parent 122 | 04bd1e2f9674 |
| child 124 | 2758dfb208b2 |
| permissions | -rw-r--r-- |
|
66
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
1 |
/* the widget classes and definitions */ |
|
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
2 |
|
| 74 | 3 |
IriSP.Widget = function(Popcorn, config, Serializer) { |
| 114 | 4 |
|
5 |
if (config === undefined || config === null) { |
|
6 |
config = {} |
|
7 |
} |
|
8 |
|
|
| 74 | 9 |
this._Popcorn = Popcorn; |
10 |
this._config = config; |
|
11 |
this._serializer = Serializer; |
|
| 114 | 12 |
|
| 122 | 13 |
if (config.hasOwnProperty("gui") && config.gui.hasOwnProperty("container")) { |
14 |
this._id = config.gui.container; |
|
| 114 | 15 |
this.selector = IriSP.jQuery("#" + this._id); |
16 |
} |
|
|
66
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
17 |
}; |
|
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
18 |
|
|
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
19 |
IriSP.Widget.prototype.draw = function() { |
|
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
20 |
/* implemented by "sub-classes" */ |
|
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
21 |
}; |
| 74 | 22 |
|
23 |
IriSP.Widget.prototype.redraw = function() { |
|
24 |
/* implemented by "sub-classes" */ |
|
25 |
}; |