From c4bd3d761e43f180f13d4024bf8e96454dff6620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 26 Jan 2024 15:00:53 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=82=A4=E3=83=88=E3=83=AB=E3=81=AA?= =?UTF-8?q?=E3=81=A9=E3=81=AEGetter/Setter=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/LacertaCreateTagDialog.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaCreateTagDialog.java b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaCreateTagDialog.java index d87f2de1..9256d530 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaCreateTagDialog.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaCreateTagDialog.java @@ -11,6 +11,36 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder; public class LacertaCreateTagDialog extends DialogFragment { + private String title; + + private String message; + + private String positiveButtonText; + + private String negativeButtonText; + + + + public LacertaCreateTagDialog setTitle(String title) { + this.title = title; + return this; + } + + public LacertaCreateTagDialog setMessage(String message) { + this.message = message; + return this; + } + + public LacertaCreateTagDialog setPositiveButtonText(String positiveButtonText) { + this.positiveButtonText = positiveButtonText; + return this; + } + + public LacertaCreateTagDialog setNegativeButtonText(String negativeButtonText) { + this.negativeButtonText = negativeButtonText; + return this; + } + @Override public Dialog onCreateDialog(Bundle savedInstanceState) { MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(getActivity());