summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:11:18 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:11:18 +0000
commitec583b87cc79ec72b8e0f53d5f499cebde2f90bd (patch)
tree22433568dc6039f5bfb6c7b88f7099135195db69 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites
parent855d78ed79a8dbe11b35395bff133c95801889d7 (diff)
downloadpdf-over-ec583b87cc79ec72b8e0f53d5f499cebde2f90bd.tar.gz
pdf-over-ec583b87cc79ec72b8e0f53d5f499cebde2f90bd.tar.bz2
pdf-over-ec583b87cc79ec72b8e0f53d5f499cebde2f90bd.zip
Use sign button
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@182 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
index 988965b3..b7adaddd 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
@@ -99,12 +99,19 @@ public class PositioningComposite extends StateComposite {
bottomBar.setLayoutData(fd_bottomBar);
bottomBar.setLayout(new FormLayout());
- Button btnSign = new Button(bottomBar, SWT.NONE);
+ Button btnSign = new Button(bottomBar, SWT.PUSH);
btnSign.setText(Messages.getString("positioning.sign")); //$NON-NLS-1$
FormData fd_btnSign = new FormData();
fd_btnSign.right = new FormAttachment(100);
fd_btnSign.top = new FormAttachment(0);
btnSign.setLayoutData(fd_btnSign);
+ this.getShell().setDefaultButton(btnSign);
+ btnSign.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ PositioningComposite.this.setFinalPosition();
+ }
+ });
this.lblPage = new Label(bottomBar, SWT.CENTER);
FormData fd_lblPage = new FormData();