• Post Reply Bookmark Topic Watch Topic
  • New Topic

Story of Inner classes  RSS feed

 
Mohammed Fayaz
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
After I went through the affair of objects with innerclass(s) I took up this work....
I hav a EventTable which keeps all Events. Each Event has a single Command. Their are several types of Commands.

I first made a 'EventTable' class (made it single ton, to keep only one Table), since EventTable Keeps all events I put 'Event' class as inner (member) class in this table. Then defined an new type 'Command' to which all my commands belong (like comand1, command2...). To cook up a specific command I now want to hav a 'CommandFactory' (which I think shld be a static).

I am now asking you to share your view on wat I hav done is good or is their some thing better to handel the situation.
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you are trying to do. What are the events and commands for? Are they for Swing? Why do you need to store them? If not for Swing, what are the events and commands for?

-- Kaydell
 
Neerav Narielwala
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even i am not sure about your point. Please explain in detail
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!