Class UifDefaultingServiceImpl

java.lang.Object
org.kuali.rice.krad.uif.service.impl.UifDefaultingServiceImpl
All Implemented Interfaces:
UifDefaultingService

public class UifDefaultingServiceImpl extends Object implements UifDefaultingService
  • Field Details

  • Constructor Details

    • UifDefaultingServiceImpl

      public UifDefaultingServiceImpl()
  • Method Details

    • deriveHumanFriendlyNameFromPropertyName

      public String deriveHumanFriendlyNameFromPropertyName(String camelCasedName)
      Description copied from interface: UifDefaultingService
      Helper method to allow reasonable names to be defaulted from class or property names. This method assumes that the passed in name is camel-cased and will create the name by adding spaces before each capital letter or digit as well as capitalizing each word. In the case that the name given is a nested property, only the portion of the name after the last period will be used.
      Specified by:
      deriveHumanFriendlyNameFromPropertyName in interface UifDefaultingService
      Parameters:
      camelCasedName - property name, in camel case
      Returns:
      human friendly property name
    • getControlInstance

      protected Control getControlInstance(AttributeDefinition attrDef, org.kuali.rice.krad.data.metadata.DataObjectAttribute dataObjectAttribute)
    • customizeControlInstance

      protected void customizeControlInstance(Control c, AttributeDefinition attrDef, org.kuali.rice.krad.data.metadata.DataObjectAttribute dataObjectAttribute)
    • deriveControlAttributeFromMetadata

      public Control deriveControlAttributeFromMetadata(AttributeDefinition attrDef)
      Description copied from interface: UifDefaultingService
      Derives a UIF control from the information available on the passed in Data Dictionary AttributeDefinition. Attempts to build reasonable defaults based on the data type and other metadata which has been included. If no special information is found in the metadata, it will return a standard/default text control.
      Specified by:
      deriveControlAttributeFromMetadata in interface UifDefaultingService
      Parameters:
      attrDef - attribute definition
      Returns:
      derived control
    • deriveValidCharactersConstraint

      public ValidCharactersConstraint deriveValidCharactersConstraint(AttributeDefinition attrDef)
      Description copied from interface: UifDefaultingService
      Derives a default valid characters constraint definition given the metadata in the AttributeDefinition
      Specified by:
      deriveValidCharactersConstraint in interface UifDefaultingService
      Parameters:
      attrDef - attribute definition
      Returns:
      A ValidCharactersConstraint object or null if no information in the AttributeDefinition suggests an appropriate default.
    • setDataDictionaryService

      public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
    • setDataObjectService

      public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)