Class TranslationUtils
- java.lang.Object
-
- de.codecamp.messages.spring.vaadin.TranslationUtils
-
public class TranslationUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description TranslationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidinjectMessageProxies(com.vaadin.flow.component.Component component)Inject message proxies into any appropriate fields of the given component.static voidlocalizeComponents(com.vaadin.flow.component.Component component)Localizes the components stored in the fields of the given component instance.
-
-
-
Method Detail
-
localizeComponents
public static void localizeComponents(com.vaadin.flow.component.Component component)
Localizes the components stored in the fields of the given component instance.- Parameters:
component- the component whose fields should be localized- See Also:
LocalizedHtmlLabel,LocalizedLabel,LocalizedPlaceholder,LocalizedText,LocalizedTitle
-
injectMessageProxies
public static void injectMessageProxies(com.vaadin.flow.component.Component component)
Inject message proxies into any appropriate fields of the given component.- Parameters:
component- the component using message proxies
-
-