C
Christian Bongiorno
I am a fan of Inner class. Names Inner classes that is. The un-named
kind are not fit to see the light of day.
Ok, that being said, I find myself in a situation where I have
numerous Inner support classes, all of them are related to events,
JTables and such that exist in my display. (the current working outter
class).
However, having 15 inner classes has become tedious to manage at times
and ties your hands slightly (for example, you can't use static in an
inner class if you want a singleton model).
The closest alternative I could think of was to put them in their own
package and then have "package" access to most of those methods.
However, doing that forces me to grant public access to some of the
members in a class that would otherwise be private since, they are
useless outside of my Main panel window.
I am just curious as to what the current consensus is on this topic.
From an OO standpoint? From a supportability standpoint? Cleanliness?
Access standpoint?
Christian
kind are not fit to see the light of day.
Ok, that being said, I find myself in a situation where I have
numerous Inner support classes, all of them are related to events,
JTables and such that exist in my display. (the current working outter
class).
However, having 15 inner classes has become tedious to manage at times
and ties your hands slightly (for example, you can't use static in an
inner class if you want a singleton model).
The closest alternative I could think of was to put them in their own
package and then have "package" access to most of those methods.
However, doing that forces me to grant public access to some of the
members in a class that would otherwise be private since, they are
useless outside of my Main panel window.
I am just curious as to what the current consensus is on this topic.
From an OO standpoint? From a supportability standpoint? Cleanliness?
Access standpoint?
Christian