/**
 * ISearchFieldProvider.java
 * Created May 20, 2008
 * Copyright (c) TANDBERG Television 2007-2008
 */
package com.tandbergtv.workflow.web.page;

import java.util.Collection;

/**
 * The search field provider allows dynamic creation and display of fields on the search page. This
 * is useful when the fields to be displayed can change based on the selection of another field.
 * 
 * @author Sahil Verma
 */
public interface ISearchFieldProvider {
	
	/**
	 * Returns the set of fields that need to be displayed on the search page
	 * 
	 * @return
	 */
	Collection<Field> getFields();
	
	/**
	 * Returns the data provider for this field
	 * 
	 * @param field
	 * @return
	 */
	ISearchFieldDataProvider getDataProvider(Field field);
}
