Re: MVP multiple buttons/fields

2010-07-12 Thread Gal Dolber
Start moving the code of addStock to the view. Try not to use widget code on the presenter. Then create an interface and implement in the presenter: class SomeViewHandlers { void deleteStock(Stock code); } You already have the deleteStock method... so just add "implements SomeViewHandlers" to

MVP multiple buttons/fields

2010-07-12 Thread Fendy Tjin
Hi, I would like to elegantly code my application. I am rather confused as to how to code for multiple button/field. such as: multiple delete buttons, or multiple update text fields I have a working sample of it, however it is very messy and I would like to know if there is any other way to do it