summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtualizerNoticeWindow.java
blob: b0e443a76691b121e8fd049a538604facd622130 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package org.openslx.dozmod.gui.window;

import org.apache.log4j.Logger;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Shell;
import org.openslx.dozmod.Config;
import org.openslx.dozmod.gui.window.layout.VirtualizerNoticeWindowLayout;

public class VirtualizerNoticeWindow extends VirtualizerNoticeWindowLayout {

	private final static Logger LOGGER = Logger.getLogger(VirtualizerNoticeWindow.class);

	public VirtualizerNoticeWindow(final Shell mainShell) {
		super(mainShell);

		final VirtualizerNoticeWindow me = this;

		// function for agreement checkbox
		continueButton.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				Config.setVirtualizerRead(readCheck.getSelection());
				me.getShell().dispose();
			}
		});

		// 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();
			}
		});

	}

}