swing2swt.layout
Class GridLayout
java.lang.Object
org.eclipse.swt.widgets.Layout
swing2swt.layout.AWTLayout
swing2swt.layout.GridLayout
public class GridLayout
- extends AWTLayout
Port of AWT GridLayout to SWT.
Method Summary |
protected org.eclipse.swt.graphics.Point |
computeSize(org.eclipse.swt.widgets.Composite composite,
int wHint,
int hHint,
boolean flushCache)
|
int |
getColumns()
|
int |
getHgap()
|
int |
getRows()
|
int |
getVgap()
|
protected void |
layout(org.eclipse.swt.widgets.Composite composite,
boolean flushCache)
|
void |
setColumns(int cols)
|
void |
setHgap(int hgap)
|
void |
setRows(int rows)
|
void |
setVgap(int vgap)
|
Methods inherited from class org.eclipse.swt.widgets.Layout |
flushCache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridLayout
public GridLayout()
GridLayout
public GridLayout(int rows,
int columns)
GridLayout
public GridLayout(int rows,
int columns,
int hgap,
int vgap)
getColumns
public int getColumns()
getHgap
public int getHgap()
getRows
public int getRows()
getVgap
public int getVgap()
setColumns
public void setColumns(int cols)
setHgap
public void setHgap(int hgap)
setRows
public void setRows(int rows)
setVgap
public void setVgap(int vgap)
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
layout
protected void layout(org.eclipse.swt.widgets.Composite composite,
boolean flushCache)
- Specified by:
layout
in class org.eclipse.swt.widgets.Layout