KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > util > TreeNodeCallback


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13
14 package com.tonbeller.jpivot.util;
15
16 /**
17  * handle call back for position tree
18  */

19 public interface TreeNodeCallback {
20
21   public static final int CONTINUE = 0;
22   public static final int CONTINUE_SIBLING = 1;
23   public static final int CONTINUE_PARENT = 2;
24   public static final int BREAK = 3;
25
26   /**
27    * @param node the current node to handle
28    * @return 0 continue tree walk
29    * 1 break this node (continue sibling)
30    * 2 break this level (continue parent level)
31    * 3 break tree walk
32    */

33   int handleTreeNode(TreeNode node);
34 } // TreeNodeCallback
35
Popular Tags