|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.services.ComponentDefaultProviderImpl
public class ComponentDefaultProviderImpl
| Constructor Summary | |
|---|---|
ComponentDefaultProviderImpl(PropertyAccess propertyAccess,
BindingSource bindingSource,
ValueEncoderSource valueEncoderSource,
FieldTranslatorSource fieldTranslatorSource,
FieldValidatorDefaultSource fieldValidatorDefaultSource)
|
|
| 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)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentDefaultProviderImpl(PropertyAccess propertyAccess,
BindingSource bindingSource,
ValueEncoderSource valueEncoderSource,
FieldTranslatorSource fieldTranslatorSource,
FieldValidatorDefaultSource fieldValidatorDefaultSource)
| Method Detail |
|---|
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 needed
public ValueEncoder defaultValueEncoder(String parameterName,
ComponentResources resources)
ComponentDefaultProvider
defaultValueEncoder 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 extracted
public FieldTranslator defaultTranslator(String parameterName,
ComponentResources resources)
ComponentDefaultProvider
defaultTranslator in interface ComponentDefaultProvider
public Binding defaultTranslatorBinding(String parameterName,
ComponentResources resources)
ComponentDefaultProvider
defaultTranslatorBinding in interface ComponentDefaultProviderFieldTranslator
public FieldValidator defaultValidator(String parameterName,
ComponentResources resources)
ComponentDefaultProvider
defaultValidator in interface ComponentDefaultProvider
public Binding defaultValidatorBinding(String parameterName,
ComponentResources resources)
ComponentDefaultProvider
defaultValidatorBinding in interface ComponentDefaultProviderFieldTranslator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||