|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentPropertySource
Encapsulates the logic for searching for component meta-data. Deployed as service tapestry.props.ComponentPropertySource.
TODO: Adjust name, since it now provides access to namespace properties as well as component properties.
| Method Summary | |
|---|---|
String |
getComponentProperty(IComponent component,
String propertyName)
Returns the property value for a particular named meta-data property of the component. |
String |
getLocalizedComponentProperty(IComponent component,
Locale locale,
String propertyName)
Like getComponentProperty(IComponent, String), but the property name will be
localized to the component's current locale (determined from its page). |
String |
getLocalizedNamespaceProperty(INamespace namespace,
Locale locale,
String propertyName)
As with getLocalizedComponentProperty(IComponent, Locale, String), but with a
INamespace. |
String |
getNamespaceProperty(INamespace namespace,
String propertyName)
Returns the property value for a particular named meta-data property of the namespace. |
| Method Detail |
|---|
String getComponentProperty(IComponent component,
String propertyName)
component - The IComponent to get the property of.propertyName - Key of the property.
String getLocalizedComponentProperty(IComponent component,
Locale locale,
String propertyName)
getComponentProperty(IComponent, String), but the property name will be
localized to the component's current locale (determined from its page). Localizing the
property name means that a suffix may be appended to it. If the fully localized name is not
found, then the locale is generalized (i.e., from "en_UK" to "en" to nothing) until a match
is found.
component - The IComponent to get the property of.locale - The Locale to get properties for.propertyName - Key of the property.
String getNamespaceProperty(INamespace namespace,
String propertyName)
namespace - The namespace to get the property from.propertyName - The key of the property to get.
String getLocalizedNamespaceProperty(INamespace namespace,
Locale locale,
String propertyName)
getLocalizedComponentProperty(IComponent, Locale, String), but with a
INamespace.
namespace - The namespace to get the property from.locale - Locale to filter the properties for.propertyName - The key of the property to get.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||