| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| CheckboxGroupControl |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2007 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community License, Version 1.0 (the | |
| 5 | * "License"); you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.opensource.org/licenses/ecl1.php | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
| 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
| 13 | * License for the specific language governing permissions and limitations under | |
| 14 | * the License. | |
| 15 | */ | |
| 16 | package org.kuali.rice.krad.uif.control; | |
| 17 | ||
| 18 | /** | |
| 19 | * Represents a group of HTML checkbox controls. Provides preset options for the | |
| 20 | * user to choose by a series of checkbox controls. Only or more options can be | |
| 21 | * select | |
| 22 | * | |
| 23 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 24 | */ | |
| 25 | public class CheckboxGroupControl extends MultiValueControlBase { | |
| 26 | private static final long serialVersionUID = 8800478332086081970L; | |
| 27 | ||
| 28 | private String delimiter; | |
| 29 | ||
| 30 | public CheckboxGroupControl() { | |
| 31 | 0 | super(); |
| 32 | 0 | } |
| 33 | ||
| 34 | /** | |
| 35 | * Delimiter string to be rendered between the checkbox group options, | |
| 36 | * defaults to none | |
| 37 | * | |
| 38 | * @return String delimiter string | |
| 39 | */ | |
| 40 | public String getDelimiter() { | |
| 41 | 0 | return this.delimiter; |
| 42 | } | |
| 43 | ||
| 44 | /** | |
| 45 | * Setter for the string delimiter for each checkbox option | |
| 46 | * | |
| 47 | * @param delimiter | |
| 48 | */ | |
| 49 | public void setDelimiter(String delimiter) { | |
| 50 | 0 | this.delimiter = delimiter; |
| 51 | 0 | } |
| 52 | ||
| 53 | } |