Diffstat (limited to 'frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js b/frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js index a98f041..a066001 100644 --- a/frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js +++ b/frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js | |||
@@ -1,102 +1,99 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | Clipperz.Base.module('Clipperz.Tests.GridLayout'); | 26 | Clipperz.Base.module('Clipperz.Tests.GridLayout'); |
30 | 27 | ||
31 | Clipperz.Tests.GridLayout.TestPageComponent = function(args) { | 28 | Clipperz.Tests.GridLayout.TestPageComponent = function(args) { |
32 | args = args || {}; | 29 | args = args || {}; |
33 | Clipperz.Tests.GridLayout.TestPageComponent.superclass.constructor.call(this, args); | 30 | Clipperz.Tests.GridLayout.TestPageComponent.superclass.constructor.call(this, args); |
34 | 31 | ||
35 | this._element = args.element || null; | 32 | this._element = args.element || null; |
36 | 33 | ||
37 | this._slots = { | 34 | this._slots = { |
38 | 'cardList' : this.getId('cardList'), | 35 | 'cardList' : this.getId('cardList'), |
39 | 'cardGrid' : this.getId('cardGrid') | 36 | 'cardGrid' : this.getId('cardGrid') |
40 | }; | 37 | }; |
41 | 38 | ||
42 | this.render(); | 39 | this.render(); |
43 | 40 | ||
44 | 41 | ||
45 | return this; | 42 | return this; |
46 | } | 43 | } |
47 | 44 | ||
48 | //============================================================================= | 45 | //============================================================================= |
49 | 46 | ||
50 | Clipperz.Base.extend(Clipperz.Tests.GridLayout.TestPageComponent, Clipperz.PM.UI.Common.Components.BaseComponent, { | 47 | Clipperz.Base.extend(Clipperz.Tests.GridLayout.TestPageComponent, Clipperz.PM.UI.Common.Components.BaseComponent, { |
51 | 48 | ||
52 | //------------------------------------------------------------------------- | 49 | //------------------------------------------------------------------------- |
53 | 50 | ||
54 | 'toString': function () { | 51 | 'toString': function () { |
55 | return "Clipperz.Tests.GridLayout.TestPageComponent component"; | 52 | return "Clipperz.Tests.GridLayout.TestPageComponent component"; |
56 | }, | 53 | }, |
57 | 54 | ||
58 | //------------------------------------------------------------------------- | 55 | //------------------------------------------------------------------------- |
59 | 56 | ||
60 | 'renderSelf': function(/*aContainer, aPosition*/) { | 57 | 'renderSelf': function(/*aContainer, aPosition*/) { |
61 | this.append(this.element(), [ | 58 | this.append(this.element(), [ |
62 | {tag:'ul', cls:'testTabs', style:'', children:[ | 59 | {tag:'ul', cls:'testTabs', style:'', children:[ |
63 | {tag:'li', id:this.getId('list'), children:[{tag:'span', html:'list'}]}, | 60 | {tag:'li', id:this.getId('list'), children:[{tag:'span', html:'list'}]}, |
64 | {tag:'li', id:this.getId('grid'), children:[{tag:'span', html:'grid'}]} | 61 | {tag:'li', id:this.getId('grid'), children:[{tag:'span', html:'grid'}]} |
65 | ]}, | 62 | ]}, |
66 | {tag:'ul', cls:'testPanels', children:[ | 63 | {tag:'ul', cls:'testPanels', children:[ |
67 | {tag:'li', id:this.getId('listPanel'), children:[ | 64 | {tag:'li', id:this.getId('listPanel'), children:[ |
68 | {tag:'div', /*id:this.getId('mainPanels'),*/ cls:'mainPanels', children:[ | 65 | {tag:'div', /*id:this.getId('mainPanels'),*/ cls:'mainPanels', children:[ |
69 | {tag:'div', id:this.getId('cardList'), cls:'gridComponent cardGrid'} | 66 | {tag:'div', id:this.getId('cardList'), cls:'gridComponent cardGrid'} |
70 | ]} | 67 | ]} |
71 | ]}, | 68 | ]}, |
72 | {tag:'li', id:this.getId('gridPanel'), children:[ | 69 | {tag:'li', id:this.getId('gridPanel'), children:[ |
73 | {tag:'div', /*id:this.getId('mainPanels'),*/ cls:'mainPanels', children:[ | 70 | {tag:'div', /*id:this.getId('mainPanels'),*/ cls:'mainPanels', children:[ |
74 | // {tag:'div', id:this.getId('cardGrid'), cls:'gridComponent cardGrid'} | 71 | // {tag:'div', id:this.getId('cardGrid'), cls:'gridComponent cardGrid'} |
75 | {tag:'h1', html:"Ciao"} | 72 | {tag:'h1', html:"Ciao"} |
76 | ]} | 73 | ]} |
77 | ]} | 74 | ]} |
78 | ]} | 75 | ]} |
79 | ]); | 76 | ]); |
80 | 77 | ||
81 | // this.append(this.element(), {tag:'div', id:this.getId('mainPanels'), cls:'mainPanels'}); | 78 | // this.append(this.element(), {tag:'div', id:this.getId('mainPanels'), cls:'mainPanels'}); |
82 | // this.append(this.getId('mainPanels'), {tag:'div', id:this.getId('cardGrid'), cls:'gridComponent cardGrid'}); | 79 | // this.append(this.getId('mainPanels'), {tag:'div', id:this.getId('cardGrid'), cls:'gridComponent cardGrid'}); |
83 | 80 | ||
84 | new Clipperz.PM.UI.Common.Controllers.TabPanelController({ | 81 | new Clipperz.PM.UI.Common.Controllers.TabPanelController({ |
85 | component:this, | 82 | component:this, |
86 | configuration: { | 83 | configuration: { |
87 | 'LIST': { | 84 | 'LIST': { |
88 | tab:'list', | 85 | tab:'list', |
89 | panel:'listPanel' | 86 | panel:'listPanel' |
90 | }, | 87 | }, |
91 | 'GRID': { | 88 | 'GRID': { |
92 | tab:'grid', | 89 | tab:'grid', |
93 | panel:'gridPanel' | 90 | panel:'gridPanel' |
94 | } | 91 | } |
95 | } | 92 | } |
96 | }); | 93 | }); |
97 | }, | 94 | }, |
98 | 95 | ||
99 | //------------------------------------------------------------------------- | 96 | //------------------------------------------------------------------------- |
100 | 97 | ||
101 | __syntaxFix__: "syntax fix" | 98 | __syntaxFix__: "syntax fix" |
102 | }); | 99 | }); |