FxConfigure.java
3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
package cn.csbr.app.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
/**
* 所有的配置参数都汇集到这个类里边了
*/
@Component
public class FxConfigure {
/**
* 是否无数据库模式
*/
@Value("${app.nodatabase}")
private boolean nodatabase;
@Value("${app.fx.min.width}")
private double minWidth;
@Value("${app.fx.min.height}")
private double minHeight;
@Value("${app.fx.full.screen}")
private boolean fullScreen;
/**
* 现在没啥用
*/
@Value("${app.title}")
private String appTitle;
// app.welcome.img=cn/csbr/app/ControlsFX.png
/**
* 闪屏图片现在没啥用
*/
@Value("${app.welcome.img}")
private String welcomeImg;
// app.welcome.backgroud.img=cn/csbr/app/bar.png
/**
* 背景图片现在没啥用
*/
@Value("${app.welcome.backgroud.img}")
private String welcomeBackgroundImg;
/**
* session 超时时间
*/
@Value("${app.session.timeout}")
private Integer timout;
/**
* 管理柜子组编码
*/
@Value("${app.cabinet.group.code}")
private String cabinetGroupCode;
/**
* 用户操作的间隔时间
*/
@Value("${app.usedelaytime}")
private Integer usedelaytime;
public Integer getUsedelaytime() {
return usedelaytime;
}
public void setUsedelaytime(Integer usedelaytime) {
this.usedelaytime = usedelaytime;
}
public String getWelcomeImg() {
return welcomeImg;
}
public void setWelcomeImg(String welcomeImg) {
this.welcomeImg = welcomeImg;
}
public String getWelcomeBackgroundImg() {
return welcomeBackgroundImg;
}
public void setWelcomeBackgroundImg(String welcomeBackgroundImg) {
this.welcomeBackgroundImg = welcomeBackgroundImg;
}
//
public String getAppTitle() {
return appTitle;
}
public void setAppTitle(String appTitle) {
this.appTitle = appTitle;
}
public double getMinWidth() {
return minWidth;
}
public void setMinWidth(double minWidth) {
this.minWidth = minWidth;
}
public double getMinHeight() {
return minHeight;
}
public void setMinHeight(double minHeight) {
this.minHeight = minHeight;
}
public boolean isFullScreen() {
return fullScreen;
}
public void setFullScreen(boolean fullScreen) {
this.fullScreen = fullScreen;
}
public Integer getTimout() {
return timout;
}
public void setTimout(Integer timout) {
this.timout = timout;
}
public String getCabinetGroupCode() {
return cabinetGroupCode;
}
public void setCabinetGroupCode(String cabinetGroupCode) {
this.cabinetGroupCode = cabinetGroupCode;
}
public boolean isNodatabase() {
return nodatabase;
}
public void setNodatabase(boolean nodatabase) {
this.nodatabase = nodatabase;
}
}