FxConfigure.java 3.07 KB
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;
    }
}