Could someone post a sample of implementing the MVC pattern?
UI Event management is the thing I'm interested in most but a code snippet of a demo application that doesn't do anything except demonstrate MVC would be great.
I'm seeing other samples of MVC using AWT on the web but they're no good for BB development, especially in the UI event handling area.
Could someone post a sample of implementing the MVC pattern?
UI Event management is the thing I'm interested in most but a code snippet of a demo application that doesn't do anything except demonstrate MVC would be great.
I'm seeing other samples of MVC using AWT on the web but they're no good for BB development, especially in the UI event handling area.
Thanks
I want to ask the same favor. Anyone can please give advice on MVC pattern on blackberry apps? Thank you in advance!
mvc means model - view - controller.
if you want to develop strict you have to create controller classes that handle all stuff like navigationclick, keychar etc.
usually you interleave view and controller as mainscreen implements the event callbacks like navigation click etc.
i externalize all controlling that is not UI related.
As other's have said, MVC is a design/architectual pattern that is independent of languages or frameworks. All Object Oriented languages make it simple to separate the Model (Data Storage), View (UI or Display) and Controller (Logic) from one another.
There are a number of books, tutorials and videos available to help you understand the concept. From there, it's just a matter of applying the concept to your project.