KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > tags > IHtmlCore


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.tags;
19
20 import javax.servlet.jsp.JspException JavaDoc;
21
22
23 /**
24  * This interface defines the HTML 4.0 core attributes. The following properties represent the core attributes:
25  * id = tagId, class = styleClass, style = style, title = title. This is a marker interface on the tags
26  * ensuring that tags representing core HTML elements have the defined property set.
27  */

28 public interface IHtmlCore
29 {
30
31     /**
32      * Return the ID of the tag. The id may be rewritten by the container (such
33      * as a portal) to make sure it is unique. JavaScript my lookup the actual id
34      * of the element by looking it up in the <code>netui_names</code> table written
35      * into the HTML.
36      * @return the tagId.
37      */

38     //String getTagId();
39

40     /**
41      * Set the ID of the tag.
42      * @param tagId - the tagId.
43      */

44     void setTagId(String JavaDoc tagId)
45             throws JspException JavaDoc;
46
47     /**
48      * Returns the Nodes title.
49      * @return
50      */

51     //String getTitle();
52

53     /**
54      * Sets the Nodes title.
55      * @param title
56      */

57     void setTitle(String JavaDoc title);
58
59     /**
60      * Sets the style of the rendered html tag.
61      * @param style - the html style.
62      */

63     void setStyle(String JavaDoc style);
64
65     /**
66      * Gets the style of the rendered html tag.
67      * @return the style.
68      */

69     //String getStyle();
70

71     /**
72      * Sets the style class of the rendered html tag.
73      * @param styleClass - the html style class.
74      */

75     void setStyleClass(String JavaDoc styleClass);
76
77     /**
78      * Gets the style class of the rendered html tag.
79      * @return the style class.
80      */

81     //String getStyleClass();
82
}
83
Popular Tags