01: /**
02: * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
03: * @version $Id: ParamBean.java 6385 2007-10-25 14:02:26Z wehrens $
04: */package org.gridsphere.provider.portletui.beans;
05:
06: /**
07: * An <code>ParamBean</code> is a visual bean that represents parameters associated with a render or action link/button
08: */
09: public class ParamBean extends BaseBean {
10:
11: private String name = "";
12: private String value = "";
13:
14: /**
15: * Constructs a default action param bean
16: */
17: public ParamBean() {
18: }
19:
20: /**
21: * Constructs an action param bean from a supplied portlet request and bean identifier
22: *
23: * @param name the action param name
24: * @param value the action param value
25: */
26: public ParamBean(String name, String value) {
27: this .name = name;
28: this .value = value;
29: }
30:
31: /**
32: * Constructs an action param bean from a supplied portlet request and bean identifier
33: *
34: * @param beanId the bean identifier
35: */
36: public ParamBean(String beanId) {
37: this .beanId = beanId;
38: }
39:
40: /**
41: * Sets the action parameter name
42: *
43: * @param name the action parameter name
44: */
45: public void setName(String name) {
46: this .name = name;
47: }
48:
49: /**
50: * Returns the action parameter name
51: *
52: * @return the action parameter name
53: */
54: public String getName() {
55: return name;
56: }
57:
58: /**
59: * Returns the action parameter value
60: *
61: * @return the action parameter value
62: */
63: public String getValue() {
64: return value;
65: }
66:
67: /**
68: * Sets the action parameter value
69: *
70: * @param value the action parameter value
71: */
72: public void setValue(String value) {
73: this .value = value;
74: }
75:
76: public String toStartString() {
77: return "";
78: }
79:
80: public String toEndString() {
81: return "";
82: }
83:
84: }
|