Package | Description |
---|---|
org.apache.tapestry5 |
Root package for Tapestry, containing common interfaces and data types used throughout the framework.
|
org.apache.tapestry5.internal |
[INTERNAL USE ONLY] internal support classes; API subject to change.
|
org.apache.tapestry5.internal.beaneditor |
[INTERNAL USE ONLY] support classes for the
BeanEditor component; API subject to change |
org.apache.tapestry5.internal.beanvalidator |
[INTERNAL USE ONLY] JSR-303 Bean Validation implementation details; API subject to change
|
org.apache.tapestry5.internal.services |
[INTERNAL USE ONLY] internal service classes; API subject to change
|
org.apache.tapestry5.internal.services.javascript |
[INTERNAL USE ONLY] JavaScript support implementations; API subject to change
|
org.apache.tapestry5.internal.structure |
[INTERNAL USE ONLY] page structure implementation details; API subject to change.
|
org.apache.tapestry5.ioc.internal.util |
[INTERNAL USE ONLY] utility classes for Tapestry IOC services; API subject to change
|
org.apache.tapestry5.ioc.test |
Classes supporting testing of Tapestry IOC services
|
org.apache.tapestry5.ioc.util |
Utility classes supporting Tapestry IOC services
|
org.apache.tapestry5.services |
Core services
|
org.apache.tapestry5.services.messages |
Services supporting component and application message catalogs.
|
org.apache.tapestry5.test |
Support for testing Tapestry pages
|
org.apache.tapestry5.util |
A set of enums, abstract classs and wrappers of various purposes
|
Modifier and Type | Method and Description |
---|---|
Messages |
ComponentResources.getContainerMessages()
Returns the
Messages from the container, or null if this is the root component (with no container). |
Messages |
ComponentResources.getMessages()
Returns the message catalog for this component.
|
Messages |
PropertyOverrides.getOverrideMessages()
Returns the override messages (normally, the messages catalog for the component's container).
|
Modifier and Type | Method and Description |
---|---|
Messages |
PropertyOverridesImpl.getOverrideMessages() |
Modifier and Type | Method and Description |
---|---|
static 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.
|
Modifier and Type | Method and Description |
---|---|
Messages |
EnvironmentMessages.getMessages() |
Constructor and Description |
---|
BeanModelImpl(Class<T> beanType,
PropertyConduitSource propertyConduitSource,
TypeCoercer typeCoercer,
Messages messages,
ObjectLocator locator) |
EnvironmentMessages(Messages messages,
String overrideId) |
PropertyModelImpl(BeanModel model,
String name,
PropertyConduit conduit,
Messages messages) |
Modifier and Type | Method and Description |
---|---|
FieldValidator |
BeanFieldValidatorDefaultSource.createDefaultValidator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Class propertyType,
AnnotationProvider propertyAnnotations) |
Modifier and Type | Class and Description |
---|---|
class |
MapMessages
Implementation of
Messages based on a simple Map (of string keys and values). |
Modifier and Type | Method and Description |
---|---|
Messages |
ComponentMessagesSourceImpl.getApplicationCatalog(Locale locale) |
Messages |
ComponentMessagesSourceImpl.getMessages(ComponentModel componentModel,
ComponentResourceSelector selector) |
Messages |
ComponentMessagesSourceImpl.getMessages(ComponentModel componentModel,
Locale locale) |
Messages |
MessagesSource.getMessages(MessagesBundle bundle,
ComponentResourceSelector selector)
Used to obtain a
Messages instance for a particular component, within a particular locale. |
Messages |
MessagesSourceImpl.getMessages(MessagesBundle bundle,
ComponentResourceSelector selector) |
Modifier and Type | Method and Description |
---|---|
<T> BeanModel<T> |
BeanModelSourceImpl.create(Class<T> beanClass,
boolean filterReadOnlyProperties,
Messages messages) |
FieldTranslator |
FieldTranslatorSourceImpl.createDefaultTranslator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Class propertyType,
AnnotationProvider propertyAnnotations) |
FieldValidator |
FieldValidatorDefaultSourceImpl.createDefaultValidator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Class propertyType,
AnnotationProvider propertyAnnotations) |
<T> BeanModel<T> |
BeanModelSourceImpl.createDisplayModel(Class<T> beanClass,
Messages messages) |
<T> BeanModel<T> |
BeanModelSourceImpl.createEditModel(Class<T> beanClass,
Messages messages) |
FieldTranslator |
FieldTranslatorSourceImpl.createTranslator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Translator translator) |
FieldValidator |
FieldValidatorSourceImpl.createValidator(Field field,
String validatorType,
String constraintValue,
String overrideId,
Messages overrideMessages,
Locale locale) |
Constructor and Description |
---|
EnumValueLabelProvider(Messages messages) |
FieldTranslatorSourceImpl(TranslatorSource translatorSource,
Messages globalMessages,
FormSupport formSupport) |
FieldValidatorSourceImpl(Messages globalMessages,
TypeCoercer typeCoercer,
FormSupport formSupport,
Map<String,Validator> validators,
ValidatorMacro validatorMacro) |
Constructor and Description |
---|
ModuleManagerImpl(ResponseCompressionAnalyzer compressionAnalyzer,
AssetSource assetSource,
Map<String,JavaScriptModuleConfiguration> configuration,
Messages globalMessages,
StreamableResourceSource streamableResourceSource,
boolean compactJSON,
boolean productionMode,
String modulePathPrefix,
PathConstructor pathConstructor) |
Modifier and Type | Method and Description |
---|---|
Messages |
InternalComponentResourcesImpl.getContainerMessages() |
Messages |
InternalComponentResourcesImpl.getMessages() |
Messages |
ComponentPageElementResourcesImpl.getMessages(ComponentModel componentModel) |
Messages |
ComponentPageElementResources.getMessages(ComponentModel componentModel)
Used to obtain a
Messages instance for a particular component. |
Modifier and Type | Class and Description |
---|---|
class |
MessagesImpl
Implementation of
Messages based around a ResourceBundle . |
Modifier and Type | Method and Description |
---|---|
static Messages |
MessagesImpl.forClass(Class forClass)
Finds the messages for a given Messages utility class.
|
Modifier and Type | Method and Description |
---|---|
static String |
InternalCommonsUtils.defaultLabel(String id,
Messages messages,
String propertyExpression)
Looks for a label within the messages based on the id.
|
static String |
InternalUtils.defaultLabel(String id,
Messages messages,
String propertyExpression)
Looks for a label within the messages based on the id.
|
Modifier and Type | Method and Description |
---|---|
protected Messages |
IOCTestCase.mockMessages()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
IOCTestCase.stub_contains(Messages messages,
boolean contained)
Deprecated.
|
protected void |
IOCTestCase.train_contains(Messages messages,
String key,
boolean result)
Deprecated.
|
protected void |
IOCTestCase.train_get(Messages messages,
String key,
String message)
Deprecated.
|
protected void |
IOCTestCase.train_getMessageFormatter(Messages messages,
String key,
MessageFormatter formatter)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMessages
Abstract implementation of
Messages that doesn't know where values come from (that information is supplied in
a subclass, via the AbstractMessages.valueForKey(String) method). |
Modifier and Type | Method and Description |
---|---|
Messages |
PropertyEditContext.getContainerMessages()
Returns the message catalog for the container of the
BeanEditForm ,
which is the correct place to look for strings used for labels, etc. |
Messages |
PropertyOutputContext.getMessages()
Returns the message catalog appropriate for use.
|
Modifier and Type | Method and Description |
---|---|
<T> BeanModel<T> |
BeanModelSource.create(Class<T> beanClass,
boolean filterReadOnlyProperties,
Messages messages)
|
FieldTranslator |
FieldTranslatorSource.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. |
FieldValidator |
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 a
FieldValidator for a field. |
<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.
|
FieldTranslator |
FieldTranslatorSource.createTranslator(Field field,
String overrideId,
Messages overrideMessages,
Locale locale,
Translator translator)
Wraps a
Translator as a FieldTranslator. |
FieldValidator |
FieldValidatorSource.createValidator(Field field,
String validatorType,
String constraintValue,
String overrideId,
Messages overrideMessages,
Locale locale)
Full featured version of
FieldValidatorSource.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. |
Modifier and Type | Method and Description |
---|---|
Messages |
ComponentMessagesSource.getApplicationCatalog(Locale locale)
Gets the Messages derived from the application's message catalog.
|
Messages |
ComponentMessagesSource.getMessages(ComponentModel componentModel,
ComponentResourceSelector selector)
Used to obtain a
Messages instance for a particular component, using a particular selector. |
Messages |
ComponentMessagesSource.getMessages(ComponentModel componentModel,
Locale locale)
Deprecated.
Deprecated in 5.3; use
ComponentMessagesSource.getMessages(ComponentModel, ComponentResourceSelector) instead. |
Modifier and Type | Method and Description |
---|---|
protected Messages |
TapestryTestCase.messagesFor(Class componentClass)
Provides access to component messages, suitable for testing.
|
Modifier and Type | Method and Description |
---|---|
protected void |
TapestryTestCase.train_createEditModel(BeanModelSource source,
Class beanClass,
Messages messages,
BeanModel model) |
protected void |
TapestryTestCase.train_createValidator(FieldValidatorSource source,
Field field,
String validatorType,
String constraintValue,
String overrideId,
Messages overrideMessages,
Locale locale,
FieldValidator result) |
protected void |
TapestryTestCase.train_getContainerMessages(ComponentResources resources,
Messages containerMessages) |
protected void |
TapestryTestCase.train_getMessages(ComponentResources resources,
Messages messages) |
protected void |
TapestryTestCase.train_getOverrideMessages(PropertyOverrides overrides,
Messages messages) |
Constructor and Description |
---|
EnumSelectModel(Class<T> enumClass,
Messages messages) |
EnumSelectModel(Class<T> enumClass,
Messages messages,
T[] values) |
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.