Jump to: navigation, search

15 Layout

Back to RWTOverview

Layout

We use the exact same layout code (there are some minimal differences) as SWT does. Layout behavior is identical. Please create a bug report if you experience differences in layouting between RWT and SWT.

There is an implementation gap around the calculation of the preferred size right now, see 4._Control_Fundamentals.#Preferred_Size.

When Are Layouts Invoked?

The implementation of when layouts are invoked is preliminary in RWT. It does the job right now but expect some changes.

Class Layout

identical

Layout Data

identical

Class FillLayout

identical

Classes RowLayout and RowData

identical

Class GridLayout

identical

Defining the Grid

identical

Class FormLayout

identical

Assigning Width and Height Hints

identical

Which Layout Should I Use?

see the SWT book ;-)

Forcing a Layout

identical

Forcing Controls to Wrap

identical