|
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.TableColumnLayout
public class 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
Field Summary |
---|
Fields inherited from class org.eclipse.jface.layout.AbstractColumnLayout |
---|
LAYOUT_DATA |
Constructor Summary | |
---|---|
TableColumnLayout()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.eclipse.jface.layout.AbstractColumnLayout |
---|
computeSize, getColumnTrim, layout, 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 TableColumnLayout()
Method Detail |
---|
protected int getColumnCount(Scrollable tableTree)
getColumnCount
in class AbstractColumnLayout
tableTree
- the control
protected 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 index
protected void updateColumnData(Widget column)
AbstractColumnLayout
updateColumnData
in class AbstractColumnLayout
column
- 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.