From c9c6152df24f776f5cb8b440777b77059b5ce5c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E8=BD=B2?= Date: Wed, 11 Oct 2023 02:05:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20UserConfig.java=20?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jcnc/jnotepad/app/config/UserConfig.java | 38 ++++++++++++++++++- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jcnc/jnotepad/app/config/UserConfig.java b/src/main/java/org/jcnc/jnotepad/app/config/UserConfig.java index c828a33..8a05648 100644 --- a/src/main/java/org/jcnc/jnotepad/app/config/UserConfig.java +++ b/src/main/java/org/jcnc/jnotepad/app/config/UserConfig.java @@ -8,7 +8,12 @@ import java.util.List; /** * 用户配置文件类 * - * @author 许轲 + *

+ * 此类用于存储用户的配置信息,包括语言设置、文本自动换行设置和快捷键配置。 + *

+ * + * @author luke + * */ public class UserConfig { @@ -17,27 +22,56 @@ public class UserConfig { private boolean textWrap; private List shortcutKey; - + /** + * 获取语言设置 + * + * @return 语言设置 + */ public String getLanguage() { return language; } + /** + * 设置语言设置 + * + * @param language 语言设置 + */ public void setLanguage(String language) { this.language = language; } + /** + * 获取快捷键配置列表 + * + * @return 快捷键配置列表 + */ public List getShortcutKey() { return shortcutKey; } + /** + * 设置快捷键配置列表 + * + * @param shortcutKey 快捷键配置列表 + */ public void setShortcutKey(List shortcutKey) { this.shortcutKey = shortcutKey; } + /** + * 获取文本自动换行设置 + * + * @return 是否启用文本自动换行 + */ public boolean isTextWrap() { return textWrap; } + /** + * 设置文本自动换行设置 + * + * @param textWrap 是否启用文本自动换行 + */ public void setTextWrap(boolean textWrap) { this.textWrap = textWrap; }