diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:37:03 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:37:03 +0000 |
commit | 2e8a43112506bd73a31002a83454b50fb9472ba4 (patch) | |
tree | bc13aa11fda6906f4417925db874275c0d3b05f1 /trunk/pdf-over-gui/src/main/java/at | |
parent | 19565007036e27e5b14f7572b0d4617b8649aa31 (diff) | |
download | pdf-over-2e8a43112506bd73a31002a83454b50fb9472ba4.tar.gz pdf-over-2e8a43112506bd73a31002a83454b50fb9472ba4.tar.bz2 pdf-over-2e8a43112506bd73a31002a83454b50fb9472ba4.zip |
Use sign button
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12768 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java index 988965b3..b7adaddd 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java +++ b/trunk/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(); |