com.vaadin.ui
Interface Grid.DetailsGenerator

All Superinterfaces:
java.io.Serializable
Enclosing class:
Grid

public static interface Grid.DetailsGenerator
extends java.io.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
static Grid.DetailsGenerator NULL
          A details generator that provides no details
 
Method Summary
 Component getDetails(Grid.RowReference rowReference)
          This method is called for whenever a new details row needs to be generated.
 

Field Detail

NULL

static final Grid.DetailsGenerator NULL
A details generator that provides no details

Method Detail

getDetails

Component getDetails(Grid.RowReference rowReference)
This method is called for whenever a new details row needs to be generated.

Note: If a component gets generated, it may not be manually attached anywhere, nor may it be a reused instance – each invocation of this method should produce a unique and isolated component instance. Essentially, this should mostly be a self-contained fire-and-forget method, as external references to the generated component might cause unexpected behavior.

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.


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.