I try to work with the MVP Passive View pattern for the first time. I get the basics but some small things I still don't understand.
My example : Imagine a simple view containing a textbox, a button and two labels. When the user clicks the button the text inside the textbox shall be shown in both labels.
Now I have 2 possibilities.
Make a small view interface with the event ButtonClicked, a method GetTextBoxContent and a method SetLabelContents. The presenter then subscribes to the event and handles it by calling the described methods. Here the presenter does not know that there are multiple labels. It just calls the set method once and is done. Therefore the views needs to know how to handle it. Is that okay for the passive view pattern?
Make a big interface with the event ButtonClicked, the methods GetTextBoxContent, SetLabel1 and SetLabel2. The presenter would again subscribe to the event, call GetTextBoxContent and then call each set label method separately. This way the view does not know about having multiple labels and the presenter contains that logic.
Which way is correct / better?
Thanks ob advance!