View Javadoc

1   /*
2    * @(#)$Id: ExplorerNode.java 689 2009-07-22 00:10:27Z bsigner $
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  
27  package org.ximtec.igesture.tool.explorer;
28  
29  import javax.swing.tree.DefaultMutableTreeNode;
30  
31  import org.ximtec.igesture.tool.explorer.core.NodeInfo;
32  
33  
34  /**
35   * Not used at the moment.
36   * 
37   * @author UeliKurmann
38   * @version 1.0
39   * @since igesture
40   */
41  public class ExplorerNode<T> extends DefaultMutableTreeNode {
42  
43  
44  
45     private T userObject;
46  
47  
48     public ExplorerNode(T userObject, NodeInfo nodeInfo) {
49        this.userObject = userObject;
50       
51     }
52  
53  
54     @SuppressWarnings("unchecked")
55     @Override
56     public void setUserObject(Object userObject) {
57        this.userObject = (T)(userObject);
58  
59     }
60  
61  
62     public T getUserObject() {
63        return userObject;
64     }
65     
66     
67  
68  }