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 theLayout
used to maintainGridColumn
sizes in aGrid
.You can only add the
Layout
to a container whose only child is theGrid
control you want theLayout
applied to. Don't assign the layout directly theGrid
This class was copied from
TableColumnLayout
and adapted toGrid
.
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
IS_GTK
-
Constructor Summary
Constructors Constructor Description GridColumnLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getColumnCount
protected int getColumnCount(org.eclipse.swt.widgets.Scrollable tableTree)
- Specified by:
getColumnCount
in classorg.eclipse.jface.layout.AbstractColumnLayout
-
setColumnWidths
protected void setColumnWidths(org.eclipse.swt.widgets.Scrollable tableTree, int[] widths)
- Specified by:
setColumnWidths
in classorg.eclipse.jface.layout.AbstractColumnLayout
-
getLayoutData
protected org.eclipse.jface.viewers.ColumnLayoutData getLayoutData(org.eclipse.swt.widgets.Scrollable tableTree, int columnIndex)
- Specified by:
getLayoutData
in 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:
updateColumnData
in classorg.eclipse.jface.layout.AbstractColumnLayout
-
-