Package | Description |
---|---|
org.apache.tapestry5.internal.services |
[INTERNAL USE ONLY] internal service classes; API subject to change
|
org.apache.tapestry5.internal.translator |
[INTERNAL USE ONLY] translator implementation classes; API subject to change.
|
org.apache.tapestry5.modules | |
org.apache.tapestry5.services |
Core services
|
org.apache.tapestry5.test |
Support for testing Tapestry pages
|
Modifier and Type | Method and Description |
---|---|
Translator |
TranslatorSourceImpl.findByType(Class valueType) |
Translator |
TranslatorSourceImpl.get(String name) |
Translator |
TranslatorSourceImpl.getByType(Class valueType) |
Modifier and Type | Method and Description |
---|---|
Map<String,Translator> |
TranslatorAlternatesSourceImpl.getTranslatorAlternates() |
Modifier and Type | Method and Description |
---|---|
FieldTranslator |
FieldTranslatorSourceImpl.createTranslator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Translator translator) |
Constructor and Description |
---|
FieldTranslatorImpl(Field field,
Translator<T> translator,
MessageFormatter formatter,
FormSupport formSupport) |
Constructor and Description |
---|
TranslatorAlternatesSourceImpl(Map<String,Translator> configuration) |
TranslatorSourceImpl(Map<Class,Translator> configuration) |
TranslatorSourceImpl(Map<Class,Translator> configuration,
Map<String,Translator> alternates) |
TranslatorSourceImpl(Map<Class,Translator> configuration,
Map<String,Translator> alternates) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTranslator<T> |
class |
NumericTranslator<T extends Number>
Uses a
NumericTranslatorSupport to provide proper locale-aware
support for all the built-in numeric types. |
class |
StringTranslator |
Modifier and Type | Method and Description |
---|---|
static TranslatorSource |
TapestryModule.buildTranslatorSource(Map<Class,Translator> configuration,
TranslatorAlternatesSource alternatesSource,
InvalidationEventHub hub) |
static void |
TapestryModule.contributeTranslatorSource(MappedConfiguration<Class,Translator> configuration,
NumericTranslatorSupport support,
Html5Support html5Support)
Contributes the basic set of translators:
string
byte
short
integer
long
float
double
BigInteger
BigDecimal
|
Modifier and Type | Method and Description |
---|---|
Translator |
TranslatorSource.findByType(Class valueType)
Finds a
Translator that is appropriate to the given type, which is usually obtained via
Binding.getBindingType() . |
Translator |
TranslatorSource.get(String name)
Returns the translator with the given name (either a standard translator, or an alternate).
|
Translator |
TranslatorSource.getByType(Class valueType)
Finds a
Translator that is appropriate to the given type, which is usually obtained via
Binding.getBindingType() . |
Modifier and Type | Method and Description |
---|---|
Map<String,Translator> |
TranslatorAlternatesSource.getTranslatorAlternates()
Get the mapping from name to Translator, based on the contributions to the service.
|
Modifier and Type | Method and Description |
---|---|
FieldTranslator |
FieldTranslatorSource.createTranslator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Translator translator)
Wraps a
Translator as a FieldTranslator. |
Modifier and Type | Method and Description |
---|---|
protected Translator |
TapestryTestCase.mockTranslator() |
protected Translator |
TapestryTestCase.mockTranslator(String name,
Class type) |
Modifier and Type | Method and Description |
---|---|
protected void |
TapestryTestCase.train_findByType(TranslatorSource ts,
Class propertyType,
Translator translator) |
protected void |
TapestryTestCase.train_get(TranslatorSource translatorSource,
String name,
Translator translator) |
protected void |
TapestryTestCase.train_getMessageKey(Translator translator,
String messageKey) |
protected void |
TapestryTestCase.train_getName(Translator translator,
String name) |
protected void |
TapestryTestCase.train_getType(Translator translator,
Class type) |
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.