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 package org.ximtec.igesture.tool.view.admin.panel;
27
28 import java.awt.Dimension;
29 import java.net.URL;
30
31 import org.ximtec.igesture.tool.GestureConstants;
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 import org.ximtec.igesture.tool.view.admin.wrapper.GestureSetList;
37
38
39 public class GestureSetsPanel extends AbstractPanel {
40
41 private static final String HTML_FILE = "html/adminTab.html";
42 GestureSetList rootSet;
43
44
45 public GestureSetsPanel(Controller controller, GestureSetList rootSet) {
46 super(controller);
47 this.rootSet = rootSet;
48 init();
49 }
50
51
52 private void init() {
53 String title = getComponentFactory().getGuiBundle().getName(GestureConstants.GESTURE_SETS_PANEL_TITLE);
54 setTitle(TitleFactory.createStaticTitle(title));
55
56 URL path = this.getClass().getClassLoader().getResource(HTML_FILE);
57 HtmlPanel htmlPanel = new HtmlPanel(path, new Dimension(400,400));
58 setContent(htmlPanel);
59
60 }
61
62 }