git_sitools_idoc / flarecast / workspace / client-user-3.0 / app / modules / DatasetExplorerDataview.js @ master
1 | d2a8c3fd | Marc NICOLAS | /*******************************************************************************
|
---|---|---|---|
2 | * Copyright 2010-2014 CNES - CENTRE NATIONAL d'ETUDES SPATIALES
|
||
3 | *
|
||
4 | * This file is part of SITools2.
|
||
5 | *
|
||
6 | * SITools2 is free software: you can redistribute it and/or modify it under the
|
||
7 | * terms of the GNU General Public License as published by the Free Software
|
||
8 | * Foundation, either version 3 of the License, or (at your option) any later
|
||
9 | * version.
|
||
10 | *
|
||
11 | * SITools2 is distributed in the hope that it will be useful, but WITHOUT ANY
|
||
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||
13 | * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||
14 | *
|
||
15 | * You should have received a copy of the GNU General Public License along with
|
||
16 | * SITools2. If not, see <http://www.gnu.org/licenses/>.
|
||
17 | ******************************************************************************/
|
||
18 | |||
19 | /*global Ext, sitools, i18n, projectGlobal, alertFailure, showResponse */
|
||
20 | |||
21 | Ext.namespace('sitools.user.modules');
|
||
22 | /**
|
||
23 | * datasetExplorerDataview Module
|
||
24 | *
|
||
25 | * @class sitools.user.modules.DatasetExplorerDataview
|
||
26 | * @extends sitools.user.core.Module
|
||
27 | */
|
||
28 | Ext.define('sitools.user.modules.DatasetExplorerDataview', {
|
||
29 | extend: 'sitools.user.core.Module', |
||
30 | |||
31 | requires: ['sitools.user.controller.modules.datasetExplorerDataview.DatasetExplorerDataviewController'], |
||
32 | controllers: ['sitools.user.controller.modules.datasetExplorerDataview.DatasetExplorerDataviewController'], |
||
33 | |||
34 | init: function () { |
||
35 | var view = Ext.create('sitools.user.view.modules.datasetExplorerDataview.DatasetExplorerDataViewView'); |
||
36 | this.setViewCmp(view);
|
||
37 | |||
38 | this.show(this.getViewCmp()); |
||
39 | this.callParent(arguments); |
||
40 | }, |
||
41 | |||
42 | /**
|
||
43 | * method called when trying to save preference
|
||
44 | *
|
||
45 | * @returns
|
||
46 | */
|
||
47 | _getSettings: function () { |
||
48 | return {
|
||
49 | preferencesPath: "/modules", |
||
50 | preferencesFileName: this.id |
||
51 | }; |
||
52 | |||
53 | } |
||
54 | }); |