|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.i18nsystem.AbstractI18nKeyGenerator<ActionDefinition> info.magnolia.ui.api.action.ActionDefinitionKeyGenerator
public class ActionDefinitionKeyGenerator
An I18n key generator for the actionbar actions (labels, descriptions, errors, etc.).
Constructor Summary | |
---|---|
ActionDefinitionKeyGenerator()
|
Method Summary | |
---|---|
protected void |
keysFor(List<String> keys,
ActionDefinition actionDefinition,
AnnotatedElement el)
Will generate keys for the message bundle in the following form <app-name>.<sub-app-name>.actions.<action-name>[.name of getter or field annotated with . |
Methods inherited from class info.magnolia.i18nsystem.AbstractI18nKeyGenerator |
---|
addKey, fieldOrGetterName, getAncestorKeyGenerators, getAncestors, getIdOrNameForUnknownRoot, getKeyGenerator, getParentViaCast, getRoot, getRootKeyGenerator, keyify, keysFor, messageBundleNameFor, resolveMessageBundleNameUpwards |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionDefinitionKeyGenerator()
Method Detail |
---|
protected void keysFor(List<String> keys, ActionDefinition actionDefinition, AnnotatedElement el)
<app-name>.<sub-app-name>.actions.<action-name>[.name of getter or field annotated with I18nText
]
.
Also generates "default" keys for all actions. Still unique keys for those actions are generated in case one wants to override the default ones. For example, if your app has a commit action defined like this /modules/my-module/apps/my-app/subApps/detail/actions/commit
a fallback key will in the form actions.commit
will be generated besides a my-module.detail.actions.commit
key.
keysFor
in class info.magnolia.i18nsystem.AbstractI18nKeyGenerator<ActionDefinition>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |