summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:23:21 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:23:21 +0000
commit22f1c61587bc8c1612cc64b791c8c743aa53b3ed (patch)
tree9e67987d304a804c3d54ddbf48a1877ac087287b /pdf-over-gui
parent266123565be9267ce29430447e818f1d4a587d97 (diff)
downloadpdf-over-22f1c61587bc8c1612cc64b791c8c743aa53b3ed.tar.gz
pdf-over-22f1c61587bc8c1612cc64b791c8c743aa53b3ed.tar.bz2
pdf-over-22f1c61587bc8c1612cc64b791c8c743aa53b3ed.zip
+ Placeholder note text
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@293 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java16
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java6
2 files changed, 20 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
index a267e521..eca7e94d 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
@@ -834,15 +834,27 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
if (image == null || image.trim().equals("")) { //$NON-NLS-1$
if (this.signer != null) {
+ SignatureParameter param = this.signer.getPDFSigner()
+ .newParameter();
+ if(this.configurationContainer.getSignatureNote() != null && !this.configurationContainer.getSignatureNote().equals("")) { //$NON-NLS-1$
+ param.setProperty("SIG_NOTE", this.configurationContainer.getSignatureNote()); //$NON-NLS-1$
+ }
+
+ param.setSignatureLanguage(this.configurationContainer.getSignLocale().getLanguage());
+
img = ImageConverter
- .convertToSWT((BufferedImage) this.signer
- .getPDFSigner().newParameter()
+ .convertToSWT((BufferedImage) param
.getPlaceholder());
}
} else {
if (this.signer != null) {
SignatureParameter param = this.signer.getPDFSigner()
.newParameter();
+ if(this.configurationContainer.getSignatureNote() != null && !this.configurationContainer.getSignatureNote().equals("")) { //$NON-NLS-1$
+ param.setProperty("SIG_NOTE", this.configurationContainer.getSignatureNote()); //$NON-NLS-1$
+ }
+
+ param.setSignatureLanguage(this.configurationContainer.getSignLocale().getLanguage());
param.setEmblem(new FileNameEmblem(image));
img = ImageConverter.convertToSWT((BufferedImage) param
.getPlaceholder());
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java
index 93ccddce..0c6b2c8b 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java
@@ -68,6 +68,12 @@ public class PositioningState extends State {
SignatureParameter param = this.stateMachine.getPDFSigner().getPDFSigner().newParameter();
Emblem emblem = new FileNameEmblem(this.stateMachine.getConfigProvider().getDefaultEmblem());
param.setEmblem(emblem);
+ if(this.stateMachine.getConfigProvider().getSignatureNote() != null && !this.stateMachine.getConfigProvider().getSignatureNote().equals("")) { //$NON-NLS-1$
+ param.setProperty("SIG_NOTE", this.stateMachine.getConfigProvider().getSignatureNote()); //$NON-NLS-1$
+ }
+
+ param.setSignatureLanguage(this.stateMachine.getConfigProvider().getSignLocale().getLanguage());
+
this.positionComposite.setPlaceholder(
param.getPlaceholder(),
param.getPlaceholderDimension().getWidth(),