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:01:23 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:01:23 +0000
commitb232a5f78c786d3769096aebc9c13679ce35c169 (patch)
tree518015b44a8899487cfd80c0438c21c11a3b8319 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites
parent01f6e6d262fbc0be426e72e047d255399002e335 (diff)
downloadpdf-over-b232a5f78c786d3769096aebc9c13679ce35c169.tar.gz
pdf-over-b232a5f78c786d3769096aebc9c13679ce35c169.tar.bz2
pdf-over-b232a5f78c786d3769096aebc9c13679ce35c169.zip
+ fixed Warnings
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@85 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/BKUSelectionComposite.java31
1 files changed, 26 insertions, 5 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java
index a7a1b6aa..522b3bad 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java
@@ -41,6 +41,9 @@ import at.asit.pdfover.signator.BKUs;
*/
public class BKUSelectionComposite extends StateComposite {
+ /**
+ * Margin for button
+ */
public static final int btnMargin = 2;
/**
@@ -115,12 +118,12 @@ public class BKUSelectionComposite extends StateComposite {
Button btn_mobile = new Button(this, SWT.NATIVE | SWT.RESIZE);
- btn_mobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$
+ //btn_mobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$
//Point mobile_size = btn_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT);
FormData fd_btn_mobile = new FormData();
//fd_btn_mobile.left = new FormAttachment(40, 0);
fd_btn_mobile.right = new FormAttachment(50, -5);
- fd_btn_mobile.top = new FormAttachment(40, 0);
+ fd_btn_mobile.top = new FormAttachment(40, -20);
//fd_btn_mobile.bottom = new FormAttachment(55, 0);
btn_mobile.setLayoutData(fd_btn_mobile);
btn_mobile.addSelectionListener(new MobileSelectionListener());
@@ -134,12 +137,12 @@ public class BKUSelectionComposite extends StateComposite {
btn_mobile.setFont(new Font(Display.getCurrent(), fD_btn_mobile[0]));
Button btn_card = new Button(this, SWT.NATIVE | SWT.RESIZE);
- btn_card.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$
+ //btn_card.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$
//Point card_size = btn_card.computeSize(SWT.DEFAULT, SWT.DEFAULT);
FormData fd_btn_card = new FormData();
fd_btn_card.left = new FormAttachment(50, 5);
//fd_btn_card.right = new FormAttachment(60, 0);
- fd_btn_card.top = new FormAttachment(40, 0);
+ fd_btn_card.top = new FormAttachment(40, -20);
//fd_btn_card.bottom = new FormAttachment(55, 0);
btn_card.setLayoutData(fd_btn_card);
btn_card.addSelectionListener(new LocalSelectionListener());
@@ -152,6 +155,25 @@ public class BKUSelectionComposite extends StateComposite {
btn_card.setImage(karte);
+ Button btnMobile = new Button(this, SWT.NONE);
+ FormData fd_btnMobile = new FormData();
+ fd_btnMobile.top = new FormAttachment(btn_mobile, 10);
+ //fd_btnMobile.left = new FormAttachment(btn_mobile, 0);
+ fd_btnMobile.right = new FormAttachment(50, -5);
+ fd_btnMobile.width = btn_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+ btnMobile.setLayoutData(fd_btnMobile);
+ btnMobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$
+ btnMobile.addSelectionListener(new MobileSelectionListener());
+
+ Button btnCard = new Button(this, SWT.NONE);
+ FormData fd_btnCard = new FormData();
+ fd_btnCard.top = new FormAttachment(btn_card, 10);
+ //fd_btnMobile.left = new FormAttachment(btn_mobile, 0);
+ fd_btnCard.left = new FormAttachment(50, 5);
+ fd_btnCard.width = btn_card.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+ btnCard.setLayoutData(fd_btnCard);
+ btnCard.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$
+ btnCard.addSelectionListener(new LocalSelectionListener());
//this.pack();
}
@@ -167,5 +189,4 @@ public class BKUSelectionComposite extends StateComposite {
public void doLayout() {
this.layout(true, true);
}
-
}