View Javadoc

1   /*
2    * @(#)$Id: GestureSetsPanel.java 739 2009-08-14 18:59:10Z kurmannu $
3    *
4    * Author   : Ueli Kurmann, igesture@uelikurmann.ch
5    *                                   
6    *                                   
7    * Purpose  : 
8    *
9    * -----------------------------------------------------------------------
10   *
11   * Revision Information:
12   *
13   * Date       Who     Reason
14   *
15   * 23.03.2008 ukurmann  Initial Release
16   *
17   * -----------------------------------------------------------------------
18   *
19   * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
20   *
21   * This software is the proprietary information of ETH Zurich.
22   * Use is subject to license terms.
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  }