Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
NewAssetEvent.java
1 
16 package net.squiz.matrix.matrixtree;
17 
18 import net.squiz.matrix.core.*;
19 import java.util.EventObject;
20 import javax.swing.tree.TreeNode;
21 
22 public class NewAssetEvent extends EventObject {
23 
24  private String typeCode;
25  private MatrixTreeNode parent;
26  private int index;
27 
28  public NewAssetEvent(Object source,
29  String typeCode,
30  MatrixTreeNode parent,
31  int index) {
32  super(source);
33  this.typeCode = typeCode;
34  this.parent = parent;
35  this.index = index;
36  }
37 
38  public String getTypeCode() {
39  return typeCode;
40  }
41 
42  public MatrixTreeNode getParentNode() {
43  return parent;
44  }
45 
46  public int getIndex() {
47  return index;
48  }
49 }