summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java
diff options
context:
space:
mode:
authorStephan Schwaer2015-07-01 18:42:19 +0200
committerStephan Schwaer2015-07-01 18:42:19 +0200
commit40414e3ddfd190d2c8324458948357a6bd15ed41 (patch)
treeb59010d576ec79ee7019f06af9234f59c03067fa /dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java
parentFixed some comments and variable names (diff)
downloadtutor-module-40414e3ddfd190d2c8324458948357a6bd15ed41.tar.gz
tutor-module-40414e3ddfd190d2c8324458948357a6bd15ed41.tar.xz
tutor-module-40414e3ddfd190d2c8324458948357a6bd15ed41.zip
Fixed background and added methods for logical gui functions
Diffstat (limited to 'dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java')
-rw-r--r--dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java74
1 files changed, 70 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java b/dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java
index 3737817f..594634f8 100644
--- a/dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java
+++ b/dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java
@@ -23,18 +23,20 @@ public class VMWareInfoComposite extends Composite {
String checkboxText = "Ja, ich aktzeptiere die Vereinbarung. Benachrichtigung nicht mehr anzeigen.";
+ String infoTitle = "bwLehrpool Suite";
+
public VMWareInfoComposite(final Shell mainShell) {
- super(mainShell, SWT.NO_BACKGROUND);
+ super(mainShell, SWT.NONE);
// set the title of the bar.
- mainShell.setText("bwLehrpool Suite");
+ mainShell.setText(title);
// layout for this composite
this.setLayout(new GridLayout(1, false));
// bold title at start.
Label titleLabel = new Label(this, SWT.NONE);
- titleLabel.setText(title);
+ titleLabel.setText(infoTitle);
FontData fontData = titleLabel.getFont().getFontData()[0];
Font font = new Font(GuiManager.getDisplay(), new FontData(fontData.getName(), fontData
.getHeight(), SWT.BOLD));
@@ -87,9 +89,73 @@ public class VMWareInfoComposite extends Composite {
continuteButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- GuiManager.addContent(new MainWindowComposite(mainShell));
+ clickedContinueButton();
}
});
+
+ // actions of the login button
+ linuxDLButton.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ clickedLinuxDLButton();
+
+ }
+ });
+
+ // actions of the login button
+ windowsDLButton.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ clickedWindowsDLButton();
+
+ }
+ });
+
+ // actions of the login button
+ readCheck.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ clickedReadCheckButton();
+
+ }
+ });
+ }
+
+
+ //
+ // logical functions for GUI
+ //
+
+
+ /**
+ * function for the readCheckbox
+ */
+ protected void clickedReadCheckButton() {
+ // TODO Auto-generated method stub
+ }
+
+
+ /**
+ * function for the windowsDLButton
+ */
+ protected void clickedWindowsDLButton() {
+ // TODO Auto-generated method stub
+ }
+
+
+ /**
+ * function for the linuxDLButton
+ */
+ protected void clickedLinuxDLButton() {
+ // TODO Auto-generated method stub
+ }
+
+
+ /**
+ * function for the continueButton
+ */
+ protected void clickedContinueButton() {
+ GuiManager.addContent(new MainWindowComposite(this.getShell()));
}
} \ No newline at end of file