public class ComponentDefaultProviderImpl extends Object implements ComponentDefaultProvider
| Constructor and Description |
|---|
ComponentDefaultProviderImpl(PropertyAccess propertyAccess,
BindingSource bindingSource,
ValueEncoderSource valueEncoderSource,
FieldTranslatorSource fieldTranslatorSource,
FieldValidatorDefaultSource fieldValidatorDefaultSource) |
| Modifier and Type | Method and Description |
|---|---|
Binding |
defaultBinding(String parameterName,
ComponentResources resources)
Checks to see if the container of the component (identified by its resources) contains a property matching the
component's id.
|
String |
defaultLabel(ComponentResources resources)
Computes the default label for the component (which will generally be a
Field). |
FieldTranslator |
defaultTranslator(String parameterName,
ComponentResources resources)
Provides a translator based on the bound parameter type, if possible.
|
Binding |
defaultTranslatorBinding(String parameterName,
ComponentResources resources)
Provides a binding that itself provides the field translator.
|
FieldValidator |
defaultValidator(String parameterName,
ComponentResources resources)
Provides a validator based on the bound parameter type.
|
Binding |
defaultValidatorBinding(String parameterName,
ComponentResources resources)
Provides a binding that itself provides the field translator.
|
ValueEncoder |
defaultValueEncoder(String parameterName,
ComponentResources resources)
Gets or creates a value encoder based on the type of the named parameter.
|
public ComponentDefaultProviderImpl(PropertyAccess propertyAccess, BindingSource bindingSource, ValueEncoderSource valueEncoderSource, FieldTranslatorSource fieldTranslatorSource, FieldValidatorDefaultSource fieldValidatorDefaultSource)
public String defaultLabel(ComponentResources resources)
ComponentDefaultProviderField).defaultLabel in interface ComponentDefaultProviderComponentResourcesCommon.getId().public Binding defaultBinding(String parameterName, ComponentResources resources)
ComponentDefaultProviderField's
value parameter (or equivalent).defaultBinding in interface ComponentDefaultProviderparameterName - the name of the parameterresources - the resources of the component for which a binding is neededpublic ValueEncoder defaultValueEncoder(String parameterName, ComponentResources resources)
ComponentDefaultProviderdefaultValueEncoder in interface ComponentDefaultProviderparameterName - the name of the parameter whose type is used to locate a ValueEncoderFactoryresources - the resources of the component, from which parameter and its type are extractedpublic FieldTranslator defaultTranslator(String parameterName, ComponentResources resources)
ComponentDefaultProviderdefaultTranslator in interface ComponentDefaultProviderpublic Binding defaultTranslatorBinding(String parameterName, ComponentResources resources)
ComponentDefaultProviderdefaultTranslatorBinding in interface ComponentDefaultProviderFieldTranslatorpublic FieldValidator defaultValidator(String parameterName, ComponentResources resources)
ComponentDefaultProviderdefaultValidator in interface ComponentDefaultProviderpublic Binding defaultValidatorBinding(String parameterName, ComponentResources resources)
ComponentDefaultProviderdefaultValidatorBinding in interface ComponentDefaultProviderFieldTranslator5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.