16 package net.squiz.matrix.matrixtree;
18 import net.squiz.matrix.assetmap.*;
19 import java.util.EventObject;
20 import javax.swing.tree.TreeNode;
24 public static final String LINK_TYPE_MOVE =
"move asset";
25 public static final String LINK_TYPE_NEW_LINK =
"new link";
26 public static final String LINK_TYPE_CLONE =
"clone";
31 private int index, prevIndex;
32 private String[] parentIds;
44 if (type != LINK_TYPE_MOVE &&
45 type != LINK_TYPE_NEW_LINK &&
46 type != LINK_TYPE_CLONE) {
47 throw new IllegalArgumentException(
"type must be one of " +
48 "LINK_TYPE_MOVE or LINK_TYPE_NEW_LINK or LINK_TYPE_CLONE");
52 this.sourceNodes = sourceNodes;
53 this.parentNode = parentNode;
55 this.prevIndex = prevIndex;
56 this.parentIds = parentIds;
59 public String getType() {
71 public int getIndex() {
75 public int getPrevIndex() {
79 public String[] getParentIds() {