com.vaadin.ui.

Interface Grid.DetailsGenerator

  • All Superinterfaces:

    Serializable

    Enclosing class:

    Grid

    public static interface Grid.DetailsGenerator
    extends Serializable

    A callback interface for generating details for a particular row in Grid.

    Since:

    7.5.0

    Author:

    Vaadin Ltd

    See Also:

    NULL

    • Field Summary

      Fields
      Modifier and Type Field Description
      static Grid.DetailsGenerator NULL

      A details generator that provides no details

    • Method Summary

      All Methods
      Modifier and Type Method Description
      Component getDetails​(Grid.RowReference rowReference)

      This method is called for whenever a details row needs to be shown on the client.

    • Method Detail

      • getDetails

        Component getDetails​(Grid.RowReference rowReference)

        This method is called for whenever a details row needs to be shown on the client. Grid removes all of its references to details components when they are no longer displayed on the client-side and will re-request once needed again.

        Note: If a component gets generated, it may not be manually attached anywhere. The same details component can not be displayed for multiple different rows.

        Parameters:

        rowReference - the reference for the row for which to generate details

        Returns:

        the details for the given row, or null to leave the details empty.