|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UifDefaultingService
This service helps build/define default controls for the UIF based on the associated data-level metadata. It will use the information provided by the krad-data module to attempt to build sensible default controls based on the data type, maximum length, and other attributes available in the ORM-level metadata or provided as annotations on the data object classes.
Method Summary | |
---|---|
Control |
deriveControlAttributeFromMetadata(AttributeDefinition attrDef)
Derives a UIF control from the information available on the passed in Data Dictionary AttributeDefinition . |
String |
deriveHumanFriendlyNameFromPropertyName(String camelCasedName)
Helper method to allow reasonable names to be defaulted from class or property names. |
InquiryView |
deriveInquiryViewFromMetadata(DataObjectEntry dataObjectEntry)
Build an instance of an InquiryView for the given data object entry. |
LookupView |
deriveLookupViewFromMetadata(DataObjectEntry dataObjectEntry)
Build an instance of an LookupView for the given data object entry. |
ValidCharactersConstraint |
deriveValidCharactersConstraint(AttributeDefinition attrDef)
Derives a default valid characters constraint definition given the metadata in the AttributeDefinition |
Method Detail |
---|
Control deriveControlAttributeFromMetadata(AttributeDefinition attrDef)
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.
attrDef
- attribute definition
String deriveHumanFriendlyNameFromPropertyName(String camelCasedName)
camelCasedName
- property name, in camel case
ValidCharactersConstraint deriveValidCharactersConstraint(AttributeDefinition attrDef)
AttributeDefinition
attrDef
- attribute definition
ValidCharactersConstraint
object or null if no information in the AttributeDefinition
suggests an appropriate default.InquiryView deriveInquiryViewFromMetadata(DataObjectEntry dataObjectEntry)
InquiryView
for the given data object entry.
Information will be pulled from the DataObjectEntry
and the embedded
DataObjectMetadata
and DataObjectAttribute
instances as needed.
In the present implementation, all non-hidden properties on the DataObjectEntry
will be added to the inquiry. Additionally, any collections on the object will be
displayed in their own sections.
dataObjectEntry
- data object entry
LookupView deriveLookupViewFromMetadata(DataObjectEntry dataObjectEntry)
LookupView
for the given data object entry.
Information will be pulled from the DataObjectEntry
and the embedded
DataObjectMetadata
and DataObjectAttribute
instances as needed.
In the present implementation, all non-hidden properties on the DataObjectEntry
will be added to the lookup search criteria and results.
dataObjectEntry
- data object entry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |