01: /*
02: * $Id$ $Revision$ $Date$
03: *
04: * ==============================================================================
05: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
06: * use this file except in compliance with the License. You may obtain a copy of
07: * the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14: * License for the specific language governing permissions and limitations under
15: * the License.
16: */
17: package wicket.extensions.markup.html.tree;
18:
19: import javax.swing.tree.TreeNode;
20:
21: /**
22: * Methods this interface are called when tree state is changing.
23: *
24: * @author Matej Knopp
25: */
26: public interface ITreeStateListener {
27: /**
28: * Fired when all nodes are collapsed.
29: */
30: void allNodesCollapsed();
31:
32: /**
33: * Fired when all nodes are expanded.
34: */
35: void allNodesExpanded();
36:
37: /**
38: * Fired when given node is collapsed.
39: *
40: * @param node
41: * The node that was collapsed
42: */
43: void nodeCollapsed(TreeNode node);
44:
45: /**
46: * Fired when given node is expanded.
47: *
48: * @param node
49: */
50: void nodeExpanded(TreeNode node);
51:
52: /**
53: * Fired when given node gets selected.
54: *
55: * @param node
56: * The node that was selected
57: */
58: void nodeSelected(TreeNode node);
59:
60: /**
61: * Fired when given node gets unselected.
62: *
63: * @param node
64: * The node that was unselected
65: */
66: void nodeUnselected(TreeNode node);
67: }
|