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; + } +}