diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:15:51 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:15:51 +0000 |
commit | 1e3923708bb82dafac5283ea6c990bd1a755b941 (patch) | |
tree | 3edeb5d108bd5e5149531258141fb6c10c463169 /pdf-over-gui/src/main/java | |
parent | 2b047c81811e911ee396b9d19e813cdcbe533233 (diff) | |
download | mocca-1e3923708bb82dafac5283ea6c990bd1a755b941.tar.gz mocca-1e3923708bb82dafac5283ea6c990bd1a755b941.tar.bz2 mocca-1e3923708bb82dafac5283ea6c990bd1a755b941.zip |
Add restore default button for sig note
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@229 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java | 21 |
1 files changed, 21 insertions, 0 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 9070a23c..97b876b0 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 @@ -99,6 +99,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { private Group grpSignatureNote; private Label lblSignatureNote; Text txtSignatureNote; + private Button btnSignatureNoteDefault; private Group grpProxy; private Label lblProxyHost; @@ -449,6 +450,24 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { } }); + Composite compSignatureNoteButtonContainer = new Composite(this.grpSignatureNote, SWT.NONE); + compSignatureNoteButtonContainer.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, + false, false, 2, 1)); + compSignatureNoteButtonContainer.setLayout(new FormLayout()); + + this.btnSignatureNoteDefault = new Button(compSignatureNoteButtonContainer, SWT.NONE); + FormData fd_btnSignatureNoteDefault = new FormData(); + fd_btnSignatureNoteDefault.top = new FormAttachment(0, 0); + fd_btnSignatureNoteDefault.right = new FormAttachment(100, -42); + this.btnSignatureNoteDefault.setLayoutData(fd_btnSignatureNoteDefault); + this.btnSignatureNoteDefault.addSelectionListener(new SelectionAdapter() { + @Override + public void widgetSelected(SelectionEvent e) { + SimpleConfigurationComposite.this.txtSignatureNote.setText( + Messages.getString("simple_config.Note_Default")); //$NON-NLS-1$ + } + }); + this.grpProxy = new Group(this, SWT.NONE); FormData fd_grpProxy = new FormData(); fd_grpProxy.right = new FormAttachment(100, -5); @@ -1025,6 +1044,8 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { this.lblSignatureNote.setText(Messages.getString("simple_config.Note")); //$NON-NLS-1$ this.txtSignatureNote.setToolTipText(Messages .getString("simple_config.Note_Tooltip")); //$NON-NLS-1$ + this.btnSignatureNoteDefault.setText(Messages + .getString("simple_config.Note_SetDefault")); //$NON-NLS-1$ this.grpProxy.setText(Messages.getString("simple_config.Proxy_Title")); //$NON-NLS-1$ this.lblProxyHost.setText(Messages.getString("simple_config.ProxyHost")); //$NON-NLS-1$ |