01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.views.jsp.ui;
06:
07: import com.opensymphony.webwork.components.Component;
08: import com.opensymphony.webwork.components.Head;
09: import com.opensymphony.xwork.util.OgnlValueStack;
10:
11: import javax.servlet.http.HttpServletRequest;
12: import javax.servlet.http.HttpServletResponse;
13:
14: /**
15: * @see Head
16: */
17: public class HeadTag extends AbstractUITag {
18:
19: private String calendarcss;
20: private String debug;
21:
22: public Component getBean(OgnlValueStack stack,
23: HttpServletRequest req, HttpServletResponse res) {
24: return new Head(stack, req, res);
25: }
26:
27: protected void populateParams() {
28: super .populateParams();
29: if (calendarcss != null) {
30: ((Head) component).setCalendarcss(calendarcss);
31: }
32: if (debug != null) {
33: ((Head) component).setDebug(Boolean.valueOf(debug)
34: .booleanValue());
35: }
36: }
37:
38: public String getCalendarcss() {
39: return calendarcss;
40: }
41:
42: public void setCalendarcss(String calendarcss) {
43: this .calendarcss = calendarcss;
44: }
45:
46: public void setDebug(String debug) {
47: this.debug = debug;
48: }
49: }
|