public class TableColumnLayout extends AbstractColumnLayout
Layout
used to maintain
TableColumn
sizes in a Table
.
You can only add the Layout
to a container whose only child
is the Table
control you want the Layout
applied to. Don't
assign the layout directly the Table
LAYOUT_DATA
Constructor and Description |
---|
TableColumnLayout() |
Modifier and Type | Method and Description |
---|---|
protected int |
getColumnCount(Scrollable tableTree)
Get the number of columns for the receiver.
|
protected ColumnLayoutData |
getLayoutData(Scrollable tableTree,
int columnIndex)
Get the layout data for a column
|
protected void |
setColumnWidths(Scrollable tableTree,
int[] widths)
Set the widths of the columns.
|
protected void |
updateColumnData(Widget column)
Update the layout data for a column
|
computeSize, getColumnTrim, layout, setColumnData
flushCache
protected int getColumnCount(Scrollable tableTree)
getColumnCount
in class AbstractColumnLayout
tableTree
- the controlprotected void setColumnWidths(Scrollable tableTree, int[] widths)
setColumnWidths
in class AbstractColumnLayout
tableTree
- the controlwidths
- the widths of the columnprotected ColumnLayoutData getLayoutData(Scrollable tableTree, int columnIndex)
getLayoutData
in class AbstractColumnLayout
tableTree
- the controlcolumnIndex
- the column indexprotected void updateColumnData(Widget column)
AbstractColumnLayout
updateColumnData
in class AbstractColumnLayout
column
- the column
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.