Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AbstractAction = Command Pattern?

 
Lance Finney
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using subclasses of AbstractAction for my buttons and menuItems, and I was thinking about switching to the Command Pattern. However, the more I think about it, the more I wonder if I already have the Command pattern using my approach.
Essentially, AbstractAction serves the purpose of Command, and ActionPerformed served the purpose of execute().
Does this seems right?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic