blob: a5737a0fbfe6554f6e46b9ccb02b15e469d02ed0 (
plain)
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
|
package com.vaadin.tests.tickets;
import com.vaadin.LegacyApplication;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2022 extends LegacyApplication {
@Override
public void init() {
LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
setMainWindow(w);
setTheme("tests-tickets");
CustomLayout l;
// WebApplicationContext wac = ((WebApplicationContext) getContext());
// File f = new File(wac.getBaseDirectory().getAbsoluteFile()
// + "/VAADIN/themes/" + getTheme() + "/layouts/Ticket2022.html");
l = new CustomLayout("Ticket2022");
// try {
// l = new CustomLayout(new FileInputStream(f));
w.setContent(l);
// } catch (FileNotFoundException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
}
}
|