aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Color/colorbutton-manager.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Color/colorbutton-manager.js')
-rw-r--r--js/panels/Color/colorbutton-manager.js44
1 files changed, 44 insertions, 0 deletions
diff --git a/js/panels/Color/colorbutton-manager.js b/js/panels/Color/colorbutton-manager.js
new file mode 100644
index 00000000..a189d040
--- /dev/null
+++ b/js/panels/Color/colorbutton-manager.js
@@ -0,0 +1,44 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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////////////////////////////////////////////////////////////////////////
8//
9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component;
11////////////////////////////////////////////////////////////////////////
12//Exporting as ColorPopupManager
13exports.ColorButtonManager = Montage.create(Component, {
14 ////////////////////////////////////////////////////////////////////
15 //
16 hasTemplate: {
17 value: false
18 },
19 ////////////////////////////////////////////////////////////////////
20 //Storing color manager
21 _colorManager: {
22 enumerable: false,
23 value: null
24 },
25 ////////////////////////////////////////////////////////////////////
26 //
27 colorManager: {
28 enumerable: true,
29 get: function() {
30 return this._colorManager;
31 },
32 set: function(value) {
33 this._colorManager = value;
34 }
35 },
36 ////////////////////////////////////////////////////////////////////
37 //
38 _buttons: {
39 enumerable: false,
40 value: {chip: [], fill: [], stroke: [], current: [], previous: [], rgbmode: [], hslmode: [], hexinput: [], nocolor: [], reset: [], swap: [], mlabel1: [], mlabel2: [], mlabel3: []}
41 }
42 ////////////////////////////////////////////////////////////////////
43 ////////////////////////////////////////////////////////////////////
44}); \ No newline at end of file