KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.util.Set JavaDoc;
16
17 /**
18  * allows the user to delete nodes from the tree model
19  *
20  * @author av
21  */

22 public interface DeleteNodeModel {
23   /**
24    * if true, the node will be rendered with a delete button
25    */

26   boolean isDeletable(Object JavaDoc node);
27
28   /**
29    * called when the user presses the delete button.
30    * @param node
31    */

32   void delete(Object JavaDoc node);
33   
34   /**
35    * the tree does not paint nodes that are contained in this set.
36    * This allows the application to collect the deleted nodes
37    * in this set and perform the actual deletion when the user
38    * presses the "commit" button.
39    *
40    * @return Set containing nodes not to be painted
41    */

42   Set JavaDoc getDeleted();
43 }
44
Popular Tags