All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.flow.component.crud.CrudI18nUpdatedEvent Maven / Gradle / Ivy

There is a newer version: 24.4.12
Show newest version
/**
 * Copyright 2000-2024 Vaadin Ltd.
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See {@literal } for the full
 * license.
 */
package com.vaadin.flow.component.crud;

import com.vaadin.flow.component.ComponentEvent;

/**
 * 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.
* });
*
*/ public class CrudI18nUpdatedEvent extends ComponentEvent> { private final CrudI18n i18n; /** * Creates a new event using the given source and indicator whether the * event originated from the client side or the server side. * * @param source * the source component * @param fromClient * true if the event originated from the client * @param i18n * the new i18n object */ public CrudI18nUpdatedEvent(Crud source, boolean fromClient, CrudI18n i18n) { super(source, fromClient); this.i18n = i18n; } /** * Gets the new i18n * * @return the new i18n */ public CrudI18n getI18n() { return i18n; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy