Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 //  Copyright 2008 The Apache Software Foundation
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
For a particular field, generates the default org.apache.tapestry5.FieldTranslator for the field.
public interface FieldTranslatorSource
Common shorthand for createDefaultTranslator(org.apache.tapestry5.Field,java.lang.String,org.apache.tapestry5.ioc.Messages,java.util.Locale,java.lang.Class,org.apache.tapestry5.ioc.AnnotationProvider).

resources of component who owns the parameter
parameterName name of parameter used to determine the property type
field translator, or null
    FieldTranslator createDefaultTranslator(ComponentResources resourcesString parameterName);

Creates a org.apache.tapestry5.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 org.apache.tapestry5.Translator available from the TranslatorSource that is appropriate for the property type.

field for which a translator is needed
overrideId id used when looking in the overrideMessages for a message override
overrideMessages location to look for overriding messages
locale to localize validation messages to
propertyType type of property editted by the field, used to select the Translator
propertyAnnotations annotations on the property (not currently used)
the field translator, or null
    FieldTranslator createDefaultTranslator(Field fieldString overrideIdMessages overrideMessagesLocale locale,
                                            Class propertyTypeAnnotationProvider propertyAnnotations);

Wraps a org.apache.tapestry5.Translator as a FieldTranslator.
    FieldTranslator createTranslator(Field fieldString overrideIdMessages overrideMessagesLocale locale,
                                     Translator translator);

Creates a translator (used by the translate: binding prefix).
    FieldTranslator createTranslator(ComponentResources componentResourcesString translatorName);
New to GrepCode? Check out our FAQ X