?
-
I have a method
public void setGap(Gap gap) {
...
doLayout();
}
After calling the method I then do a static call to Gap.setXXX(..).
This means that I have to call setGap(gap) again because I want
"doLayout()" to be called since my setXXX(..) cannot call doLayout() due
to Gap not containing a reference to the class that has doLayout().
Is this good design?
public void setGap(Gap gap) {
...
doLayout();
}
After calling the method I then do a static call to Gap.setXXX(..).
This means that I have to call setGap(gap) again because I want
"doLayout()" to be called since my setXXX(..) cannot call doLayout() due
to Gap not containing a reference to the class that has doLayout().
Is this good design?