Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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 quite ...

  1. #1
    Malte Persike Guest

    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



  2. #2
    EventHelix.com Guest

    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



Latest Article

Network Security Risk Assessment and Measurement

Read More...