KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > tasklist > core > TaskListener


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.tasklist.core;
21
22 import java.util.EventListener JavaDoc;
23
24 /**
25  * Task list membership listener.
26  *
27  * @author Tor Norbye
28  * @todo selectedTask and warpedTask events have -NO- related attribute in Task nor TaskList.
29  * These should be probably removed.
30  */

31 public interface TaskListener extends EventListener JavaDoc {
32
33     /** Called to indicate that a particular task is made current.
34      * Do what you can to "select" this task.
35      */

36     void selectedTask(Task t);
37
38     /** Called to indicate that a particular task has been "warped to".
39      * Do what you can to "warp to" this task. Typically means show
40      * associated fileposition in the editor.
41      */

42     void warpedTask(Task t);
43
44     /**
45      * A task has been added.
46      *
47      * @param t added task
48      */

49     void addedTask(Task t);
50
51     /**
52      * A task has been removed.
53      *
54      * @param pt parent task or <code>null</code> if <code>t</code> is root
55      * @param t removed task
56      */

57     void removedTask(Task pt, Task t, int index);
58
59     /**
60      * Invoked after the tree has drastically changed structure from a
61      * given node down.
62      *
63      * @param t parent of the changed subtree or <code>null</code> if task list.
64      */

65     void structureChanged(Task t);
66 }
67
Popular Tags