blob: 8cb3a1ad4ac8fc07443c947ca916e8243c53566c (
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
|
package org.openslx.dozmod.gui.window;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.openslx.bwlp.thrift.iface.LectureRead;
import org.openslx.dozmod.gui.window.layout.LectureSettingsWindowLayout;
public class LectureSettingsWindow extends LectureSettingsWindowLayout {
private static final long serialVersionUID = -1970717955867180231L;
public LectureSettingsWindow(Window modalParent, LectureRead lecture) {
super(modalParent);
taNetworkRules.setEnabled(false);
chkEnableInternet.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
taNetworkRules.setEnabled(!taNetworkRules.isEnabled());
}
});
}
/**
* Opens a new LectureSettingsWindow
*
* @param modalParent
*/
public static void open(Window modalParent, LectureRead lecture) {
LectureSettingsWindow win = new LectureSettingsWindow(modalParent, lecture);
win.setVisible(true);
}
}
|