Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Pattern for Using Dialog screens

Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a Command pattern to seperate my user interface from my business logic. I will have quite a few dialog screens that will be triggered from the main frame. These Dialogs will in turn interact with the business layer and may need to be able to update the parent frame. I was considering just extending the Command pattern out another iteration and having the dialog classes conform to it.
Anyone have any better ideas or foresee any problems with that?
Thank you for you help.
Posts: 15815
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you elaborate a little more? From what I can remember about the Command pattern, it is used to implement some sort of undoable Action or Transaction. I've never heard it used to separate business and UI logic.
For UI-business logic separation, the Model-View-Controller (MVC) pattern comes to mind. Allen Holub ( also discusses an alternative to MVC (which he says is fundamentally flawed) in his articles about a "Visual-Proxy" pattern.
    Bookmark Topic Watch Topic
  • New Topic