Uses of Interface
org.apache.tapestry5.commons.Messages
Packages that use Messages
Package
Description
Root package for Tapestry, containing common interfaces and data types used throughout the framework.
[INTERNAL USE ONLY] internal support classes; API subject to change.
[INTERNAL USE ONLY] support classes for the
BeanEditor
component; API subject to change[INTERNAL USE ONLY] JSR-303 Bean Validation implementation details; API subject to change
[INTERNAL USE ONLY] internal service classes; API subject to change
[INTERNAL USE ONLY] JavaScript support implementations; API subject to change
[INTERNAL USE ONLY] page structure implementation details; API subject to change.
[INTERNAL USE ONLY] utility classes for Tapestry IOC services; API subject to change
Core services
Services supporting component and application message catalogs.
Support for testing Tapestry pages
A set of enums, abstract classs and wrappers of various purposes
-
Uses of Messages in org.apache.tapestry5
Methods in org.apache.tapestry5 that return MessagesModifier and TypeMethodDescriptionComponentResources.getContainerMessages()
Returns theMessages
from the container, or null if this is the root component (with no container).ComponentResources.getMessages()
Returns the message catalog for this component.PropertyOverrides.getOverrideMessages()
Returns the override messages (normally, the messages catalog for the component's container). -
Uses of Messages in org.apache.tapestry5.beanmodel.internal.beanmodel
Constructors in org.apache.tapestry5.beanmodel.internal.beanmodel with parameters of type MessagesModifierConstructorDescriptionBeanModelImpl
(Class<T> beanType, PropertyConduitSource propertyConduitSource, TypeCoercer typeCoercer, Messages messages, ObjectLocator locator) PropertyModelImpl
(BeanModel model, String name, PropertyConduit conduit, Messages messages) -
Uses of Messages in org.apache.tapestry5.beanmodel.internal.services
Methods in org.apache.tapestry5.beanmodel.internal.services with parameters of type MessagesModifier and TypeMethodDescription<T> BeanModel<T>
<T> BeanModel<T>
BeanModelSourceImpl.createDisplayModel
(Class<T> beanClass, Messages messages) <T> BeanModel<T>
BeanModelSourceImpl.createEditModel
(Class<T> beanClass, Messages messages) -
Uses of Messages in org.apache.tapestry5.beanmodel.services
Methods in org.apache.tapestry5.beanmodel.services with parameters of type MessagesModifier and TypeMethodDescription<T> BeanModel<T>
Deprecated.<T> BeanModel<T>
BeanModelSource.createDisplayModel
(Class<T> beanClass, Messages messages) Creates a model for display purposes; this may include properties which are read-only.<T> BeanModel<T>
BeanModelSource.createEditModel
(Class<T> beanClass, Messages messages) Creates a model for edit and update purposes, only properties that are fully read-write are included. -
Uses of Messages in org.apache.tapestry5.commons.internal.util
Classes in org.apache.tapestry5.commons.internal.util that implement MessagesMethods in org.apache.tapestry5.commons.internal.util that return MessagesModifier and TypeMethodDescriptionstatic Messages
Finds the messages for a given Messages utility class.Methods in org.apache.tapestry5.commons.internal.util with parameters of type MessagesModifier and TypeMethodDescriptionstatic String
InternalCommonsUtils.defaultLabel
(String id, Messages messages, String propertyExpression) Looks for a label within the messages based on the id. -
Uses of Messages in org.apache.tapestry5.commons.util
Classes in org.apache.tapestry5.commons.util that implement MessagesModifier and TypeClassDescriptionclass
Abstract implementation ofMessages
that doesn't know where values come from (that information is supplied in a subclass, via theAbstractMessages.valueForKey(String)
method). -
Uses of Messages in org.apache.tapestry5.internal
Methods in org.apache.tapestry5.internal that return MessagesMethods in org.apache.tapestry5.internal with parameters of type MessagesModifier and TypeMethodDescriptionstatic String
TapestryInternalUtils.defaultLabel
(String id, Messages messages, String propertyExpression) Looks for a label within the messages based on the id.static String
TapestryInternalUtils.getLabelForEnum
(Messages messages, Enum value) static String
TapestryInternalUtils.getLabelForEnum
(Messages messages, String prefix, Enum value) Converts an enum to a label string, allowing for overrides from a message catalog. -
Uses of Messages in org.apache.tapestry5.internal.beaneditor
Methods in org.apache.tapestry5.internal.beaneditor that return MessagesConstructors in org.apache.tapestry5.internal.beaneditor with parameters of type Messages -
Uses of Messages in org.apache.tapestry5.internal.beanvalidator
Methods in org.apache.tapestry5.internal.beanvalidator with parameters of type MessagesModifier and TypeMethodDescriptionBeanFieldValidatorDefaultSource.createDefaultValidator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) -
Uses of Messages in org.apache.tapestry5.internal.services
Classes in org.apache.tapestry5.internal.services that implement MessagesModifier and TypeClassDescriptionclass
Implementation ofMessages
based on a simple Map (of string keys and values).Methods in org.apache.tapestry5.internal.services that return MessagesModifier and TypeMethodDescriptionComponentMessagesSourceImpl.getApplicationCatalog
(Locale locale) ComponentMessagesSourceImpl.getMessages
(ComponentModel componentModel, Locale locale) ComponentMessagesSourceImpl.getMessages
(ComponentModel componentModel, ComponentResourceSelector selector) MessagesSource.getMessages
(MessagesBundle bundle, ComponentResourceSelector selector) Used to obtain aMessages
instance for a particular component, within a particular locale.MessagesSourceImpl.getMessages
(MessagesBundle bundle, ComponentResourceSelector selector) Methods in org.apache.tapestry5.internal.services with parameters of type MessagesModifier and TypeMethodDescriptionFieldTranslatorSourceImpl.createDefaultTranslator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) FieldValidatorDefaultSourceImpl.createDefaultValidator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) FieldTranslatorSourceImpl.createTranslator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Translator translator) FieldValidatorSourceImpl.createValidator
(Field field, String validatorType, String constraintValue, String overrideId, Messages overrideMessages, Locale locale) Constructors in org.apache.tapestry5.internal.services with parameters of type MessagesModifierConstructorDescriptionEnumValueLabelProvider
(Messages messages) FieldTranslatorSourceImpl
(TranslatorSource translatorSource, Messages globalMessages, FormSupport formSupport) FieldValidatorSourceImpl
(Messages globalMessages, TypeCoercer typeCoercer, FormSupport formSupport, Map<String, Validator> validators, ValidatorMacro validatorMacro) -
Uses of Messages in org.apache.tapestry5.internal.services.javascript
Constructors in org.apache.tapestry5.internal.services.javascript with parameters of type MessagesModifierConstructorDescriptionModuleManagerImpl
(ResponseCompressionAnalyzer compressionAnalyzer, AssetSource assetSource, Map<String, JavaScriptModuleConfiguration> configuration, Messages globalMessages, StreamableResourceSource streamableResourceSource, boolean compactJSON, boolean productionMode, String modulePathPrefix, PathConstructor pathConstructor) -
Uses of Messages in org.apache.tapestry5.internal.structure
Methods in org.apache.tapestry5.internal.structure that return MessagesModifier and TypeMethodDescriptionInternalComponentResourcesImpl.getContainerMessages()
ComponentPageElementResources.getMessages
(ComponentModel componentModel) Used to obtain aMessages
instance for a particular component.ComponentPageElementResourcesImpl.getMessages
(ComponentModel componentModel) InternalComponentResourcesImpl.getMessages()
-
Uses of Messages in org.apache.tapestry5.ioc.internal.util
Methods in org.apache.tapestry5.ioc.internal.util with parameters of type MessagesModifier and TypeMethodDescriptionstatic String
InternalUtils.defaultLabel
(String id, Messages messages, String propertyExpression) Looks for a label within the messages based on the id. -
Uses of Messages in org.apache.tapestry5.ioc.test
Methods in org.apache.tapestry5.ioc.test that return MessagesModifier and TypeMethodDescriptionprotected final Messages
IOCTestCase.mockMessages()
Deprecated.Methods in org.apache.tapestry5.ioc.test with parameters of type MessagesModifier and TypeMethodDescriptionprotected final void
IOCTestCase.stub_contains
(Messages messages, boolean contained) Deprecated.protected final void
IOCTestCase.train_contains
(Messages messages, String key, boolean result) Deprecated.protected final void
Deprecated.protected final void
IOCTestCase.train_getMessageFormatter
(Messages messages, String key, MessageFormatter formatter) Deprecated. -
Uses of Messages in org.apache.tapestry5.services
Methods in org.apache.tapestry5.services that return MessagesModifier and TypeMethodDescriptionPropertyEditContext.getContainerMessages()
Returns the message catalog for the container of theBeanEditForm
, which is the correct place to look for strings used for labels, etc.PropertyOutputContext.getMessages()
Returns the message catalog appropriate for use.Methods in org.apache.tapestry5.services with parameters of type MessagesModifier and TypeMethodDescriptionFieldTranslatorSource.createDefaultTranslator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) Creates aFieldTranslator
for the given property, or returns null if one can't be constructed.FieldValidatorDefaultSource.createDefaultValidator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) Analyzes the property type and property annotations to determine the default set of validations for the property, which are wrapped to form aFieldValidator
for a field.FieldTranslatorSource.createTranslator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Translator translator) Wraps aTranslator
as a FieldTranslator.FieldValidatorSource.createValidator
(Field field, String validatorType, String constraintValue, String overrideId, Messages overrideMessages, Locale locale) Full featured version ofFieldValidatorSource.createValidator(Field, String, String)
used in situations where the container of the field is not necessarily the place to look for override messages, and the id of the field is not the key to use when checking. -
Uses of Messages in org.apache.tapestry5.services.messages
Methods in org.apache.tapestry5.services.messages that return MessagesModifier and TypeMethodDescriptionComponentMessagesSource.getApplicationCatalog
(Locale locale) Gets the Messages derived from the application's message catalog.ComponentMessagesSource.getMessages
(ComponentModel componentModel, Locale locale) Deprecated.Deprecated in 5.3; useComponentMessagesSource.getMessages(ComponentModel, ComponentResourceSelector)
instead.ComponentMessagesSource.getMessages
(ComponentModel componentModel, ComponentResourceSelector selector) Used to obtain aMessages
instance for a particular component, using a particular selector. -
Uses of Messages in org.apache.tapestry5.test
Methods in org.apache.tapestry5.test that return MessagesModifier and TypeMethodDescriptionprotected final Messages
TapestryTestCase.messagesFor
(Class componentClass) Provides access to component messages, suitable for testing.Methods in org.apache.tapestry5.test with parameters of type MessagesModifier and TypeMethodDescriptionprotected final void
TapestryTestCase.train_createEditModel
(BeanModelSource source, Class beanClass, Messages messages, BeanModel model) protected final void
TapestryTestCase.train_createValidator
(FieldValidatorSource source, Field field, String validatorType, String constraintValue, String overrideId, Messages overrideMessages, Locale locale, FieldValidator result) protected final void
TapestryTestCase.train_getContainerMessages
(ComponentResources resources, Messages containerMessages) protected final void
TapestryTestCase.train_getMessages
(ComponentResources resources, Messages messages) protected final void
TapestryTestCase.train_getOverrideMessages
(PropertyOverrides overrides, Messages messages) -
Uses of Messages in org.apache.tapestry5.util
Constructors in org.apache.tapestry5.util with parameters of type MessagesModifierConstructorDescriptionEnumSelectModel
(Class<T> enumClass, Messages messages) EnumSelectModel
(Class<T> enumClass, Messages messages, T[] values)
BeanModelSource.createDisplayModel(Class, org.apache.tapestry5.commons.Messages)
orBeanModelSource.createEditModel(Class, org.apache.tapestry5.commons.Messages)