M
Moiristo
I am creating an app in Echo2 (what strongly resembles swing), and I was
wondering what would be a clean implementation for handling actions in
this app. Now, when someone clicks a button, I usually tend to create an
anonymous class, because then I have all displayed components available
that I need. I think however that this often isn't a nice way to do it.
Other possibilities are for example an inner class (actionlistener), or
even a separate class. How do I choose between these three approaches? I
think I forgot because my previous app was in JSF
.
wondering what would be a clean implementation for handling actions in
this app. Now, when someone clicks a button, I usually tend to create an
anonymous class, because then I have all displayed components available
that I need. I think however that this often isn't a nice way to do it.
Other possibilities are for example an inner class (actionlistener), or
even a separate class. How do I choose between these three approaches? I
think I forgot because my previous app was in JSF