/**
 * 
 */
package es.dalocar.facturamas.swt.handlers;

import org.eclipse.swt.widgets.Widget;

/**
 * A Widget Handler. Binds the event listeners and proxies the business logic through the
 * GUI.
 * 
 * @author dlopez
 *
 */
public interface Handler {

	/**
	 * Run under the parent Widget
	 * @param parent
	 */
	void run(Widget parent);
	

	/**
	 * Run under the parent Widget, and handle the specified data
	 * @param parent The parent Widget
	 * @param data the data, usually a Java Bean or a Collection, to be handled
	 */
	void run(Widget parent, Object data);
	
	
	
	
}
