MVP strategy/perspective
Posted by Shaping-3 on Feb 09, 2005; 6:28am
URL: https://forum.world.st/MVP-strategy-perspective-tp3372971.html
I have a top level MyPresenter subclassing Presenter. It has buttons and a
pluggable subPresenter. Some of the buttons plug a number of different but
similar Presenters into a fixed area in the window. Other buttons stimulate
the current Presenter. All of these subPresenters respond in similar ways
to MyPresenter's buttons. I'm assuming then that MyPresenter would
dynamically assign different subPresenters to a currentPresenter instance
variable in MyPresenter, and at the same time wire MyPresenter's button
events to the corresponding ones on the subPresenter. Is this the best way?
The Presenters have various uniquely arranged alphanumeric text fields. I
will have for each Presenter defaultModels where state is kept, and matching
Views for each Presenter, because field arrangements are unique.
I don't see, off-hand, what view I should place in the VC to accommodate the
current subPresenter.
Shaping