|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.widgets.Layout
org.eclipse.jface.layout.AbstractColumnLayout
org.eclipse.jface.layout.TreeColumnLayout
public class TreeColumnLayout
The TreeColumnLayout is the 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
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.layout.AbstractColumnLayout |
|---|
LAYOUT_DATA |
| Constructor Summary | |
|---|---|
TreeColumnLayout()
|
|
| Method Summary | |
|---|---|
protected int |
getColumnCount(Scrollable tree)
Get the number of columns for the receiver. |
protected ColumnLayoutData |
getLayoutData(Scrollable tableTree,
int columnIndex)
Get the layout data for a column |
protected void |
layout(Composite composite,
boolean flushCache)
Lays out the children of the specified composite according to this layout. |
protected void |
setColumnWidths(Scrollable tree,
int[] widths)
Set the widths of the columns. |
protected void |
updateColumnData(Widget column)
Update the layout data for a column |
| Methods inherited from class org.eclipse.jface.layout.AbstractColumnLayout |
|---|
computeSize, getColumnTrim, setColumnData |
| Methods inherited from class org.eclipse.swt.widgets.Layout |
|---|
flushCache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeColumnLayout()
| Method Detail |
|---|
protected void layout(Composite composite,
boolean flushCache)
LayoutThis 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.
layout in class AbstractColumnLayoutcomposite - a composite widget using this layoutflushCache - true means flush cached layout valuesprotected int getColumnCount(Scrollable tree)
getColumnCount in class AbstractColumnLayouttree - the control
protected void setColumnWidths(Scrollable tree,
int[] widths)
setColumnWidths in class AbstractColumnLayouttree - the controlwidths - the widths of the column
protected ColumnLayoutData getLayoutData(Scrollable tableTree,
int columnIndex)
getLayoutData in class AbstractColumnLayouttableTree - the controlcolumnIndex - the column index
protected void updateColumnData(Widget column)
updateColumnData in class AbstractColumnLayoutcolumn - the column
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.