Class UifDefaultingServiceImpl
java.lang.Object
org.kuali.rice.krad.uif.service.impl.UifDefaultingServiceImpl
- All Implemented Interfaces:
UifDefaultingService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected DataDictionaryServiceprotected org.kuali.rice.krad.data.DataObjectServiceprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcustomizeControlInstance(Control c, AttributeDefinition attrDef, org.kuali.rice.krad.data.metadata.DataObjectAttribute dataObjectAttribute) Derives a UIF control from the information available on the passed in Data DictionaryAttributeDefinition.deriveHumanFriendlyNameFromPropertyName(String camelCasedName) Helper method to allow reasonable names to be defaulted from class or property names.Derives a default valid characters constraint definition given the metadata in theAttributeDefinitionprotected ControlgetControlInstance(AttributeDefinition attrDef, org.kuali.rice.krad.data.metadata.DataObjectAttribute dataObjectAttribute) voidsetDataDictionaryService(DataDictionaryService dataDictionaryService) voidsetDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
-
Field Details
-
dataDictionaryService
-
dataObjectService
protected org.kuali.rice.krad.data.DataObjectService dataObjectService -
ANY_CHARACTER_PATTERN_CONSTRAINT
- See Also:
-
DATE_PATTERN_CONSTRAINT
- See Also:
-
FLOATING_POINT_PATTERN_CONSTRAINT
- See Also:
-
BIG_DECIMAL_PATTERN_CONSTRAINT
- See Also:
-
TIMESTAMP_PATTERN_CONSTRAINT
- See Also:
-
CURRENCY_PATTERN_CONSTRAINT
- See Also:
-
-
Constructor Details
-
UifDefaultingServiceImpl
public UifDefaultingServiceImpl()
-
-
Method Details
-
deriveHumanFriendlyNameFromPropertyName
Description copied from interface:UifDefaultingServiceHelper 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:
deriveHumanFriendlyNameFromPropertyNamein interfaceUifDefaultingService- 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
Description copied from interface:UifDefaultingServiceDerives a UIF control from the information available on the passed in Data DictionaryAttributeDefinition. 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:
deriveControlAttributeFromMetadatain interfaceUifDefaultingService- Parameters:
attrDef- attribute definition- Returns:
- derived control
-
deriveValidCharactersConstraint
Description copied from interface:UifDefaultingServiceDerives a default valid characters constraint definition given the metadata in theAttributeDefinition- Specified by:
deriveValidCharactersConstraintin interfaceUifDefaultingService- Parameters:
attrDef- attribute definition- Returns:
- A
ValidCharactersConstraintobject or null if no information in theAttributeDefinitionsuggests an appropriate default.
-
setDataDictionaryService
-
setDataObjectService
public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
-