diff options
Diffstat (limited to 'node_modules/montage-user/ui/controller/object-controller.js')
-rwxr-xr-x | node_modules/montage-user/ui/controller/object-controller.js | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/node_modules/montage-user/ui/controller/object-controller.js b/node_modules/montage-user/ui/controller/object-controller.js new file mode 100755 index 00000000..54e32231 --- /dev/null +++ b/node_modules/montage-user/ui/controller/object-controller.js | |||
@@ -0,0 +1,62 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | /** | ||
7 | @module montage/ui/controller/object-controller | ||
8 | @requires montage/core/core | ||
9 | */ | ||
10 | var Montage = require("montage").Montage; | ||
11 | /** | ||
12 | @class module:montage/ui/controller/object-controller.ObjectController | ||
13 | @classdesc Generic object controller. | ||
14 | @extends module:montage/core/core.Montage | ||
15 | */ | ||
16 | var ObjectController = exports.ObjectController = Montage.create(Montage, /** @lends module:montage/ui/controller/object-controller.ObjectController# */ { | ||
17 | /** | ||
18 | Description TODO | ||
19 | @type {Property} | ||
20 | @default null | ||
21 | */ | ||
22 | objectPrototype: { | ||
23 | enumerable: false, | ||
24 | value: null | ||
25 | }, | ||
26 | /** | ||
27 | Description TODO | ||
28 | @function | ||
29 | @returns this.objectPrototype.create() | ||
30 | */ | ||
31 | newObject: { | ||
32 | enumerable: false, | ||
33 | value: function() { | ||
34 | return this.objectPrototype.create(); | ||
35 | } | ||
36 | }, | ||
37 | |||
38 | /** | ||
39 | Description TODO | ||
40 | @function | ||
41 | @param {Property} content TODO | ||
42 | @returns itself | ||
43 | */ | ||
44 | initWithContent: { | ||
45 | value: function(content) { | ||
46 | this.content = content; | ||
47 | return this; | ||
48 | } | ||
49 | }, | ||
50 | /** | ||
51 | Description TODO | ||
52 | @type {Property} | ||
53 | @default null | ||
54 | */ | ||
55 | content: { | ||
56 | enumerable: false, | ||
57 | value: null | ||
58 | } | ||
59 | |||
60 | |||
61 | |||
62 | }); | ||