|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.services.FieldTranslatorSourceImpl
public class FieldTranslatorSourceImpl
| Constructor Summary | |
|---|---|
FieldTranslatorSourceImpl(TranslatorSource translatorSource,
Messages globalMessages,
FormSupport formSupport)
|
|
| Method Summary | |
|---|---|
FieldTranslator |
createDefaultTranslator(ComponentResources resources,
String parameterName)
Common shorthand for FieldTranslatorSource.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 resources,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldTranslatorSourceImpl(TranslatorSource translatorSource,
Messages globalMessages,
FormSupport formSupport)
| Method Detail |
|---|
public FieldTranslator createDefaultTranslator(ComponentResources resources,
String parameterName)
FieldTranslatorSourceFieldTranslatorSource.createDefaultTranslator(org.apache.tapestry5.Field, String,
org.apache.tapestry5.ioc.Messages, java.util.Locale, Class, org.apache.tapestry5.ioc.AnnotationProvider).
createDefaultTranslator in interface FieldTranslatorSourceresources - of component who owns the parameterparameterName - name of parameter used to determine the property type
public FieldTranslator createDefaultTranslator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Class propertyType,
AnnotationProvider propertyAnnotations)
FieldTranslatorSourceFieldTranslator 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.
createDefaultTranslator in interface FieldTranslatorSourcefield - 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)
public FieldTranslator createTranslator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Translator translator)
FieldTranslatorSourceTranslator as a FieldTranslator.
createTranslator in interface FieldTranslatorSourcelocale - no longer used in 5.3, may be null
public FieldTranslator createTranslator(ComponentResources resources,
String translatorName)
FieldTranslatorSourcetranslate: binding
prefix).
createTranslator in interface FieldTranslatorSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||