| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ControlDefinition |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2005-2007 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
| 5 | * 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/ecl2.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, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | package org.kuali.rice.kns.datadictionary.control; | |
| 17 | ||
| 18 | import org.kuali.rice.kns.datadictionary.DataDictionaryDefinition; | |
| 19 | ||
| 20 | /** | |
| 21 | * ControlDefinition | |
| 22 | * | |
| 23 | * | |
| 24 | */ | |
| 25 | public interface ControlDefinition extends DataDictionaryDefinition { | |
| 26 | ||
| 27 | public boolean isDatePicker(); | |
| 28 | public void setDatePicker(boolean datePicker); | |
| 29 | ||
| 30 | public boolean isExpandedTextArea(); | |
| 31 | public void setExpandedTextArea(boolean eTextArea); | |
| 32 | ||
| 33 | /** | |
| 34 | * @return true if this ControlDefinition instance represents an HTML checkbox control | |
| 35 | */ | |
| 36 | public boolean isCheckbox(); | |
| 37 | ||
| 38 | /** | |
| 39 | * @return true if this ControlDefinition instance represents an HTML hidden control | |
| 40 | */ | |
| 41 | public boolean isHidden(); | |
| 42 | ||
| 43 | /** | |
| 44 | * @return true if this ControlDefinition instance represents an HTML radiobutton control | |
| 45 | */ | |
| 46 | public boolean isRadio(); | |
| 47 | ||
| 48 | /** | |
| 49 | * @return true if this ControlDefinition instance represents an HTML select control | |
| 50 | */ | |
| 51 | public boolean isSelect(); | |
| 52 | ||
| 53 | /** | |
| 54 | * @return true if this ControlDefinition instance represents an HTML select control | |
| 55 | */ | |
| 56 | public boolean isMultiselect(); | |
| 57 | ||
| 58 | /** | |
| 59 | * @return true if this ControlDefinition instance represents an HTML text control | |
| 60 | */ | |
| 61 | public boolean isText(); | |
| 62 | ||
| 63 | /** | |
| 64 | * @return true if this ControlDefinition instance represents an HTML textarea control | |
| 65 | */ | |
| 66 | public boolean isTextarea(); | |
| 67 | ||
| 68 | /** | |
| 69 | * | |
| 70 | * @return any Script associated with this control | |
| 71 | */ | |
| 72 | public String getScript(); | |
| 73 | ||
| 74 | /** | |
| 75 | * @return true if the ControlDefinition instance represents a currency control | |
| 76 | */ | |
| 77 | public boolean isCurrency(); | |
| 78 | ||
| 79 | /** | |
| 80 | * | |
| 81 | * @return true if the ControlDefinition instance represents a kualiUser control | |
| 82 | */ | |
| 83 | public boolean isKualiUser(); | |
| 84 | ||
| 85 | /** | |
| 86 | * @return true if the ControlDefinition instance represents a workflow workgroup control | |
| 87 | */ | |
| 88 | public boolean isWorkflowWorkgroup(); | |
| 89 | ||
| 90 | /** | |
| 91 | * @return true if this ControlDefinition instance represents an HTML File control | |
| 92 | */ | |
| 93 | public boolean isFile(); | |
| 94 | ||
| 95 | /** | |
| 96 | * @return true if the ControlDefinition instance represents a lookupHidden control | |
| 97 | */ | |
| 98 | public boolean isLookupHidden(); | |
| 99 | ||
| 100 | /** | |
| 101 | * @return true if the ControlDefinition instance represents a lookupReadonly control | |
| 102 | */ | |
| 103 | public boolean isLookupReadonly(); | |
| 104 | ||
| 105 | /** | |
| 106 | * @return true if the ControlDefinition instance represents a button control | |
| 107 | */ | |
| 108 | public boolean isButton(); | |
| 109 | ||
| 110 | /** | |
| 111 | * @return true if the ControlDefinition instance represents a link control | |
| 112 | */ | |
| 113 | public boolean isLink(); | |
| 114 | ||
| 115 | /** | |
| 116 | * @return true if the ControlDefinition instance represents a ranged (will render from and to fields) date control | |
| 117 | */ | |
| 118 | public boolean isRanged(); | |
| 119 | ||
| 120 | /** | |
| 121 | * Sets the Class used to retrieve the complete range of values for radiobutton and select controls. | |
| 122 | * | |
| 123 | * @param valuesFinderClass | |
| 124 | */ | |
| 125 | public void setValuesFinderClass(String valuesFinderClass); | |
| 126 | ||
| 127 | /** | |
| 128 | * Sets the BO Class used for the KeyLabelBusinessObjectValueFinder to retrieve the complete range of values for radiobutton and select controls. | |
| 129 | * | |
| 130 | * @param businessObjectClass | |
| 131 | */ | |
| 132 | public void setBusinessObjectClass(String businessObjectClass); | |
| 133 | ||
| 134 | ||
| 135 | /** | |
| 136 | * Sets the keyAttribute used for building radiobutton and select controls. | |
| 137 | * | |
| 138 | * @param keyAttribute | |
| 139 | */ | |
| 140 | public void setKeyAttribute(String keyAttribute); | |
| 141 | ||
| 142 | /** | |
| 143 | * Sets the labelAttribute used for building radiobutton and select controls. | |
| 144 | * | |
| 145 | * @param labelAttribute | |
| 146 | */ | |
| 147 | public void setLabelAttribute(String labelAttribute); | |
| 148 | ||
| 149 | public void setIncludeBlankRow(Boolean includeBlankRow); | |
| 150 | ||
| 151 | /** | |
| 152 | * @param includeKeyInLabel whether to include the key with the label to be displayed or not. | |
| 153 | */ | |
| 154 | public void setIncludeKeyInLabel(Boolean includeKeyInLabel); | |
| 155 | ||
| 156 | /** | |
| 157 | * Sets the Script | |
| 158 | * | |
| 159 | * @param script | |
| 160 | */ | |
| 161 | public void setScript(String script); | |
| 162 | ||
| 163 | /** | |
| 164 | * @return Class used to retrieve the complete range of values for radiobutton and select controls. | |
| 165 | */ | |
| 166 | public String getValuesFinderClass(); | |
| 167 | ||
| 168 | /** | |
| 169 | * @return BO Class used for the KeyLabelBusinessObjectValueFinder to retrieve the complete range of values for radiobutton and select controls. | |
| 170 | */ | |
| 171 | public String getBusinessObjectClass(); | |
| 172 | ||
| 173 | /** | |
| 174 | * @return the keyAttribute used for radiobutton and select controls. | |
| 175 | */ | |
| 176 | public String getKeyAttribute(); | |
| 177 | ||
| 178 | /** | |
| 179 | * @return the labelAttribute used for radiobutton and select controls. | |
| 180 | */ | |
| 181 | public String getLabelAttribute(); | |
| 182 | ||
| 183 | public Boolean getIncludeBlankRow(); | |
| 184 | ||
| 185 | /** | |
| 186 | * Gets the flag that indicates if the labels the ValuesFinder class returns should include the key. | |
| 187 | * | |
| 188 | * @param includeKeyInLabel | |
| 189 | */ | |
| 190 | public Boolean getIncludeKeyInLabel(); | |
| 191 | ||
| 192 | /** | |
| 193 | * Sets the size parameter for text controls. | |
| 194 | * | |
| 195 | * @param size | |
| 196 | */ | |
| 197 | public void setSize(Integer size); | |
| 198 | ||
| 199 | /** | |
| 200 | * @return size parameters for text controls | |
| 201 | */ | |
| 202 | public Integer getSize(); | |
| 203 | ||
| 204 | /** | |
| 205 | * Sets the rows parameter for textarea controls. | |
| 206 | * | |
| 207 | * @param rows | |
| 208 | */ | |
| 209 | public void setRows(Integer rows); | |
| 210 | ||
| 211 | /** | |
| 212 | * @return rows parameters for textarea controls | |
| 213 | */ | |
| 214 | public Integer getRows(); | |
| 215 | ||
| 216 | /** | |
| 217 | * Sets the cols parameter for textarea controls. | |
| 218 | * | |
| 219 | * @param cols | |
| 220 | */ | |
| 221 | public void setCols(Integer cols); | |
| 222 | ||
| 223 | /** | |
| 224 | * @return cols parameter for textarea controls. | |
| 225 | */ | |
| 226 | public Integer getCols(); | |
| 227 | ||
| 228 | } |