From e9aeb2a74cfb58ee0e4c90fcca032ebe9afbb977 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 14 Jul 2022 09:56:11 +0200 Subject: add "remember password" toggle box (no functionality yet) --- .../asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java index be20c05c..077099ff 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java @@ -124,6 +124,7 @@ public class MobileBKUEnterNumberComposite extends StateComposite { Button btn_ok; Button btn_cancel; + Button btn_remember; /** * @return the errorMessage @@ -206,6 +207,8 @@ public class MobileBKUEnterNumberComposite extends StateComposite { this.lbl_error = new Label(containerComposite, SWT.WRAP | SWT.NATIVE ); StateComposite.anchor(lbl_error).top(87, -15).bottom(103, -20).left(5, 0).right(btn_cancel, -10).set(); + this.btn_remember = new Button(containerComposite, SWT.CHECK); + StateComposite.anchor(btn_remember).right(100, -10).top(0, 5).set(); } @Override @@ -282,8 +285,11 @@ public class MobileBKUEnterNumberComposite extends StateComposite { public void reloadResources() { StateComposite.setLocalizedText(lbl_number, "mobileBKU.number"); StateComposite.setLocalizedText(lbl_password, "mobileBKU.password"); + StateComposite.setLocalizedText(btn_remember, "mobileBKU.rememberPassword"); StateComposite.setLocalizedText(btn_ok, "common.Ok"); StateComposite.setLocalizedText(btn_cancel, "common.Cancel"); + + this.btn_remember.setToolTipText(Messages.getString("mobileBKU.rememberPasswordNote")); } } -- cgit v1.2.3