public interface ComponentDefaultProvider
| 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)
Deprecated.
|
Binding |
defaultTranslatorBinding(String parameterName,
ComponentResources resources)
Provides a binding that itself provides the field translator.
|
FieldValidator |
defaultValidator(String parameterName,
ComponentResources resources)
Deprecated.
|
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.
|
String defaultLabel(ComponentResources resources)
Field).resources - ComponentResourcesCommon.getId().Binding defaultBinding(String parameterName, ComponentResources resources)
Field's
value parameter (or equivalent).parameterName - the name of the parameterresources - the resources of the component for which a binding is neededValueEncoder defaultValueEncoder(String parameterName, ComponentResources resources)
parameterName - 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 extractedFieldTranslator defaultTranslator(String parameterName, ComponentResources resources)
defaultTranslatorBinding(String, org.apache.tapestry5.ComponentResources) insteadparameterName - resources - Binding defaultTranslatorBinding(String parameterName, ComponentResources resources)
parameterName - resources - FieldTranslatorFieldValidator defaultValidator(String parameterName, ComponentResources resources)
defaultValidatorBinding(String, org.apache.tapestry5.ComponentResources) insteadparameterName - resources - Binding defaultValidatorBinding(String parameterName, ComponentResources resources)
parameterName - resources - FieldTranslator5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.