Project

General

Profile

Download (2.59 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / flarecast / workspace / client-admin / js / datasets / ColumnModel.js @ master

1
/***************************************
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
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
* 
11
* SITools2 is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with SITools2.  If not, see <http://www.gnu.org/licenses/>.
18
***************************************/
19
/*global Ext, sitools, ID, i18n, showResponse, alertFailure, loadUrl, ADMIN_PANEL_HEIGHT*/
20

    
21
Ext.define('sitools.admin.datasets.ColumnModel', {
22
    extend : 'Ext.data.Model',
23
    fields : [{
24
        name : 'id',
25
        type : 'string'
26
    }, {
27
        name : 'dataIndex',
28
        type : 'string'
29
    }, {
30
        name : 'schemaName',
31
        mapping : 'schema',
32
        type : 'string'
33
    }, {
34
        name : 'tableAlias',
35
        type : 'string'
36
    }, {
37
        name : 'tableName',
38
        type : 'string'
39
    }, {
40
        name : 'header',
41
        type : 'string'
42
    }, {
43
        name : 'toolTip',
44
        type : 'string'
45
    }, {
46
        name : 'width',
47
        type : 'int'
48
    }, {
49
        name : 'sortable',
50
        type : 'boolean'
51
    }, {
52
        name : 'visible',
53
        type : 'boolean'
54
    }, {
55
        name : 'filter',
56
        type : 'boolean'
57
    }, {
58
        name : 'columnOrder',
59
        type : 'int'
60
    },
61
    // {name : 'urlColumn', type : 'boolean'},
62
    // {name : 'previewColumn', type : 'boolean'},
63
    {
64
        name : 'columnRendererCategory',
65
        type : 'String'
66
    }, {
67
        name : 'columnRenderer',
68
        type : 'object'
69
    }, {
70
        name : 'primaryKey',
71
        type : 'boolean'
72
    }, {
73
        name : 'sqlColumnType',
74
        type : 'string'
75
    }, {
76
        name : 'columnAlias',
77
        type : 'string'
78
    }, {
79
        name : 'specificColumnType',
80
        type : 'string'
81
    }, {
82
        name : 'javaSqlColumnType',
83
        type : 'int'
84
    }, {
85
        name : 'columnClass',
86
        type : 'int'
87
    }, {
88
        name : 'dimensionId', 
89
        type : 'string'
90
    }, {
91
        name : 'unit'            
92
    }, {
93
        name : 'format', 
94
        type : 'string'
95
    }, {
96
        name : 'orderBy', 
97
        type : 'string'
98
    }, {
99
        name : 'category', 
100
        type : 'string'
101
    }]
102
});