Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [albireo-dev] SWT size/layout management

Gordon Hirsch wrote:
> I changed RelayoutExampleView to add more nesting. The current nesting is
> 
> parent
>    composite
>      leftComposite    <-- new
>        SWT label      <-- new
>        Swing Control
>      buttonList composite
> 
> With the default controlResized() implementation (getParent().layout()) 
> the original problem with "..." is back again. The solution is to 
> override controlResized() to layout the grandparent instead of the parent.

Yes, this is perfectly understandable that here one needs to layout
the grandparent.

> it's my 
> strong belief that there is no implementation of this method that is 
> good enough to serve as a default. It would be better to make the method 
> abstract so that all clients are clearly aware that they need to decide 
> how and when to layout.

I agree. If you don't beat me to it, I will do it.

Bruno


Back to the top