com.vaadin.flow.component.crud.
Class CrudI18nUpdatedEvent
All Implemented Interfaces:
Event fired to a crud grid when the internationalization object is changed.
This allows the grid to localize its content, most especially the
accessibility of the edit column.
ComponentUtil.addListener(myGrid, CrudI18nUpdatedEvent.class, event -> {
CrudI18n newI18n = event.getI18n();
// Localize an item in myGrid.
});
See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionCrudI18nUpdatedEvent
(Crud<?> source, boolean fromClient, CrudI18n i18n) Creates a new event using the given source and indicator whether the event originated from the client side or the server side.
-
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
CrudI18nUpdatedEvent
Creates a new event using the given source and indicator whether the event originated from the client side or the server side.
Parameters:
source
- the source componentfromClient
-true
if the event originated from the clienti18n
- the new i18n object
-
-
Method Details
-
getI18n
Gets the new i18n
Returns:
the new i18n
-