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

com.vaadin.v7.client.widget.grid.DetailsGenerator Maven / Gradle / Ivy

There is a newer version: 8.27.3
Show newest version
/*
 * 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy