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

com.airlenet.repo.domain.Tree Maven / Gradle / Ivy

The newest version!
package com.airlenet.repo.domain;

import java.util.List;
import java.util.Set;
import java.util.function.Consumer;

public interface Tree> {

	List> getRoots();

	Set getChecked();

	void setChecked(Set checked);

	boolean isCheckable();

	boolean isExpandAll();

	void makeCheckable();

	void makeExpandAll();

	Tree setTextProperty(String textProperty);

	Tree setIconClsProperty(String iconClsProperty);

	static void visitNodes(List> nodes, Consumer> consumer) {
		if (nodes != null) {
			nodes.forEach((node) -> {
				consumer.accept(node);
				visitNodes(node.getChildren(), consumer);
			});
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy