diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2012-11-13 14:21:37 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2012-11-13 14:21:39 +0100 |
commit | 3a13674cd84ec733bf76537514d8aaa390b97627 (patch) | |
tree | 1b1eb7991426bd958809cac95869fd6d670ac119 /trunk/pdf-over-gui/src/main | |
parent | f443edf9d2b5db5ba900550a7f3e3ac7a4e65b92 (diff) | |
download | pdf-over-3a13674cd84ec733bf76537514d8aaa390b97627.tar.gz pdf-over-3a13674cd84ec733bf76537514d8aaa390b97627.tar.bz2 pdf-over-3a13674cd84ec733bf76537514d8aaa390b97627.zip |
+ Placeholder note text
Diffstat (limited to 'trunk/pdf-over-gui/src/main')
2 files changed, 20 insertions, 2 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java index a267e521..eca7e94d 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java +++ b/trunk/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/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java index 93ccddce..0c6b2c8b 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java +++ b/trunk/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(), |