swing2swt.layout
Class AWTLayout

java.lang.Object
  extended by org.eclipse.swt.widgets.Layout
      extended by swing2swt.layout.AWTLayout
Direct Known Subclasses:
GridLayout

public abstract class AWTLayout
extends org.eclipse.swt.widgets.Layout

Superclass for all the AWT layouts ported to SWT.


Field Summary
static java.lang.String KEY_PREFERRED_SIZE
          Key under which an eventual preferred size (set width setPreferredSize) is stored as a user data in the SWT control.
 
Constructor Summary
AWTLayout()
           
 
Method Summary
protected  org.eclipse.swt.graphics.Point getPreferredSize(org.eclipse.swt.widgets.Control control, int wHint, int hHint, boolean changed)
          Gets the preferred size of a component.
 
Methods inherited from class org.eclipse.swt.widgets.Layout
computeSize, flushCache, layout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_PREFERRED_SIZE

public static final java.lang.String KEY_PREFERRED_SIZE
Key under which an eventual preferred size (set width setPreferredSize) is stored as a user data in the SWT control.

See Also:
Constant Field Values
Constructor Detail

AWTLayout

public AWTLayout()
Method Detail

getPreferredSize

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