|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldTranslatorSource
For a particular field, generates the default FieldTranslator
for the field.
Method Summary | |
---|---|
FieldTranslator |
createDefaultTranslator(ComponentResources resources,
String parameterName)
Common shorthand for createDefaultTranslator(org.apache.tapestry5.Field, String,
org.apache.tapestry5.ioc.Messages, java.util.Locale, Class, org.apache.tapestry5.ioc.AnnotationProvider) . |
FieldTranslator |
createDefaultTranslator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Class propertyType,
AnnotationProvider propertyAnnotations)
Creates a FieldTranslator for the given property, or returns null if one can't be
constructed. |
FieldTranslator |
createTranslator(ComponentResources componentResources,
String translatorName)
Creates a translator (used by the translate: binding
prefix ). |
FieldTranslator |
createTranslator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Translator translator)
Wraps a Translator as a FieldTranslator. |
Method Detail |
---|
FieldTranslator createDefaultTranslator(ComponentResources resources, String parameterName)
createDefaultTranslator(org.apache.tapestry5.Field, String,
org.apache.tapestry5.ioc.Messages, java.util.Locale, Class, org.apache.tapestry5.ioc.AnnotationProvider)
.
resources
- of component who owns the parameterparameterName
- name of parameter used to determine the property type
FieldTranslator createDefaultTranslator(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations)
FieldTranslator
for the given property, or returns null if one can't be
constructed. The return value is null if the property type is not known, or if there is no Translator
available from the TranslatorSource
that
is appropriate for the property type.
field
- for which a translator is neededoverrideId
- id used when looking in the overrideMessages for a message overrideoverrideMessages
- location to look for overriding messageslocale
- no longer used in 5.3, may be nullpropertyType
- type of property editted by the field, used to select the TranslatorpropertyAnnotations
- annotations on the property (not currently used)
FieldTranslator createTranslator(Field field, String overrideId, Messages overrideMessages, Locale locale, Translator translator)
Translator
as a FieldTranslator.
locale
- no longer used in 5.3, may be nullFieldTranslator createTranslator(ComponentResources componentResources, String translatorName)
translate: binding
prefix
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |