Class CrudI18nUpdatedEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Crud<?>>
com.vaadin.flow.component.crud.CrudI18nUpdatedEvent
All Implemented Interfaces:
Serializable

public class CrudI18nUpdatedEvent extends com.vaadin.flow.component.ComponentEvent<Crud<?>>
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

    Constructors
    Constructor
    Description
    CrudI18nUpdatedEvent(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

    Modifier and Type
    Method
    Description
    Gets the new i18n

    Methods inherited from class com.vaadin.flow.component.ComponentEvent

    getSource, isFromClient, unregisterListener

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CrudI18nUpdatedEvent

      public CrudI18nUpdatedEvent(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.
      Parameters:
      source - the source component
      fromClient - true if the event originated from the client
      i18n - the new i18n object
  • Method Details

    • getI18n

      public CrudI18n getI18n()
      Gets the new i18n
      Returns:
      the new i18n