Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Talk:Design Pattern for Java ME Canvas based applications

From Wiki
Jump to: navigation, search

BaseCanvas is tightly coupled to class SplashScreen even though its only accessed by via an abstract interface CanvasScreen. This is counter productive as it transforms the implementation of Strategy pattern to a very simple Wrapper implementation.

Suggested Solution:

  • Please provide Getter/Setting methods to member variable cs.
  • Make member variable 'cs' private.
  • Please check for null while invoking the stratergy assigned to 'cs'.
  • Making the getter/setters static and accessible outside the package will make it easily accessible from other classes, and would save the developer from task of sharing the instance of BaseCanvas throughout the code.
  • Since there will only be a single instance of BaseCanvas hence application of singleton pattern is recommended.

22 Sep
Article Review by vkmunjpara (20090922)

This article solves the problem of flicker when anybody redirects from one form to any other form.

This article is good explained with good example.Self generated BaseCanvas class is good explained.and solution for this problem is also explained with brief.


Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.