Class UserControl

All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, UifDictionaryBean, Component, Ordered, ScriptEventSupport, Control, FilterableLookupCriteriaControl, SizedControl, TextControl, ContentElement, LifecycleElement, org.springframework.core.Ordered

public class UserControl extends TextControlBase implements FilterableLookupCriteriaControl
Represents a user control, which is a special control to handle the input of a Person.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • UserControl

      public UserControl()
  • Method Details

    • performApplyModel

      public void performApplyModel(Object model, LifecycleElement parent)
      Sets the disabledExpression, if any, evaluates it and sets the disabled property
      Specified by:
      performApplyModel in interface LifecycleElement
      Overrides:
      performApplyModel in class ControlBase
      Parameters:
      model - top level object containing the data (could be the form or a top level business object, dto)
      parent -
    • filterSearchCriteria

      public Map<String,String> filterSearchCriteria(String propertyName, Map<String,String> searchCriteria, FilterableLookupCriteriaControlPostData postData)
      Invoked to perform filtering of the search criteria.
      Specified by:
      filterSearchCriteria in interface FilterableLookupCriteriaControl
      Parameters:
      propertyName - the propertyName of the current component
      searchCriteria - the search criteria to be filtered
      postData - the post data to consider during the search
      Returns:
      filtered search criteria
    • buildUserQuickfinder

      protected void buildUserQuickfinder(Object model, InputField field)
      Configures the field's quickfinder for a user lookup
      Parameters:
      model - object containing the view's data
      field - field instance the quickfinder should be associated with
    • getPrincipalIdPropertyName

      public String getPrincipalIdPropertyName()
      The name of the property on the parent object that holds the principal id
      Returns:
      principalIdPropertyName
    • setPrincipalIdPropertyName

      public void setPrincipalIdPropertyName(String principalIdPropertyName)
      Setter for the name of the property on the parent object that holds the principal id
      Parameters:
      principalIdPropertyName -
    • getPersonNamePropertyName

      public String getPersonNamePropertyName()
      The name of the property on the parent object that holds the person name
      Returns:
      personNamePropertyName
    • setPersonNamePropertyName

      public void setPersonNamePropertyName(String personNamePropertyName)
      Setter for the name of the property on the parent object that holds the person name
      Parameters:
      personNamePropertyName -
    • getPersonObjectPropertyName

      public String getPersonObjectPropertyName()
      The name of the property on the parent object that holds the person object
      Returns:
      personObjectPropertyName
    • setPersonObjectPropertyName

      public void setPersonObjectPropertyName(String personObjectPropertyName)
      Setter for the name of the property on the parent object that holds the person object
      Parameters:
      personObjectPropertyName -
    • getPostData

      public UserControl.UserControlPostData getPostData(String propertyName)
      Returns the post data for the filterable lookup criteria control using the property name as a key.
      Specified by:
      getPostData in interface FilterableLookupCriteriaControl
      Parameters:
      propertyName - the property name for the control
      Returns:
      the post data for the filterable lookup criteria control