package org.minimalj.frontend.toolkit;

import java.util.List;


public interface ITable<T> extends IComponent {

	public void setObjects(List<T> objects);

	// TODO
	// public void setObjects(List<?> ids, Lookup<T> lookup);
	// 
	// public static interface Lookup<U> {
	//	public U lookup(long id);
	// }
	
	public void setClickListener(TableActionListener<T> listener);
	public void setDeleteListener(TableActionListener<T> listener);
	public void setInsertListener(InsertListener listener);
	public void setFunctionListener(int function, TableActionListener<T> listener);
	
	public static interface TableActionListener<U> {
		public void action(U selectedObject, List<U> selectedObjects);
	}
	
	public static interface InsertListener {
		public void action();
	}

}

@@ -163,166 +163,8 @@
 %0D%0A%0D%0A
-%09// TODO%0D%0A%09// public void setObjects(List%3C?%3E ids, Lookup%3CT%3E lookup);%0D%0A%09// %0D%0A%09// public static interface Lookup%3CU%3E %7B%0D%0A%09//%09public U lookup(long id);%0D%0A%09// %7D%0D%0A%09%0D%0A
 %09pub

remove dead comment