org.kuali.rice.kns.datadictionary.control
Class ControlDefinitionBase

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.DictionaryBeanBase
      extended by org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
          extended by org.kuali.rice.kns.datadictionary.control.ControlDefinitionBase
All Implemented Interfaces:
Serializable, ControlDefinition, DataDictionaryDefinition, DictionaryBean, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
ButtonControlDefinition, CheckboxControlDefinition, CurrencyControlDefinition, FileControlDefinition, HiddenControlDefinition, KualiUserControlDefinition, LinkControlDefinition, LookupHiddenControlDefinition, LookupReadonlyControlDefinition, MultivalueControlDefinitionBase, TextareaControlDefinition, TextControlDefinition, WorkflowWorkgroupControlDefinition

Deprecated.

@Deprecated
public abstract class ControlDefinitionBase
extends DataDictionaryDefinitionBase
implements ControlDefinition

A single HTML control definition in the DataDictionary, which contains information relating to the HTML control used to realize a specific attribute. All types of controls are represented by an instance of this class; you have to call one of the is* methods to figure out which of the other accessors should return useful values.

See Also:
Serialized Form

Field Summary
protected  String businessObjectClass
          Deprecated.  
protected  Integer cols
          Deprecated.  
protected  boolean datePicker
          Deprecated.  
protected  boolean expandedTextArea
          Deprecated.  
protected  Boolean includeBlankRow
          Deprecated.  
protected  Boolean includeKeyInLabel
          Deprecated.  
protected  String keyAttribute
          Deprecated.  
protected  String labelAttribute
          Deprecated.  
protected  boolean ranged
          Deprecated.  
protected  Integer rows
          Deprecated.  
protected  String script
          Deprecated.  
protected  Integer size
          Deprecated.  
protected  String valuesFinderClass
          Deprecated.  
 
Fields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
id
 
Constructor Summary
ControlDefinitionBase()
          Deprecated.  
 
Method Summary
 void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass)
          Deprecated. Directly validate simple fields.
 boolean equals(Object object)
          Deprecated.  
 String getBusinessObjectClass()
          Deprecated.  
 Integer getCols()
          Deprecated.  
 Boolean getIncludeBlankRow()
          Deprecated.  
 Boolean getIncludeKeyInLabel()
          Deprecated. Gets the flag that indicates if the labels the ValuesFinder class returns should include the key.
 String getKeyAttribute()
          Deprecated.  
 String getLabelAttribute()
          Deprecated.  
 Integer getRows()
          Deprecated.  
 String getScript()
          Deprecated.  
 Integer getSize()
          Deprecated.  
 String getValuesFinderClass()
          Deprecated.  
 boolean hasScript()
          Deprecated.  
 boolean isButton()
          Deprecated.  
 boolean isCheckbox()
          Deprecated.  
 boolean isCurrency()
          Deprecated.  
 boolean isDatePicker()
          Deprecated.  
 boolean isExpandedTextArea()
          Deprecated.  
 boolean isFile()
          Deprecated.  
 boolean isHidden()
          Deprecated.  
 boolean isKualiUser()
          Deprecated.  
 boolean isLink()
          Deprecated.  
 boolean isLookupHidden()
          Deprecated.  
 boolean isLookupReadonly()
          Deprecated.  
 boolean isMultiselect()
          Deprecated.  
 boolean isRadio()
          Deprecated.  
 boolean isRanged()
          Deprecated.  
 boolean isSelect()
          Deprecated.  
 boolean isText()
          Deprecated.  
 boolean isTextarea()
          Deprecated.  
 boolean isWorkflowWorkgroup()
          Deprecated.  
 void setBusinessObjectClass(String businessObjectClass)
          Deprecated. Used by a PersistableBusinessObjectValuesFinder to automatically query and display a list of business objects as part of a select list or set of radio buttons.
 void setCols(Integer cols)
          Deprecated. Number of columns to display on a text-area widget.
 void setDatePicker(boolean datePicker)
          Deprecated. Whether this control should have a date picker button next to the field.
 void setExpandedTextArea(boolean eTextArea)
          Deprecated. Whether this control should have a expanded text area button next to the field.
 void setIncludeBlankRow(Boolean includeBlankRow)
          Deprecated.  
 void setIncludeKeyInLabel(Boolean includeKeyInLabel)
          Deprecated. Whether to include the key in the label for select lists and radio buttons.
 void setKeyAttribute(String keyAttribute)
          Deprecated. Attribute of the given dataObjectClass to use as the value of a select list or set of radio buttons.
 void setLabelAttribute(String labelAttribute)
          Deprecated. Attribute of the given dataObjectClass to use as the displayed label on a select list or set of radio buttons.
 void setRanged(boolean ranged)
          Deprecated. Sets the control as a ranged (from and to) date field if true, or a single date field if false
 void setRows(Integer rows)
          Deprecated. Number of rows to display on a text-area widget.
 void setScript(String script)
          Deprecated. JavaScript script to run when a select control's value is changed.
 void setSize(Integer size)
          Deprecated. Size of a text control.
 void setValuesFinderClass(String valuesFinderClass)
          Deprecated. Sets the Class used to retrieve the complete range of values for radiobutton and select controls.
 
Methods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
afterPropertiesSet, getId, setId
 
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.datadictionary.DataDictionaryDefinition
getId
 
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
getComponentCode, getNamespaceCode
 

Field Detail

datePicker

protected boolean datePicker
Deprecated. 

expandedTextArea

protected boolean expandedTextArea
Deprecated. 

script

protected String script
Deprecated. 

valuesFinderClass

protected String valuesFinderClass
Deprecated. 

businessObjectClass

protected String businessObjectClass
Deprecated. 

keyAttribute

protected String keyAttribute
Deprecated. 

labelAttribute

protected String labelAttribute
Deprecated. 

includeBlankRow

protected Boolean includeBlankRow
Deprecated. 

includeKeyInLabel

protected Boolean includeKeyInLabel
Deprecated. 

size

protected Integer size
Deprecated. 

rows

protected Integer rows
Deprecated. 

cols

protected Integer cols
Deprecated. 

ranged

protected boolean ranged
Deprecated. 
Constructor Detail

ControlDefinitionBase

public ControlDefinitionBase()
Deprecated. 
Method Detail

isDatePicker

public boolean isDatePicker()
Deprecated. 
Specified by:
isDatePicker in interface ControlDefinition

setDatePicker

public void setDatePicker(boolean datePicker)
Deprecated. 
Whether this control should have a date picker button next to the field. Valid for text fields.

Specified by:
setDatePicker in interface ControlDefinition
See Also:
ControlDefinition.setDatePicker(boolean)

isExpandedTextArea

public boolean isExpandedTextArea()
Deprecated. 
Specified by:
isExpandedTextArea in interface ControlDefinition

setExpandedTextArea

public void setExpandedTextArea(boolean eTextArea)
Deprecated. 
Whether this control should have a expanded text area button next to the field. Valid for textarea fields.

Specified by:
setExpandedTextArea in interface ControlDefinition
See Also:
ControlDefinition.setExpandedTextArea(boolean)

isCheckbox

public boolean isCheckbox()
Deprecated. 
Specified by:
isCheckbox in interface ControlDefinition
Returns:
true if this ControlDefinition instance represents an HTML checkbox control
See Also:
ControlDefinition.isCheckbox()

isHidden

public boolean isHidden()
Deprecated. 
Specified by:
isHidden in interface ControlDefinition
Returns:
true if this ControlDefinition instance represents an HTML hidden control
See Also:
ControlDefinition.isHidden()

isRadio

public boolean isRadio()
Deprecated. 
Specified by:
isRadio in interface ControlDefinition
Returns:
true if this ControlDefinition instance represents an HTML radiobutton control
See Also:
ControlDefinition.isRadio()

isSelect

public boolean isSelect()
Deprecated. 
Specified by:
isSelect in interface ControlDefinition
Returns:
true if this ControlDefinition instance represents an HTML select control
See Also:
ControlDefinition.isSelect()

isMultiselect

public boolean isMultiselect()
Deprecated. 
Specified by:
isMultiselect in interface ControlDefinition
Returns:
true if this ControlDefinition instance represents an HTML select control
See Also:
ControlDefinition.isSelect()

isText

public boolean isText()
Deprecated. 
Specified by:
isText in interface ControlDefinition
Returns:
true if this ControlDefinition instance represents an HTML text control
See Also:
ControlDefinition.isText()

isTextarea

public boolean isTextarea()
Deprecated. 
Specified by:
isTextarea in interface ControlDefinition
Returns:
true if this ControlDefinition instance represents an HTML textarea control
See Also:
ControlDefinition.isTextarea()

isCurrency

public boolean isCurrency()
Deprecated. 
Specified by:
isCurrency in interface ControlDefinition
Returns:
true if the ControlDefinition instance represents a currency control
See Also:
ControlDefinition.isCurrency()

isKualiUser

public boolean isKualiUser()
Deprecated. 
Specified by:
isKualiUser in interface ControlDefinition
Returns:
true if the ControlDefinition instance represents a kualiUser control
See Also:
ControlDefinition.isKualiUser()

isWorkflowWorkgroup

public boolean isWorkflowWorkgroup()
Deprecated. 
Specified by:
isWorkflowWorkgroup in interface ControlDefinition
Returns:
true if the ControlDefinition instance represents a workflow workgroup control
See Also:
org.kuali.rice.krad.datadictionary.control.ControlDefinition#isWorkgroup()

isFile

public boolean isFile()
Deprecated. 
Specified by:
isFile in interface ControlDefinition
Returns:
true if this ControlDefinition instance represents an HTML File control
See Also:
ControlDefinition.isFile()

isLookupHidden

public boolean isLookupHidden()
Deprecated. 
Specified by:
isLookupHidden in interface ControlDefinition
Returns:
true if the ControlDefinition instance represents a lookupHidden control
See Also:
ControlDefinition.isLookupHidden()

isLookupReadonly

public boolean isLookupReadonly()
Deprecated. 
Specified by:
isLookupReadonly in interface ControlDefinition
Returns:
true if the ControlDefinition instance represents a lookupReadonly control
See Also:
ControlDefinition.isLookupReadonly()

isButton

public boolean isButton()
Deprecated. 
Specified by:
isButton in interface ControlDefinition
Returns:
true if the ControlDefinition instance represents a button control
See Also:
ControlDefinition.isButton()

isLink

public boolean isLink()
Deprecated. 
Specified by:
isLink in interface ControlDefinition
Returns:
true if the ControlDefinition instance represents a link control
See Also:
ControlDefinition.isLink()

setValuesFinderClass

public void setValuesFinderClass(String valuesFinderClass)
Deprecated. 
Description copied from interface: ControlDefinition
Sets the Class used to retrieve the complete range of values for radiobutton and select controls.

Specified by:
setValuesFinderClass in interface ControlDefinition
See Also:
org.kuali.rice.krad.datadictionary.control.ControlDefinition#setKeyValuesFinder(java.lang.String)

getBusinessObjectClass

public String getBusinessObjectClass()
Deprecated. 
Specified by:
getBusinessObjectClass in interface ControlDefinition
Returns:
the dataObjectClass

setBusinessObjectClass

public void setBusinessObjectClass(String businessObjectClass)
Deprecated. 
Used by a PersistableBusinessObjectValuesFinder to automatically query and display a list of business objects as part of a select list or set of radio buttons. The keyAttribute, labelAttribute, and includeKeyInLabel are used with this property.

Specified by:
setBusinessObjectClass in interface ControlDefinition
Parameters:
businessObjectClass - the dataObjectClass to set

getIncludeBlankRow

public Boolean getIncludeBlankRow()
Deprecated. 
Specified by:
getIncludeBlankRow in interface ControlDefinition
Returns:
the includeBlankRow

setIncludeBlankRow

public void setIncludeBlankRow(Boolean includeBlankRow)
Deprecated. 
Specified by:
setIncludeBlankRow in interface ControlDefinition

getIncludeKeyInLabel

public Boolean getIncludeKeyInLabel()
Deprecated. 
Description copied from interface: ControlDefinition
Gets the flag that indicates if the labels the ValuesFinder class returns should include the key.

Specified by:
getIncludeKeyInLabel in interface ControlDefinition
Returns:
the includeKeyInLabel

setIncludeKeyInLabel

public void setIncludeKeyInLabel(Boolean includeKeyInLabel)
Deprecated. 
Whether to include the key in the label for select lists and radio buttons.

Specified by:
setIncludeKeyInLabel in interface ControlDefinition
Parameters:
includeKeyInLabel - whether to include the key with the label to be displayed or not.

getKeyAttribute

public String getKeyAttribute()
Deprecated. 
Specified by:
getKeyAttribute in interface ControlDefinition
Returns:
the keyAttribute

setKeyAttribute

public void setKeyAttribute(String keyAttribute)
Deprecated. 
Attribute of the given dataObjectClass to use as the value of a select list or set of radio buttons.

Specified by:
setKeyAttribute in interface ControlDefinition

getLabelAttribute

public String getLabelAttribute()
Deprecated. 
Specified by:
getLabelAttribute in interface ControlDefinition
Returns:
the labelAttribute

setLabelAttribute

public void setLabelAttribute(String labelAttribute)
Deprecated. 
Attribute of the given dataObjectClass to use as the displayed label on a select list or set of radio buttons.

Specified by:
setLabelAttribute in interface ControlDefinition

getValuesFinderClass

public String getValuesFinderClass()
Deprecated. 
Specified by:
getValuesFinderClass in interface ControlDefinition
Returns:
Class used to retrieve the complete range of values for radiobutton and select controls.
See Also:
org.kuali.rice.krad.datadictionary.control.ControlDefinition#getKeyValuesFinder()

setSize

public void setSize(Integer size)
Deprecated. 
Size of a text control.

Specified by:
setSize in interface ControlDefinition
See Also:
org.kuali.rice.krad.datadictionary.control.ControlDefinition#setSize(int)

getSize

public Integer getSize()
Deprecated. 
Specified by:
getSize in interface ControlDefinition
Returns:
size parameters for text controls
See Also:
ControlDefinition.getSize()

hasScript

public boolean hasScript()
Deprecated. 
See Also:
org.kuali.rice.krad.datadictionary.control.ControlDefinition#hasScript()

setRows

public void setRows(Integer rows)
Deprecated. 
Number of rows to display on a text-area widget.

Specified by:
setRows in interface ControlDefinition
See Also:
org.kuali.rice.krad.datadictionary.control.ControlDefinition#setRows(int)

getRows

public Integer getRows()
Deprecated. 
Specified by:
getRows in interface ControlDefinition
Returns:
rows parameters for textarea controls
See Also:
ControlDefinition.getRows()

setCols

public void setCols(Integer cols)
Deprecated. 
Number of columns to display on a text-area widget.

Specified by:
setCols in interface ControlDefinition
See Also:
org.kuali.rice.krad.datadictionary.control.ControlDefinition#setCols(int)

getCols

public Integer getCols()
Deprecated. 
Specified by:
getCols in interface ControlDefinition
Returns:
cols parameter for textarea controls.
See Also:
ControlDefinition.getCols()

completeValidation

public void completeValidation(Class rootBusinessObjectClass,
                               Class otherBusinessObjectClass)
Deprecated. 
Directly validate simple fields.

Specified by:
completeValidation in interface DataDictionaryDefinition
Parameters:
rootBusinessObjectClass - Class of the BusinessObjectEntry which ultimately contains this definition
otherBusinessObjectClass - other stuff required to complete validation
See Also:
org.kuali.rice.krad.datadictionary.DataDictionaryDefinition#completeValidation(java.lang.Class, java.lang.Object)

getScript

public String getScript()
Deprecated. 
Specified by:
getScript in interface ControlDefinition
Returns:
any Script associated with this control
See Also:
ControlDefinition.getScript()

setScript

public void setScript(String script)
Deprecated. 
JavaScript script to run when a select control's value is changed.

Specified by:
setScript in interface ControlDefinition
See Also:
org.kuali.rice.krad.datadictionary.control.ControlDefinition#setScript()

isRanged

public boolean isRanged()
Deprecated. 
Specified by:
isRanged in interface ControlDefinition
Returns:
true if the ControlDefinition instance represents a ranged (will render from and to fields) date control
See Also:
ControlDefinition.isRanged()

setRanged

public void setRanged(boolean ranged)
Deprecated. 
Sets the control as a ranged (from and to) date field if true, or a single date field if false

Parameters:
ranged - boolean true for a ranged control, false for a single date field

equals

public boolean equals(Object object)
Deprecated. 
Overrides:
equals in class Object
See Also:
Object.equals(Object)


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.