blob: 3bffd0a28126c86277fc54944fa59cfb0dfa4895 (
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.itmill.toolkit.tests.tickets;
import com.itmill.toolkit.Application;
import com.itmill.toolkit.ui.CustomLayout;
import com.itmill.toolkit.ui.Window;
public class Ticket2022 extends Application {
@Override
public void init() {
Window w = new Window(getClass().getSimpleName());
setMainWindow(w);
setTheme("tests-tickets");
CustomLayout l;
// WebApplicationContext wac = ((WebApplicationContext) getContext());
// File f = new File(wac.getBaseDirectory().getAbsoluteFile()
// + "/ITMILL/themes/" + getTheme() + "/layouts/Ticket2022.html");
l = new CustomLayout("Ticket2022");
// try {
// l = new CustomLayout(new FileInputStream(f));
w.setLayout(l);
// } catch (FileNotFoundException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
}
}
|