01: /**
02: * Copyright 2006 Webmedia Group Ltd.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: **/package org.araneaframework.jsp.tag;
16:
17: import javax.servlet.jsp.JspException;
18:
19: /**
20: * Styled wrapper tag.
21: *
22: * @author Oleg Mürk
23: */
24: public abstract class StyledWrapperTag extends BaseTagWrapperTag {
25: protected String styleClass;
26:
27: public StyledWrapperTag() {
28: this .styleClass = null;
29: }
30:
31: /**
32: * Callback: configure row tag
33: */
34: protected void configureTag(ContainedTagInterface tag)
35: throws JspException {
36: StyledTagInterface styledTag = (StyledTagInterface) tag;
37: styledTag.setStyleClass(styleClass);
38: }
39:
40: /* ***********************************************************************************
41: * Tag attributes
42: * ***********************************************************************************/
43:
44: /**
45: * @jsp.attribute
46: * type = "java.lang.String"
47: * required = "false"
48: * description = "Cell css class, defines the way the cell will be rendered."
49: */
50: public void setStyleClass(String styleClass) throws JspException {
51: this .styleClass = (String) evaluate("styleClass", styleClass,
52: String.class);
53: }
54: }
|