com.vaadin.v7.client.widget.grid.DetailsGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-compatibility-client Show documentation
Show all versions of vaadin-compatibility-client Show documentation
Vaadin 7 compatibility package for Vaadin 8
/*
* Copyright (C) 2000-2024 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.v7.client.widget.grid;
import com.google.gwt.user.client.ui.Widget;
/**
* A callback interface for generating details for a particular row in Grid.
*
* @since 7.5.0
* @author Vaadin Ltd
*/
public interface DetailsGenerator {
/** A details generator that provides no details. */
public static final DetailsGenerator NULL = new DetailsGenerator() {
@Override
public Widget getDetails(int rowIndex) {
return null;
}
};
/**
* This method is called for whenever a new details row needs to be
* generated.
*
* @param rowIndex
* the index of the row for which to generate details
* @return the details for the given row, or null
to leave the
* details empty.
*/
Widget getDetails(int rowIndex);
}