01 /*
02 * TreeNodeSelectionListener.java
03 *
04 * Niraj Aswani, 09/March/07
05 *
06 * $Id: TreeNodeSelectionListener.html,v 1.0 2007/03/09 16:13:01 niraj Exp $
07 */
08 package gate.gui.ontology;
09
10 import java.util.ArrayList;
11 import javax.swing.tree.DefaultMutableTreeNode;
12
13 /**
14 * Objects wishing to listen to the events fired by the ontology editor
15 * when a user changes his/her selection in the ontology tree editor,
16 * should implements this interface and get registered by using the
17 * repsective method in the OntologyEditor.
18 *
19 * @author niraj
20 *
21 */
22 public interface TreeNodeSelectionListener {
23 /**
24 * This method is invoked by the ontology editor whenever a user
25 * changes his/her selection in the ontology tree editor.
26 *
27 * @param arraylist
28 */
29 public void selectionChanged(ArrayList<DefaultMutableTreeNode> arraylist);
30 }
|