package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.vendabilheteidoso;

import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;

import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;

public class EventListenerRemoverItemListBox<T> implements EventListener {
	
	private MyListbox listBoxARemover;

	public EventListenerRemoverItemListBox(MyListbox listBoxARemover) {
		this.listBoxARemover = listBoxARemover;
	}

	@SuppressWarnings("unchecked")
	@Override
	public void onEvent(Event arg0) throws Exception {
		listBoxARemover.removeItem((T) listBoxARemover.getSelected());
	}

}
