01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: * $Header:$
18: */
19: package org.apache.beehive.netui.tags;
20:
21: import javax.servlet.jsp.JspException;
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: * Return the ID of the tag. The id may be rewritten by the container (such
32: * as a portal) to make sure it is unique. JavaScript may lookup the actual id
33: * of the element by looking it up in the <code>netui_names</code> table written
34: * into the HTML.
35: * @return the tagId.
36: */
37: //String getTagId();
38: /**
39: * Set the ID of the tag.
40: * @param tagId - the tagId.
41: */
42: void setTagId(String tagId) throws JspException;
43:
44: /**
45: * Returns the Nodes title.
46: * @return
47: */
48: //String getTitle();
49: /**
50: * Sets the Nodes title.
51: * @param title
52: */
53: void setTitle(String title);
54:
55: /**
56: * Sets the style of the rendered html tag.
57: * @param style - the html style.
58: */
59: void setStyle(String style);
60:
61: /**
62: * Gets the style of the rendered html tag.
63: * @return the style.
64: */
65: //String getStyle();
66: /**
67: * Sets the style class of the rendered html tag.
68: * @param styleClass - the html style class.
69: */
70: void setStyleClass(String styleClass);
71:
72: /**
73: * Gets the style class of the rendered html tag.
74: * @return the style class.
75: */
76: //String getStyleClass();
77: }
|