001    /**
002     * Copyright 2005-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.rice.krad.datadictionary.control;
017    
018    import org.kuali.rice.krad.datadictionary.DataDictionaryDefinition;
019    
020    /**
021     * ControlDefinition
022     */
023    @Deprecated
024    public interface ControlDefinition extends DataDictionaryDefinition {
025    
026        public boolean isDatePicker();
027    
028        public void setDatePicker(boolean datePicker);
029    
030        public boolean isExpandedTextArea();
031    
032        public void setExpandedTextArea(boolean eTextArea);
033    
034        /**
035         * @return true if this ControlDefinition instance represents an HTML checkbox control
036         */
037        public boolean isCheckbox();
038    
039        /**
040         * @return true if this ControlDefinition instance represents an HTML hidden control
041         */
042        public boolean isHidden();
043    
044        /**
045         * @return true if this ControlDefinition instance represents an HTML radiobutton control
046         */
047        public boolean isRadio();
048    
049        /**
050         * @return true if this ControlDefinition instance represents an HTML select control
051         */
052        public boolean isSelect();
053    
054        /**
055         * @return true if this ControlDefinition instance represents an HTML select control
056         */
057        public boolean isMultiselect();
058    
059        /**
060         * @return true if this ControlDefinition instance represents an HTML text control
061         */
062        public boolean isText();
063    
064        /**
065         * @return true if this ControlDefinition instance represents an HTML textarea control
066         */
067        public boolean isTextarea();
068    
069        /**
070         * @return any Script associated with this control
071         */
072        public String getScript();
073    
074        /**
075         * @return true if the ControlDefinition instance represents a currency control
076         */
077        public boolean isCurrency();
078    
079        /**
080         * @return true if the ControlDefinition instance represents a kualiUser control
081         */
082        public boolean isKualiUser();
083    
084        /**
085         * @return true if the ControlDefinition instance represents a workflow workgroup control
086         */
087        public boolean isWorkflowWorkgroup();
088    
089        /**
090         * @return true if this ControlDefinition instance represents an HTML File control
091         */
092        public boolean isFile();
093    
094        /**
095         * @return true if the ControlDefinition instance represents a lookupHidden control
096         */
097        public boolean isLookupHidden();
098    
099        /**
100         * @return true if the ControlDefinition instance represents a lookupReadonly control
101         */
102        public boolean isLookupReadonly();
103    
104        /**
105         * @return true if the ControlDefinition instance represents a button control
106         */
107        public boolean isButton();
108    
109        /**
110         * @return true if the ControlDefinition instance represents a link control
111         */
112        public boolean isLink();
113    
114        /**
115         * @return true if the ControlDefinition instance represents a ranged (will render from and to fields) date control
116         */
117        public boolean isRanged();
118    
119        /**
120         * Sets the Class used to retrieve the complete range of values for radiobutton and select controls.
121         *
122         * @param valuesFinderClass
123         */
124        public void setValuesFinderClass(String valuesFinderClass);
125    
126        /**
127         * Sets the BO Class used for the KeyLabelBusinessObjectValueFinder to retrieve the complete range of values for
128         * radiobutton and select controls.
129         *
130         * @param businessObjectClass
131         */
132        public void setBusinessObjectClass(String businessObjectClass);
133    
134        /**
135         * Sets the keyAttribute used for building radiobutton and select controls.
136         *
137         * @param keyAttribute
138         */
139        public void setKeyAttribute(String keyAttribute);
140    
141        /**
142         * Sets the labelAttribute used for building radiobutton and select controls.
143         *
144         * @param labelAttribute
145         */
146        public void setLabelAttribute(String labelAttribute);
147    
148        public void setIncludeBlankRow(Boolean includeBlankRow);
149    
150        /**
151         * @param includeKeyInLabel whether to include the key with the label to be displayed or not.
152         */
153        public void setIncludeKeyInLabel(Boolean includeKeyInLabel);
154    
155        /**
156         * Sets the Script
157         *
158         * @param script
159         */
160        public void setScript(String script);
161    
162        /**
163         * @return Class used to retrieve the complete range of values for radiobutton and select controls.
164         */
165        public String getValuesFinderClass();
166    
167        /**
168         * @return BO Class used for the KeyLabelBusinessObjectValueFinder to retrieve the complete range of values for
169         *         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    }