| org.romaframework.aspect.i18n.I18NAspectAbstract org.romaframework.aspect.i18n.rb.I18NAspectResourceBundleImpl
I18NAspectResourceBundleImpl | public class I18NAspectResourceBundleImpl extends I18NAspectAbstract implements UserObjectEventListener,AutoReloadListener(Code) | | Internazionalization Manager. It gets the label checking in the configured I18N resource bundle.
author: Luca Garulli (luca.garulli@assetdata.it), Luigi Dell'Aquila (luigi.dellaquila@assetdata.it) |
Method Summary | |
public DateFormat | getDateFormat() | public DateFormat | getDateFormat(Locale iLocale) | public DateFormat | getDateTimeFormat() | public DateFormat | getDateTimeFormat(Locale iLocale) | public String | getLabel(SchemaObject iObject, String iElementName, String iElementLabel) Find the label walking on entity inheritance tree. | protected List<ResourceBundle> | getResourceBundle() | protected List<ResourceBundle> | getResourceBundle(Locale iLocale) | protected synchronized List<ResourceBundle> | getResourceBundle(Locale iLocale, String iContextName) Search the ResourceBundle by context name. | public String | getString(String iText) | public String | getString(String iText, Locale iLocale) | public DateFormat | getTimeFormat() | public DateFormat | getTimeFormat(Locale iLocale) | public void | onAfterActionExecution(Object iContent, SchemaElement iAction) | public Object | onAfterFieldRead(Object content, SchemaField field, Object currentValue) | public Object | onAfterFieldWrite(Object content, SchemaField field, Object currentValue) | public boolean | onBeforeActionExecution(Object iContent, SchemaElement iAction) | public Object | onBeforeFieldRead(Object iContent, SchemaField iField, Object iCurrentValue) | public Object | onBeforeFieldWrite(Object content, SchemaField field, Object currentValue) | public void | onFieldRefresh(SessionInfo iSession, Object iContent, SchemaField iField) | public String | resolveString(Class> iObjectClass, String iText, Object... iArgs) Resolve a string using the I18N. | public String | resolveString(String iText, Object... iArgs) Resolve a string using the I18N. | public String | searchStringInResources(List<ResourceBundle> iResources, String iText) | public void | signalUpdatedFile(File iFile) Reload I18N configuration from file. | public void | startup() |
DEFAULT_FILE_NAME | final public static String DEFAULT_FILE_NAME(Code) | | |
DOMAIN_FILE_NAME | final public static String DOMAIN_FILE_NAME(Code) | | |
I18NAspectResourceBundleImpl | public I18NAspectResourceBundleImpl()(Code) | | |
getLabel | public String getLabel(SchemaObject iObject, String iElementName, String iElementLabel)(Code) | | Find the label walking on entity inheritance tree.
Parameters: resource - Parameters: iObject - Parameters: iElementName - |
getResourceBundle | protected synchronized List<ResourceBundle> getResourceBundle(Locale iLocale, String iContextName)(Code) | | Search the ResourceBundle by context name. Once loaded, ResourceBundles are cached by Locale settings.
Parameters: iLocale - Locale object identify I18N region Parameters: iContextName - Name of context to search |
resolveString | public String resolveString(Class> iObjectClass, String iText, Object... iArgs)(Code) | | Resolve a string using the I18N. If the string starts with $ prefix, then search that name in the resource bundle configured,
otherwise returns the same string passed in input.
Parameters: iObjectClass - The class of object for tree search Parameters: iText - The string to analyze and search The I18N string if it starts with $ prefix |
resolveString | public String resolveString(String iText, Object... iArgs)(Code) | | Resolve a string using the I18N. If the string starts with $ prefix, then search that name in the resource bundle configured,
otherwise returns the same string passed in input.
Parameters: iText - The string to analyze and search The I18N string if it starts with $ prefix, otherwise iLabel |
signalUpdatedFile | public void signalUpdatedFile(File iFile)(Code) | | Reload I18N configuration from file. This event is invoked when the file is changed.
|
startup | public void startup()(Code) | | |
|
|