Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

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

Copyright © Eclipse Foundation, Inc. All Rights Reserved.