KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > module > admininterface > AdminTreeConfiguration


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2005 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.module.admininterface;
14
15 import info.magnolia.cms.gui.control.Tree;
16
17 import javax.servlet.http.HttpServletRequest JavaDoc;
18
19
20 /**
21  * Used by the tree handler to configure the tree
22  * @author Philipp Bracher
23  * @version $Revision: 6341 $ ($Author: philipp $)
24  */

25 public interface AdminTreeConfiguration {
26
27     /**
28      * Override this method to configure the tree control (define the columns, ...)
29      * @param tree
30      * @param browseMode true if this tree is shown in simple browse mode
31      */

32     public void prepareTree(Tree tree, boolean browseMode, HttpServletRequest JavaDoc request);
33
34     /**
35      * Prepare the context menu of the tree. This is called during renderTree
36      * @param tree
37      * @param browseMode true if this tree is shown in simple browse mode
38      */

39     public void prepareContextMenu(Tree tree, boolean browseMode, HttpServletRequest JavaDoc request);
40
41     /**
42      * Prepare the functionbar (footerbar) of the tree. This is called during renderTree
43      * @param tree
44      * @param browseMode true if this tree is shown in simple browse mode
45      */

46     public void prepareFunctionBar(Tree tree, boolean browseMode, HttpServletRequest JavaDoc request);
47
48 }
49
Popular Tags