KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > qfs > apps > qflog > logview > FilterRootNode


1 // {{{ copyright
2

3 /********************************************************************
4  *
5  * $Id: FilterRootNode.java,v 1.6 2000/07/05 14:07:44 gs Exp $
6  *
7  * The contents of this file are subject to the Mozilla Public
8  * License Version 1.1 (the "License"); you may not use this file
9  * except in compliance with the License. You may obtain a copy of
10  * the License at http://www.mozilla.org/MPL/
11  *
12  * Software distributed under the License is distributed on an "AS
13  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
14  * implied. See the License for the specific language governing
15  * rights and limitations under the License.
16  *
17  * The Original Code is qfs.de code.
18  *
19  * The Initial Developer of the Original Code is Gregor Schmid.
20  * Portions created by Gregor Schmid are
21  * Copyright (C) 1999 Quality First Software, Gregor Schmid.
22  * All Rights Reserved.
23  *
24  * Contributor(s):
25  *
26  *******************************************************************/

27
28 // }}}
29

30 package de.qfs.apps.qflog.logview;
31
32 import de.qfs.lib.gui.TreeNotification;
33
34 /**
35  * Special FilterNode that knows about its model so it can pass on
36  * notifications.
37  *
38  * @author Gregor Schmid
39  * @version $Revision: 1.6 $
40  */

41 class FilterRootNode extends FilterNode
42 {
43     /**
44      * The model containing the node.
45      */

46     private LogFilterTreeModel model;
47
48     // {{{ constructor
49

50    /**
51      * Create a new FilterRootNode.
52      *
53      * @param clazz The class of the node's data.
54      * @param method The method of the node's data.
55      * @param model The model containing the node.
56      */

57      public FilterRootNode (String JavaDoc clazz, String JavaDoc method,
58                            LogFilterTreeModel model)
59     {
60         super (clazz, method);
61         this.model = model;
62     }
63
64     // }}}
65

66     // {{{ notify
67

68     /**
69      * Notify the node of some change. Passes the notification on to the model.
70      *
71      * @param notification Details of the change.
72      */

73     public void notify(TreeNotification notification)
74     {
75         notification.prependNode(this);
76         if (model != null) {
77             model.notify(notification);
78         }
79     }
80
81     // }}}
82
}
83
Popular Tags