public class GridColumnLayout
extends org.eclipse.jface.layout.AbstractColumnLayout
Layout
used to maintain
GridColumn
sizes in a Grid
.
You can only add the Layout
to a container whose only child
is the Grid
control you want the Layout
applied to. Don't
assign the layout directly the Grid
This class was copied from TableColumnLayout
and adapted to Grid
.
Constructor and Description |
---|
GridColumnLayout() |
Modifier and Type | Method and Description |
---|---|
protected int |
getColumnCount(org.eclipse.swt.widgets.Scrollable tableTree) |
(package private) org.eclipse.swt.widgets.Composite |
getComposite(org.eclipse.swt.widgets.Widget column) |
protected org.eclipse.jface.viewers.ColumnLayoutData |
getLayoutData(org.eclipse.swt.widgets.Scrollable tableTree,
int columnIndex) |
protected void |
setColumnWidths(org.eclipse.swt.widgets.Scrollable tableTree,
int[] widths) |
protected void |
updateColumnData(org.eclipse.swt.widgets.Widget column) |
protected int getColumnCount(org.eclipse.swt.widgets.Scrollable tableTree)
getColumnCount
in class org.eclipse.jface.layout.AbstractColumnLayout
protected void setColumnWidths(org.eclipse.swt.widgets.Scrollable tableTree, int[] widths)
setColumnWidths
in class org.eclipse.jface.layout.AbstractColumnLayout
protected org.eclipse.jface.viewers.ColumnLayoutData getLayoutData(org.eclipse.swt.widgets.Scrollable tableTree, int columnIndex)
getLayoutData
in class org.eclipse.jface.layout.AbstractColumnLayout
org.eclipse.swt.widgets.Composite getComposite(org.eclipse.swt.widgets.Widget column)
protected void updateColumnData(org.eclipse.swt.widgets.Widget column)
updateColumnData
in class org.eclipse.jface.layout.AbstractColumnLayout