From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- js/panels/Materials/MaterialsPanel.js | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 js/panels/Materials/MaterialsPanel.js (limited to 'js/panels/Materials/MaterialsPanel.js') 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 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +var Montage = require("montage/core/core").Montage, + PanelBase = require("js/panels/PanelBase").PanelBase, + MaterialsLibraryPanel = require("js/panels/Materials/materials-library-panel.reel").MaterialsLibraryPanel; + +exports.MaterialsPanel = Montage.create(PanelBase, { + id : {value : "materialsPanel", writable:true, enumerable:true, configurable:true}, + panelName : {value : "Materials", writable:true, enumerable:true, configurable:true}, + panelHeaderID : {value : "materialsPanelHeader", writable:true, enumerable:true, configurable:true}, + disclosureIconID : {value : "materialsPanelDisclosureIcon", writable:true, enumerable:true, configurable:true}, + closeButtonID : {value : "materialsPanelCloseButton", writable:true, enumerable:true, configurable:true}, + panelContentID : {value : "materialsPanelContent", writable:true, enumerable:true, configurable:true}, + + _materialsLibraryPanel : { + enumerable: true, + value: null, + writable:true + }, + + init : { + enumerable:true, + value : function (){ + /* OLD WAY -- Removing the temporary div + // TODO: Remove this comment once this is tested. + var panelContainer = document.createElement("div"); + + panelContainer.setAttribute("id", "materialsLibraryPanel"); + this._materialsLibraryPanel = MaterialsLibraryPanel.create(); + this._materialsLibraryPanel.element = panelContainer; + //Adding container to the parent + + this.content = this._materialsLibraryPanel; + this._materialsLibraryPanel.needsDraw = true; + */ + this.content = MaterialsLibraryPanel.create(); + } + } + +}); \ No newline at end of file -- cgit v1.2.3