Package org.eclipse.jface.layout
Class TableColumnLayout
java.lang.Object
org.eclipse.swt.widgets.Layout
org.eclipse.jface.layout.AbstractColumnLayout
org.eclipse.jface.layout.TableColumnLayout
The TableColumnLayout is the 
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
 
- Since:
- 3.3
- 
Field SummaryFields inherited from class org.eclipse.jface.layout.AbstractColumnLayoutLAYOUT_DATA
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new table column layout.TableColumnLayout(boolean adjustForScrollBar) Creates a new table column layout.
- 
Method SummaryModifier and TypeMethodDescriptionprotected intgetColumnCount(Scrollable tableTree) Get the number of columns for the receiver.protected ColumnLayoutDatagetLayoutData(Scrollable tableTree, int columnIndex) Get the layout data for a columnprotected voidsetColumnWidths(Scrollable tableTree, int[] widths) Set the widths of the columns.protected voidupdateColumnData(Widget column) Update the layout data for a columnMethods inherited from class org.eclipse.jface.layout.AbstractColumnLayoutcomputeSize, getColumnTrim, layout, setColumnDataMethods inherited from class org.eclipse.swt.widgets.LayoutflushCache
- 
Constructor Details- 
TableColumnLayoutpublic TableColumnLayout()Creates a new table column layout.
- 
TableColumnLayoutpublic TableColumnLayout(boolean adjustForScrollBar) Creates a new table column layout.- Parameters:
- adjustForScrollBar-- trueif the layout should reserve space for the vertical scroll bar
- Since:
- 3.12
 
 
- 
- 
Method Details- 
getColumnCountGet the number of columns for the receiver.- Specified by:
- getColumnCountin class- AbstractColumnLayout
- Parameters:
- tableTree- the control
- Returns:
- the number of columns
- Since:
- 3.5
 
- 
setColumnWidthsSet the widths of the columns.- Specified by:
- setColumnWidthsin class- AbstractColumnLayout
- Parameters:
- tableTree- the control
- widths- the widths of the column
- Since:
- 3.5
 
- 
getLayoutDataGet the layout data for a column- Specified by:
- getLayoutDatain class- AbstractColumnLayout
- Parameters:
- tableTree- the control
- columnIndex- the column index
- Returns:
- the layout data, might not null
- Since:
- 3.5
 
- 
updateColumnDataDescription copied from class:AbstractColumnLayoutUpdate the layout data for a column- Specified by:
- updateColumnDatain class- AbstractColumnLayout
- Parameters:
- column- the column
- Since:
- 3.5
 
 
-