ScrollPane+TwoWayScrollPane
Eddie Cottongim
cottonsqueak at earthlink.net
Fri Jul 4 19:05:55 UTC 2003
Does anyone else think these could use some factoring? At some point in the
past, TwoWay was copy and pasted from ScrollPane, and hence they share maybe
50% or more of the code. ScrollPane gets all the maintenance attention,
leaving TwoWay behind, even though they are very very similar.
My first approach would be to have TwoWaySP contain the union of the current
ScrollPane and TwoWaySP, and have ScrollPane simply disable the horizontal
scrollers. Any reason this isn't a good idea? It might not be the best OO -
usually subclasses add behavior to a base, not take away - but its pretty
simple.
Thanks for looking,
Eddie
More information about the Squeak-dev
mailing list
|