diff options
Diffstat (limited to 'js/panels')
96 files changed, 17825 insertions, 0 deletions
diff --git a/js/panels/CSSPanel/CSSPanel.js b/js/panels/CSSPanel/CSSPanel.js new file mode 100644 index 00000000..94860b30 --- /dev/null +++ b/js/panels/CSSPanel/CSSPanel.js | |||
@@ -0,0 +1,53 @@ | |||
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 | |||
10 | var CSSPanelBase = require("js/panels/CSSPanel/CSSPanelBase.reel").CSSPanelBase; | ||
11 | |||
12 | exports.CSSPanel = Montage.create(PanelBase, { | ||
13 | id : {value : "cssPanel", writable:true, enumerable:true, configurable:true}, | ||
14 | panelName : {value : "CSS", writable:true, enumerable:true, configurable:true}, | ||
15 | panelHeaderID : {value : "cssPanelHeader", writable:true, enumerable:true, configurable:true}, | ||
16 | disclosureIconID : {value : "cssPanelDisclosureIcon", writable:true, enumerable:true, configurable:true}, | ||
17 | closeButtonID : {value : "cssPanelCloseButton", writable:true, enumerable:true, configurable:true}, | ||
18 | panelContentID : {value : "cssPanelContent", writable:true, enumerable:true, configurable:true}, | ||
19 | |||
20 | init : { | ||
21 | enumerable:true, | ||
22 | value : function (){ | ||
23 | this.minHeight = 300; | ||
24 | this.contentHeight = 300; | ||
25 | this.defaultHeight= 300; | ||
26 | |||
27 | /* OLD WAY -- Removing the temporary div | ||
28 | // TODO: Remove this comment once this is tested. | ||
29 | |||
30 | var panelContainer = document.createElement("div"); | ||
31 | this._cssPanelBase = CSSPanelBase.create(); | ||
32 | this._cssPanelBase.element = panelContainer; | ||
33 | |||
34 | this.content = this._cssPanelBase; | ||
35 | this._cssPanelBase.needsDraw = true; | ||
36 | */ | ||
37 | //debugger; | ||
38 | this.content = CSSPanelBase.create(); | ||
39 | } | ||
40 | }, | ||
41 | reinit : { | ||
42 | value : function() { | ||
43 | this._cssPanelBase.clearStyleSheetList(); | ||
44 | this._cssPanelBase.clearCSSRules(); | ||
45 | this._cssPanelBase.populateStyleSheetList(); | ||
46 | } | ||