blob: ef8057993b75c2c761b3390d7cb5f6328511d918 (
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
|
package org.openslx.dozmod.gui.window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.openslx.dozmod.gui.MainWindow;
import org.openslx.dozmod.gui.window.layout.MainMenuWindowLayout;
import org.openslx.dozmod.thrift.Session;
@SuppressWarnings("serial")
public class MainMenuWindow extends MainMenuWindowLayout {
public MainMenuWindow() {
super();
// function for vmButton
btnShowVirtualMachines.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
MainWindow.showPage(ImageListWindow.class);
}
});
// function for lecturesButton
btnShowLectures.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
MainWindow.showPage(LectureListWindow.class);
}
});
}
@Override
public boolean requestHide() {
return true;
}
@Override
public void requestShow() {
btnShowVirtualMachines.setEnabled(Session.canListImages());
}
}
|