|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentDefaultProvider
A service that can be injected into a component to provide common defaults for various types of parameters.
Method Summary | |
---|---|
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. Use defaultTranslatorBinding(String, org.apache.tapestry5.ComponentResources) instead |
Binding |
defaultTranslatorBinding(String parameterName,
ComponentResources resources)
Provides a binding that itself provides the field translator. |
FieldValidator |
defaultValidator(String parameterName,
ComponentResources resources)
Deprecated. Use defaultValidatorBinding(String, org.apache.tapestry5.ComponentResources) instead |
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. |
Method Detail |
---|
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 needed
ValueEncoder defaultValueEncoder(String parameterName, ComponentResources resources)
parameterName
- the name of the parameter whose type is used to locate a ValueEncoderFactory
resources
- the resources of the component, from which parameter and its type are extracted
FieldTranslator defaultTranslator(String parameterName, ComponentResources resources)
defaultTranslatorBinding(String, org.apache.tapestry5.ComponentResources)
instead
parameterName
- resources
-
Binding defaultTranslatorBinding(String parameterName, ComponentResources resources)
parameterName
- resources
-
FieldTranslator
FieldValidator defaultValidator(String parameterName, ComponentResources resources)
defaultValidatorBinding(String, org.apache.tapestry5.ComponentResources)
instead
parameterName
- resources
-
Binding defaultValidatorBinding(String parameterName, ComponentResources resources)
parameterName
- resources
-
FieldTranslator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |