Estimado Esteban,
Lo que veo que se destaca es:
"...If the model is a mutable object, in that it is legal (and sensible)
to modify it in place, then it is usual to treat it as a simple
<presenter> and create a class descended directly from Presenter itself.
If, on the other hand, the model is to be immutable then the presenter
should be implemented as a <valuePresenter>. ..."
En pocas palabras, te convendrá usar un ValuePresenter (que no
siempre resulta necesario subclasificar) cuando el modelo sabés que es
inmutable como en el caso de String, Date, Time, SystemColor, etc
Si tu modelo es un objeto que tiene buenas chances de ser
rediseñado, como por ejemplo MovimientoStock, etc. entonces te conviene
un presenter común y corriente.
I hope this helps,
Sebastián Sastre
ssastre@...
www.seaswork.com.ar
> -----Mensaje original-----
> De: Esteban A. Maringolo [mailto:eMaringolo@...]
> Enviado el: Lunes, 02 de Agosto de 2004 17:42
> Para: smalltalking@...
> Asunto: [objetos] [Dolphin] To ValuePresenter or not to ValuePresenter
>
>
> Hola:
>
> Estoy armando unos View-Presenters, para utilizar
> dentro de otros view-presenter, algo asi tipo "partes" o
> "controles" como se dice en otros lados.
>
> Mi duda viene con respecto a los valuePresenters, ya
> que no se si debo encararlos como subclases de
> ValuePresenter, o directamente desde Presenter.
>
> En el class comment de ValuePresenter o
> ValueDialogPresenter da una pista de cómo elegirlos, pero yo
> aún no termino de decidirme ya que no lo entiendo del todo bien.
>
> Saludos y gracias.
>
> --
> Esteban A. Maringolo
>
>
>
>
> Para retirarse del grupo,
> puede enviar un email a:
> smalltalking-unsubscribe@egroups.com
>
> Enlaces de Yahoo! Grupos
>
>
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.732 / Virus Database: 486 - Release Date: 29/07/2004
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.734 / Virus Database: 488 - Release Date: 04/08/2004