package model; import Classes.Languages; public class LangModel { private static LangModel instance; private Languages fromLang = Languages.fr; private Languages toLang = Languages.en; private LangModel() { } public static LangModel getInstance() { if(LangModel.instance == null) { LangModel.instance = new LangModel(); } return LangModel.instance; } public void setFromLang(Languages lang) { this.fromLang = lang; } public Languages getFromLang() { return this.fromLang; } public void setToLang(Languages lang) { this.toLang = lang; } public Languages getToLang() { return this.toLang; } }