01: /**
02: * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
03: * @version $Id: CheckBoxBean.java 6385 2007-10-25 14:02:26Z wehrens $
04: */package org.gridsphere.provider.portletui.beans;
05:
06: /**
07: * A <code>CheckBoxBean</code> provides a check box element
08: */
09: public class CheckBoxBean extends SelectElementBean {
10:
11: public static final String CHECKBOX_STYLE = "portlet-form-field";
12:
13: /**
14: * Constructs a default check box bean
15: */
16: public CheckBoxBean() {
17: super (TagBean.CHECKBOX_NAME);
18: this .cssClass = CHECKBOX_STYLE;
19: }
20:
21: /**
22: * Constructs a check box bean with a supplied bean identifier
23: *
24: * @param beanId the bean identifier
25: */
26: public CheckBoxBean(String beanId) {
27: this ();
28: this .beanId = beanId;
29: }
30:
31: public String toStartString() {
32: return super .toStartString("checkbox");
33: }
34:
35: }
|