Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

Any tutorial for blackberry which follow MVC

Hello 

i want to follow MVC architecture in blackberry .is there any tutorial.

 

how to implement list field using MVC .i want to make a project with mvc arctiecture .please provide me 

some example and 

Please use plain text.
Developer
simon_hain
Posts: 16,201
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Any tutorial for blackberry which follow MVC

MVC is a very basic design principle, i don't think there is any sample dedicated to it.
as far as i remember not all samples adhere to it, maybe you take a look around the more complex samples to check them.

BB java kind of mixes MVC usually as the display classes (screen) also have a lot of controller functionality as they implement the listener interfaces.

we have a service registry class where we register all kind of services that we use from the view classes to have a better modularity, but a very strict MVC would not be benefical to a random developer looking at our code, so we play it rather loose.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

Re: Any tutorial for blackberry which follow MVC

Please provide me simple or complex example which usinfd mVC architecture .

 

 

Thanks

Please use plain text.
Developer
simon_hain
Posts: 16,201
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Any tutorial for blackberry which follow MVC

you could take this one, for desktop java:
http://www.codeproject.com/Articles/25057/Simple-Example-of-MVC-Model-View-Controller-Design

as MVC is a design pattern there are no differences between platforms, so you can use desktop java to "learn" it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.