summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-03 13:55:35 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-03 13:55:35 +0200
commit761431947a2c6bc1e14ea848b97eee0f9a950171 (patch)
tree4809222bca6f07a979e86740812318a49f0bec62 /pdf-over-gui/src/main/java
parent444dc53b2e2b72699faf39db55dd56b21313da7a (diff)
downloadpdf-over-761431947a2c6bc1e14ea848b97eee0f9a950171.tar.gz
pdf-over-761431947a2c6bc1e14ea848b97eee0f9a950171.tar.bz2
pdf-over-761431947a2c6bc1e14ea848b97eee0f9a950171.zip
correct signature profile in preview
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
index e7754dfb..3d351292 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
@@ -423,6 +423,7 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase {
try {
PdfAs4SignatureParameter param = new PdfAs4SignatureParameter();
+ param.signatureProfileName = this.configurationContainer.getSignatureProfile().name();
if(this.configurationContainer.signatureNote != null && !this.configurationContainer.signatureNote.isEmpty()) {
param.setProperty("SIG_NOTE", this.configurationContainer.signatureNote);
}
@@ -504,6 +505,8 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase {
if ((previous != null) && (txtSignatureNote.getText().equals(getDefaultSignatureBlockNoteTextFor(null, previous))))
txtSignatureNote.setText(getDefaultSignatureBlockNoteTextFor(null, selected));
+
+ updateSignatureBlockPreview();
}
@@ -519,6 +522,8 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase {
}
if (txtSignatureNote.getText().equals(getDefaultSignatureBlockNoteTextFor(oldProfile, null)))
txtSignatureNote.setText(getDefaultSignatureBlockNoteTextFor(newProfile, null));
+
+ updateSignatureBlockPreview();
}
String getDefaultSignatureBlockNoteTextFor(Profile profile, Locale locale){
@@ -543,6 +548,7 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase {
void processSignatureNoteChanged() {
String note = this.txtSignatureNote.getText();
this.configurationContainer.signatureNote = note;
+ updateSignatureBlockPreview();
}
/*