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

com.github.fluorumlabs.disconnect.vaadin.dataproviders.GridDataProvider Maven / Gradle / Ivy

The newest version!
package com.github.fluorumlabs.disconnect.vaadin.dataproviders;

import com.github.fluorumlabs.disconnect.vaadin.types.Filter;
import com.github.fluorumlabs.disconnect.vaadin.types.SortOrder;
import js.lang.Any;
import js.util.collections.Array;
import org.teavm.jso.JSFunctor;
import org.teavm.jso.JSProperty;

import javax.annotation.Nullable;

/**
 * Created by Artem Godin on 2/4/2020.
 */
@JSFunctor
@FunctionalInterface
public interface GridDataProvider extends Any {
	void provide(Params params, DataProviderCallback callback);

	interface Params extends Any {
		@JSProperty
		int getPage();

		@JSProperty
		int getPageSize();

		@JSProperty
		Array getFilters();

		@JSProperty
		Array getSortOrders();

		@Nullable
		@JSProperty
		ITEM getParentItem();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy