给继承BaseBillUI的子类添加afterEdit方法

BaseBillUI类自己本身并没有实现BillEditListener,所以需要通过重写createCardManager()方法来实现

 

public class ClientUI extends BaseBillUI<BillVO, ClientUI>
    protected CardManager<T> createCardManager() {
	return new CardManager<T>() {
	    public void afterEdit(BillEditEvent e) {
		afterEdit2(e);
	    }
	};
    }

    public void afterEdit2(BillEditEvent e) {
	//your code 
    }
}

 

 

 

 

你可能感兴趣的:(AFTER)