Class AWTLayout

Direct Known Subclasses:
BorderLayout

public abstract class AWTLayout extends Layout
Superclass for all the AWT layouts ported to SWT.
  • Field Details

    • KEY_PREFERRED_SIZE

      public static final String KEY_PREFERRED_SIZE
      Key under which an eventual preferred size (set with setPreferredSize) is stored as a user data in the SWT control.
      See Also:
  • Constructor Details

    • AWTLayout

      public AWTLayout()
  • Method Details

    • getPreferredSize

      protected Point getPreferredSize(Control control, int wHint, int hHint, boolean changed)
      Gets the preferred size of a component. If a preferred size has been set with setPreferredSize, returns it, otherwise returns the component computed preferred size.