Class TreeColumnLayout
Layout used to maintain TreeColumn sizes in a
 Tree.
 
 You can only add the Layout to a container whose only
 child is the Tree control you want the Layout applied to.
 Don't assign the layout directly the Tree
 
- Since:
- 3.3
- 
Field SummaryFields inherited from class org.eclipse.jface.layout.AbstractColumnLayoutLAYOUT_DATA
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new tree column layout.TreeColumnLayout(boolean adjustForScrollBar) Creates a new tree column layout.
- 
Method SummaryModifier and TypeMethodDescriptionprotected intgetColumnCount(Scrollable tree) Get the number of columns for the receiver.protected ColumnLayoutDatagetLayoutData(Scrollable tableTree, int columnIndex) Get the layout data for a columnprotected voidLays out the children of the specified composite according to this layout.protected voidsetColumnWidths(Scrollable tree, 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, setColumnDataMethods inherited from class org.eclipse.swt.widgets.LayoutflushCache
- 
Constructor Details- 
TreeColumnLayoutpublic TreeColumnLayout()Creates a new tree column layout.
- 
TreeColumnLayoutpublic TreeColumnLayout(boolean adjustForScrollBar) Creates a new tree column layout.- Parameters:
- adjustForScrollBar-- trueif the layout should reserve space for the vertical scroll bar
- Since:
- 3.12
 
 
- 
- 
Method Details- 
layoutDescription copied from class:LayoutLays out the children of the specified composite according to this layout.This method positions and sizes the children of a composite using the layout algorithm encoded by this layout. Children of the composite are positioned in the client area of the composite. The position of the composite is not altered by this method. When the flush cache hint is true, the layout is instructed to flush any cached values associated with the children. Typically, a layout will cache the preferred sizes of the children to avoid the expense of computing these values each time the widget is laid out. When layout is triggered explicitly by the programmer the flush cache hint is true. When layout is triggered by a resize, either caused by the programmer or by the user, the hint is false. - Overrides:
- layoutin class- AbstractColumnLayout
- Parameters:
- composite- a composite widget using this layout
- flushCache-- truemeans flush cached layout values
 
- 
getColumnCountGet the number of columns for the receiver.- Specified by:
- getColumnCountin class- AbstractColumnLayout
- Parameters:
- tree- the control
- Returns:
- the number of columns
- Since:
- 3.5
 
- 
setColumnWidthsSet the widths of the columns.- Specified by:
- setColumnWidthsin class- AbstractColumnLayout
- Parameters:
- tree- 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
 
- 
updateColumnDataUpdate the layout data for a column- Specified by:
- updateColumnDatain class- AbstractColumnLayout
- Parameters:
- column- the column
- Since:
- 3.5
 
 
-