KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > wstore > HtmlCode


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Smart Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.wstore;
15
16 import org.apache.ecs.*;
17
18 /**
19  * ECS Component Collection.
20  *
21  * @author Jorg Janke
22  * @version $Id: HtmlCode.java,v 1.1 2003/03/10 05:36:19 jjanke Exp $
23  */

24 public class HtmlCode extends MultiPartElement
25     implements Printable
26 {
27
28     public HtmlCode ()
29     {
30         setNeedClosingTag (false);
31         setTagText ("");
32         setStartTagChar (' ');
33         setEndTagChar (' ');
34     }
35
36     /**
37         Adds an Element to the element.
38         @param hashcode name of element for hash table
39         @param element Adds an Element to the element.
40         @return this
41      */

42     public HtmlCode addElement (String JavaDoc hashcode, Element element)
43     {
44         addElementToRegistry (hashcode, element);
45         return (this);
46     }
47
48
49     /**
50         Adds an Element to the element.
51         @param hashcode name of element for hash table
52         @param element Adds an Element to the element.
53         @return this
54      */

55     public HtmlCode addElement (String JavaDoc hashcode, String JavaDoc element)
56     {
57         addElementToRegistry (hashcode, element);
58         return (this);
59     }
60
61
62     /**
63         Adds an Element to the element.
64         @param element Adds an Element to the element.
65         @return this
66      */

67     public HtmlCode addElement (Element element)
68     {
69         addElementToRegistry (element);
70         return (this);
71     }
72
73     /**
74         Adds an Element to the element.
75         @param element Adds an Element to the element.
76         @return this
77      */

78     public HtmlCode addElement (String JavaDoc element)
79     {
80         addElementToRegistry (element);
81         return (this);
82     }
83
84     /**
85         Removes an Element from the element.
86         @param hashcode the name of the element to be removed.
87         @return this
88      */

89     public HtmlCode removeElement (String JavaDoc hashcode)
90     {
91         removeElementFromRegistry (hashcode);
92         return (this);
93     }
94
95 } // HtmlCode
96
Popular Tags