01: // NodeHandler.java
02: // $Id: NodeHandler.java,v 1.6 2000/08/16 21:37:56 ylafon Exp $
03: // Author: Jean-Michel.Leon@sophia.inria.fr
04: // (c) COPYRIGHT MIT and INRIA, 1997.
05: // Please first read the full copyright statement in file COPYRIGHT.html
06:
07: package org.w3c.tools.widgets;
08:
09: /**
10: * The interface to be implemented by nodes.
11: * What is a node is application dependent, however, the informations the
12: * browser needs in order to be able do display nodes are obtained through
13: * this interface.
14: *
15: * @see TreeBrowser
16: */
17:
18: public interface NodeHandler {
19:
20: /**
21: * Notifies that a node has to be selected.
22: *
23: * @param browser the TreeBrowser sending the notification.
24: */
25: public void notifySelect(TreeBrowser browser, TreeNode node);
26:
27: /**
28: * Notifies that a node has to be expanded.
29: *
30: * @param browser the TreeBrowser sending the notification.
31: */
32: public void notifyExpand(TreeBrowser browser, TreeNode node);
33:
34: /**
35: * Notifies that a node has to be collapsed.
36: *
37: * @param browser the TreeBrowser sending the notification.
38: */
39: public void notifyCollapse(TreeBrowser browser, TreeNode node);
40:
41: /**
42: * Notifies that a node has to be executed.
43: *
44: * @param browser the TreeBrowser sending the notification.
45: */
46: public void notifyExecute(TreeBrowser browser, TreeNode node);
47:
48: /**
49: * Checks if the node is a directory.
50: *
51: * @param browser the TreeBrowser sending the notification.
52: */
53: public boolean isDirectory(TreeBrowser browser, TreeNode node);
54:
55: }
|