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

com.vaadin.data.HasDataProvider 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.data;

import java.util.Collection;

import com.vaadin.data.provider.DataProvider;

/**
 * A generic interface for listing components that use a data provider for
 * showing data.
 * 

* A listing component should implement either this interface or * {@link HasFilterableDataProvider}, but not both. * * @author Vaadin Ltd. * * @param * the item data type * @since 8.0 * * @see HasFilterableDataProvider */ public interface HasDataProvider extends HasItems { /** * Sets the data provider for this listing. The data provider is queried for * displayed items as needed. * * @param dataProvider * the data provider, not null */ public void setDataProvider(DataProvider dataProvider); @Override public default void setItems(Collection items) { setDataProvider(DataProvider.ofCollection(items)); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy