KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > gui > controlx > Control


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.cms.gui.controlx;
14
15 /**
16  * A general control to build a component tree. A control has a render type to tell the RenderKit how this control
17  * should get rendered.
18  * @author Philipp Bracher
19  * @version $Revision: 6341 $ ($Author: philipp $)
20  */

21 public interface Control {
22
23     /**
24      * @return Returns the parent.
25      */

26     public Control getParent();
27
28     /**
29      * @param parent The parent to set.
30      */

31     public void setParent(Control parent);
32
33     public void addChild(Control control);
34
35     public Control getChild(String JavaDoc name);
36
37     /**
38      * @return Returns the name.
39      */

40     public String JavaDoc getName();
41
42     /**
43      * @param name The name to set.
44      */

45     public void setName(String JavaDoc name);
46
47     /**
48      * @return Returns the renderKit.
49      */

50     public RenderKit getRenderKit();
51
52     /**
53      * @param renderKit The renderKit to set.
54      */

55     public void setRenderKit(RenderKit renderKit);
56
57     public String JavaDoc render();
58
59     /**
60      * @return Returns the renderType.
61      */

62     public String JavaDoc getRenderType();
63
64     /**
65      * @param renderType The renderType to set.
66      */

67     public void setRenderType(String JavaDoc renderType);
68
69 }
Popular Tags