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 details row needs to be shown on the client.
 

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 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.


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