Class GridColumnLayout
java.lang.Object
org.eclipse.swt.widgets.Layout
org.eclipse.jface.layout.AbstractColumnLayout
org.eclipse.nebula.jface.gridviewer.GridColumnLayout
public class GridColumnLayout
extends org.eclipse.jface.layout.AbstractColumnLayout
The GridColumnLayout is the
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.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GridColumnLayout() -
Method Summary
Modifier and Type Method Description protected intgetColumnCount(org.eclipse.swt.widgets.Scrollable tableTree)(package private) org.eclipse.swt.widgets.CompositegetComposite(org.eclipse.swt.widgets.Widget column)protected org.eclipse.jface.viewers.ColumnLayoutDatagetLayoutData(org.eclipse.swt.widgets.Scrollable tableTree, int columnIndex)protected voidsetColumnWidths(org.eclipse.swt.widgets.Scrollable tableTree, int[] widths)protected voidupdateColumnData(org.eclipse.swt.widgets.Widget column)
-
Constructor Details
-
GridColumnLayout
public GridColumnLayout()
-
-
Method Details
-
getColumnCount
protected int getColumnCount(org.eclipse.swt.widgets.Scrollable tableTree)- Specified by:
getColumnCountin classorg.eclipse.jface.layout.AbstractColumnLayout
-
setColumnWidths
protected void setColumnWidths(org.eclipse.swt.widgets.Scrollable tableTree, int[] widths)- Specified by:
setColumnWidthsin classorg.eclipse.jface.layout.AbstractColumnLayout
-
getLayoutData
protected org.eclipse.jface.viewers.ColumnLayoutData getLayoutData(org.eclipse.swt.widgets.Scrollable tableTree, int columnIndex)- Specified by:
getLayoutDatain classorg.eclipse.jface.layout.AbstractColumnLayout
-
getComposite
org.eclipse.swt.widgets.Composite getComposite(org.eclipse.swt.widgets.Widget column) -
updateColumnData
protected void updateColumnData(org.eclipse.swt.widgets.Widget column)- Specified by:
updateColumnDatain classorg.eclipse.jface.layout.AbstractColumnLayout
-