Subversion Repositories Integrator Subversion

Rev

Rev 209 | Rev 245 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
207 espaco 1
/*
2
 * Copyright 2009-2014 PrimeTek.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package br.com.ec.controller;
17
 
18
import java.io.Serializable;
19
 
242 espaco 20
import javax.inject.Named;
21
 
207 espaco 22
import org.springframework.context.annotation.Scope;
23
 
242 espaco 24
@Named
207 espaco 25
@Scope("session")
26
public class GuestPreferences implements Serializable {
27
 
28
        private String inputStyleClass = "";
29
        private String topbarTheme = "light";
30
        private String menuTheme = "dim";
31
        private String menuMode = "";
32
        private String darkMode = "light";
33
        private String componentTheme = "";
209 espaco 34
        private boolean orientationRTL = false;
207 espaco 35
 
36
        public String getInputStyleClass() {
37
                return inputStyleClass;
38
        }
39
        public void setInputStyleClass(String inputStyleClass) {
40
                this.inputStyleClass = inputStyleClass;
41
        }
42
 
43
        public String getTopbarTheme() {
44
                return topbarTheme;
45
        }
46
        public void setTopbarTheme(String topbarTheme) {
47
                this.topbarTheme = topbarTheme;
48
        }
49
 
50
        public String getMenuTheme() {
51
                return menuTheme;
52
        }
53
        public void setMenuTheme(String menuTheme) {
54
                this.menuTheme = menuTheme;
55
        }
56
 
57
        public String getMenuMode() {
58
                return menuMode;
59
        }
60
        public void setMenuMode(String menuMode) {
61
                this.menuMode = menuMode;
62
        }
63
 
64
        public String getDarkMode() {
65
                return darkMode;
66
        }
67
        public void setDarkMode(String darkMode) {
68
                this.darkMode = darkMode;
69
        }
70
 
71
        public boolean isOrientationRTL() {
72
                return orientationRTL;
73
        }
74
        public void setOrientationRTL(boolean orientationRTL) {
75
                this.orientationRTL = orientationRTL;
76
        }
77
 
78
        /*
79
    private Map<String,String> themeColors;
80
 
81
    private String theme = "blue";
82
 
83
    private String menuLayout = "static";
84
 
85
    @PostConstruct
86
    public void init() {
87
        themeColors = new HashMap<String,String>();
88
        themeColors.put("turquoise", "#00acac");
89
        themeColors.put("blue", "#2f8ee5");
90
        themeColors.put("orange", "#efa64c");
91
        themeColors.put("purple", "#6c76af");
92
        themeColors.put("pink", "#f16383");
93
        themeColors.put("light-blue", "#63c9f1");
94
        themeColors.put("green", "#57c279");
95
        themeColors.put("deep-purple", "#7e57c2");
96
    }
97
 
98
    public String getTopbarTheme() {
99
        return "light";
100
    }
101
 
102
        public String getTheme() {             
103
                return theme;
104
        }
105
 
106
    public String getMenuLayout() {    
107
        if(this.menuLayout.equals("static"))
108
            return "menu-layout-static";
109
        else if(this.menuLayout.equals("overlay"))
110
            return "menu-layout-overlay";
111
        else if(this.menuLayout.equals("horizontal"))
112
            return "menu-layout-static menu-layout-horizontal";
113
        else
114
            return "menu-layout-static";
115
    }
116
 
117
        public void setTheme(String theme) {
118
                this.theme = theme;
119
        }
120
 
121
    public void setMenuLayout(String menuLayout) {
122
        this.menuLayout = menuLayout;
123
    }
124
 
125
    public Map getThemeColors() {
126
        return this.themeColors;
127
    }
128
         */
129
}