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

com.github.fluorumlabs.disconnect.vaadin.mixins.HasArrayDataProviderMixin Maven / Gradle / Ivy

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

import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ArrayDataProviderMixin;
import com.github.fluorumlabs.disconnect.zero.component.Component;
import js.lang.Any;
import js.util.collections.Array;

import javax.annotation.Nullable;

public interface HasArrayDataProviderMixin,
		T extends Component>
		extends Component {
	/**
	 * An array containing the items which will be stamped to the column template
	 * instances.
	 */
	@Nullable
	default Array items() {
		return getNode().getItems();
	}

	/**
	 * An array containing the items which will be stamped to the column template
	 * instances.
	 */
	default T items(ITEM... items) {
		getNode().setItems(items);
		return (T) this;
	}

	/**
	 * An array containing the items which will be stamped to the column template
	 * instances.
	 */
	default T items(Array items) {
		getNode().setItems(items);
		return (T) this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy