public static class Localizers.ActionLocalizer extends Localizers.DomainAwareLocalizer
Localizer
that localizes objects of type
Action
. It uses the strings stored in the
Action
object for the keys ResourceConstants.DEFAULT_TEXT_KEY
and ResourceConstants.DEFAULT_DESCRIPTION_KEY
to fetch
the localized text from the ResourceManager
and stores those
String
s back into the Action
using
Action.putValue(String, Object)
with
Action.NAME
and Action.SHORT_DESCRIPTION
as
keys.Action.getValue(String)
,
Action.putValue(String, Object)
domain
Constructor and Description |
---|
Localizers.ActionLocalizer(ResourceDomain domain) |
Modifier and Type | Method and Description |
---|---|
void |
localize(java.lang.Object item)
Localizes the provided
Object . |
textString, tooltipString
public Localizers.ActionLocalizer(ResourceDomain domain)
domain
- public void localize(java.lang.Object item)
Localizer
Object
. The specific
meaning of localization
to be achieved is up
to the individual implementation.item
- the Object
to localizeLocalizers