KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > tree > MutableTreeModel


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 package com.tonbeller.wcf.tree;
14
15
16 /**
17  * a TreeModel that allows to change the parent/child relationship.
18  *
19  * @author av
20  */

21 public interface MutableTreeModel extends TreeModel {
22
23   /**
24    * changes the parent / child relationship so that future calls to getChildren(parent) will return children
25    *
26    * @param parent the parent node or null to change the root node(s)
27    *
28    * @param children the new children of parent. If children is an empty array, future calls to hasChildren(parent)
29    * will return true, and getChildren(parent) will return the empty array. If children is null, future calls
30    * to hasChildren(parent) will return false.
31    */

32   void change(Object JavaDoc parent, Object JavaDoc[] children);
33   
34 }
35
Popular Tags