Exforsys

Online Training

Selections in the model-view-presenter framework

This is a discussion on Selections in the model-view-presenter framework within the Software Patterns forums, part of the Testing category; Hello everybody. Since I've been pointed to the MVP framework by a gentle user in this newsgroup I took ...


Go Back   Exforsys > Testing > Software Patterns

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-13-2003, 12:09 AM
Malte Persike
Guest
 
Posts: n/a
Selections in the model-view-presenter framework

Hello everybody.

Since I've been pointed to the MVP framework by a gentle user in this
newsgroup I took quite some time to study this rather complex pattern.
Unfortunately, all the references I came across tend to demonstrate
MVP by devising simple example implementations which naturally cannot
cover all the details of the pattern.

My question adresses the issue of selections within MVP. Consider an
audioplayer that can play a number of songs in a row and provides a
"repeat A-B" functionality where one can play a specified part of a
song.
In this case, there exist at least 3 different selections upon the
model: a) the current song, b) the current playback position and c)
the range selection.

How should such a variety of selections be implemented in MVP - as one
selection with three different properties or as three selections,
handled by the presenter?

Kind regards,
Malte

---

The above e-mail address is not valid. To
contact me, please use my real e-mail address:

malte AT t DASH online DOT de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-17-2003, 10:31 PM
EventHelix.com
Guest
 
Posts: n/a
Re: Selections in the model-view-presenter framework

The three selections could be stored as three different variables
in the model.

For a simple implementation of the MVP framework have a look at MFC.
In MFC, the CDocument class corresponds to the model.

Sandeep
--
http://www.EventHelix.com/EventStudio
EventStudio 2.0 - Generate Sequence Diagrams and Use Case Diagrams in PDF
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:27 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.