01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.views.jsp.ui;
06:
07: import javax.servlet.http.HttpServletRequest;
08: import javax.servlet.http.HttpServletResponse;
09:
10: import com.opensymphony.webwork.components.Component;
11: import com.opensymphony.webwork.components.OptGroup;
12: import com.opensymphony.webwork.views.jsp.ComponentTagSupport;
13: import com.opensymphony.xwork.util.OgnlValueStack;
14:
15: /**
16: *
17: * @author tm_jee
18: * @version $Date: 2006-08-29 21:58:18 +0200 (Tue, 29 Aug 2006) $ $Id: OptGroupTag.java 2700 2006-08-29 19:58:18Z rainerh $
19: */
20: public class OptGroupTag extends ComponentTagSupport {
21:
22: private static final long serialVersionUID = 7367401003498678762L;
23:
24: protected String list;
25: protected String listKey;
26: protected String listValue;
27: protected String label;
28: protected String disabled;
29:
30: public Component getBean(OgnlValueStack stack,
31: HttpServletRequest req, HttpServletResponse res) {
32: return new OptGroup(stack, req, res);
33: }
34:
35: protected void populateParams() {
36: super .populateParams();
37:
38: OptGroup optGroup = (OptGroup) component;
39: optGroup.setList(list);
40: optGroup.setLabel(label);
41: optGroup.setDisabled(disabled);
42: optGroup.setListKey(listKey);
43: optGroup.setListValue(listValue);
44: }
45:
46: public void setList(String list) {
47: this .list = list;
48: }
49:
50: public void setLabel(String label) {
51: this .label = label;
52: }
53:
54: public void setDisabled(String disabled) {
55: this .disabled = disabled;
56: }
57:
58: public void setListKey(String listKey) {
59: this .listKey = listKey;
60: }
61:
62: public void setListValue(String listValue) {
63: this.listValue = listValue;
64: }
65: }
|