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 package org.ximtec.igesture.tool.view.admin.panel;
28
29 import java.awt.Dimension;
30 import java.net.URL;
31
32 import org.ximtec.igesture.tool.core.Controller;
33 import org.ximtec.igesture.tool.util.HtmlPanel;
34 import org.ximtec.igesture.tool.util.TitleFactory;
35 import org.ximtec.igesture.tool.view.AbstractPanel;
36
37
38
39
40
41
42
43
44 public class DefaultPanel extends AbstractPanel {
45
46 private static final String HTML_FILE = "html/adminTab.html";
47
48
49 public DefaultPanel(Controller controller, Object obj) {
50 super(controller);
51 init(obj);
52 }
53
54
55
56
57
58 private void init(Object obj) {
59 setTitle(TitleFactory.createStaticTitle(obj.toString()));
60
61 URL path = this.getClass().getClassLoader().getResource(HTML_FILE);
62
63 HtmlPanel htmlPanel = new HtmlPanel(path, new Dimension(400, 400));
64
65 setContent(htmlPanel);
66 }
67
68
69 @Override
70 public void refreshUILogic() {
71
72 }
73 }