org.topbraidcomposer.ui.layout
Class WidgetLayout

java.lang.Object
  extended by org.eclipse.swt.widgets.Layout
      extended by org.topbraidcomposer.ui.layout.WidgetLayout
Direct Known Subclasses:
VerticalLayout

public class WidgetLayout
extends org.eclipse.swt.widgets.Layout


Field Summary
 int bottomMargin
           
 int horizontalSpacing
           
 int leftMargin
           
 int numColumns
           
 int rightMargin
           
 int topMargin
           
 int verticalSpacing
           
 
Constructor Summary
WidgetLayout()
           
WidgetLayout(int numColumns)
           
 
Method Summary
protected  org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.widgets.Composite composite, int wHint, int hHint, boolean flushCache)
           
protected  boolean flushCache(org.eclipse.swt.widgets.Control control)
           
protected  void layout(org.eclipse.swt.widgets.Composite composite, boolean flushCache)
           
 void setMargin(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bottomMargin

public int bottomMargin

horizontalSpacing

public int horizontalSpacing

leftMargin

public int leftMargin

numColumns

public int numColumns

rightMargin

public int rightMargin

topMargin

public int topMargin

verticalSpacing

public int verticalSpacing
Constructor Detail

WidgetLayout

public WidgetLayout()

WidgetLayout

public WidgetLayout(int numColumns)
Method Detail

computeSize

protected org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.widgets.Composite composite,
                                                     int wHint,
                                                     int hHint,
                                                     boolean flushCache)
Specified by:
computeSize in class org.eclipse.swt.widgets.Layout

flushCache

protected boolean flushCache(org.eclipse.swt.widgets.Control control)
Overrides:
flushCache in class org.eclipse.swt.widgets.Layout

layout

protected void layout(org.eclipse.swt.widgets.Composite composite,
                      boolean flushCache)
Specified by:
layout in class org.eclipse.swt.widgets.Layout

setMargin

public void setMargin(int value)