diff options
author | Pierre Frisch | 2011-12-22 07:25:50 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-01-27 11:18:17 -0800 |
commit | b89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch) | |
tree | 0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/panels/Materials/MaterialsPanel.js | |
parent | 2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff) | |
download | ninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz |
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/panels/Materials/MaterialsPanel.js')
-rw-r--r-- | js/panels/Materials/MaterialsPanel.js | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/js/panels/Materials/MaterialsPanel.js b/js/panels/Materials/MaterialsPanel.js new file mode 100644 index 00000000..a63ed860 --- /dev/null +++ b/js/panels/Materials/MaterialsPanel.js | |||
@@ -0,0 +1,44 @@ | |||
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 | var Montage = require("montage/core/core").Montage, | ||
8 | PanelBase = require("js/panels/PanelBase").PanelBase, | ||
9 | MaterialsLibraryPanel = require("js/panels/Materials/materials-library-panel.reel").MaterialsLibraryPanel; | ||
10 | |||
11 | exports.MaterialsPanel = Montage.create(PanelBase, { | ||
12 | id : {value : "materialsPanel", writable:true, enumerable:true, configurable:true}, | ||
13 | panelName : {value : "Materials", writable:true, enumerable:true, configurable:true}, | ||
14 | panelHeaderID : {value : "materialsPanelHeader", writable:true, enumerable:true, configurable:true}, | ||
15 | disclosureIconID : {value : "materialsPanelDisclosureIcon", writable:true, enumerable:true, configurable:true}, | ||
16 | closeButtonID : {value : "materialsPanelCloseButton", writable:true, enumerable:true, configurable:true}, | ||
17 | panelContentID : {value : "materialsPanelContent", writable:true, enumerable:true, configurable:true}, | ||
18 | |||
19 | _materialsLibraryPanel : { | ||
20 | enumerable: true, | ||
21 | value: null, | ||
22 | writable:true | ||
23 | }, | ||
24 | |||
25 | init : { | ||
26 | enumerable:true, | ||
27 | value : function (){ | ||
28 | /* OLD WAY -- Removing the temporary div | ||
29 | // TODO: Remove this comment once this is tested. | ||
30 | var panelContainer = document.createElement("div"); | ||
31 | |||
32 | panelContainer.setAttribute("id", "materialsLibraryPanel"); | ||
33 | this._materialsLibraryPanel = MaterialsLibraryPanel.create(); | ||
34 | this._materialsLibraryPanel.element = panelContainer; | ||
35 | //Adding container to the parent | ||
36 | |||
37 | this.content = this._materialsLibraryPanel; | ||
38 | this._materialsLibraryPanel.needsDraw = true; | ||
39 | */ | ||
40 | this.content = MaterialsLibraryPanel.create(); | ||
41 | } | ||
42 | } | ||
43 | |||
44 | }); \ No newline at end of file | ||