From dcd10b7d2b9773386ec2190d0b75dabf94c9ca38 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 00:12:02 +0900 Subject: [PATCH] =?UTF-8?q?Dialog=E3=81=A7=E4=BD=BF=E3=81=86=E6=8B=A1?= =?UTF-8?q?=E5=BC=B5=E3=83=A2=E3=83=87=E3=83=AB=E3=82=92=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ocumentTagApplyTagDialogExtendedModel.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 component/common/src/main/java/one/nem/lacerta/component/common/model/DocumentTagApplyTagDialogExtendedModel.java diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/model/DocumentTagApplyTagDialogExtendedModel.java b/component/common/src/main/java/one/nem/lacerta/component/common/model/DocumentTagApplyTagDialogExtendedModel.java new file mode 100644 index 00000000..622d38e7 --- /dev/null +++ b/component/common/src/main/java/one/nem/lacerta/component/common/model/DocumentTagApplyTagDialogExtendedModel.java @@ -0,0 +1,24 @@ +package one.nem.lacerta.component.common.model; + +import one.nem.lacerta.model.document.tag.DocumentTag; + +/** + * DocumentTagを設定するダイアログで使うための拡張モデル + * チェックボックスの状態を保持するように + */ +public class DocumentTagApplyTagDialogExtendedModel extends DocumentTag { + + private boolean isChecked; + + public DocumentTagApplyTagDialogExtendedModel(DocumentTag documentTag) { + super(documentTag.getId(), documentTag.getName(), documentTag.getColor()); + } + + public boolean getIsChecked() { + return isChecked; + } + + public void setIsChecked(boolean checked) { + isChecked = checked; + } +}