Package org.eclipse.jface.viewers
Class ColumnWeightData
java.lang.Object
org.eclipse.jface.viewers.ColumnLayoutData
org.eclipse.jface.viewers.ColumnWeightData
Describes the width of a table column in terms of a weight,
a minimum width, and whether the column is resizable.
This class may be instantiated; it is not intended to be subclassed.
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Default width of a column (in pixels).int
The column's minimum width in pixels.int
The column's weight.Fields inherited from class org.eclipse.jface.viewers.ColumnLayoutData
resizable
-
Constructor Summary
ConstructorsConstructorDescriptionColumnWeightData
(int weight) Creates a resizable column width with the given weight and a default minimum width.ColumnWeightData
(int weight, boolean resizable) Creates a column width with the given weight and a default minimum width.ColumnWeightData
(int weight, int minimumWidth) Creates a resizable column width with the given weight and minimum width.ColumnWeightData
(int weight, int minimumWidth, boolean resizable) Creates a column width with the given weight and minimum width. -
Method Summary
-
Field Details
-
MINIMUM_WIDTH
public static final int MINIMUM_WIDTHDefault width of a column (in pixels).- See Also:
-
minimumWidth
public int minimumWidthThe column's minimum width in pixels. -
weight
public int weightThe column's weight.
-
-
Constructor Details
-
ColumnWeightData
public ColumnWeightData(int weight) Creates a resizable column width with the given weight and a default minimum width.- Parameters:
weight
- the weight of the column
-
ColumnWeightData
public ColumnWeightData(int weight, int minimumWidth) Creates a resizable column width with the given weight and minimum width.- Parameters:
weight
- the weight of the columnminimumWidth
- the minimum width of the column in pixels
-
ColumnWeightData
public ColumnWeightData(int weight, int minimumWidth, boolean resizable) Creates a column width with the given weight and minimum width.- Parameters:
weight
- the weight of the columnminimumWidth
- the minimum width of the column in pixelsresizable
-true
if the column is resizable, andfalse
if size of the column is fixed
-
ColumnWeightData
public ColumnWeightData(int weight, boolean resizable) Creates a column width with the given weight and a default minimum width.- Parameters:
weight
- the weight of the columnresizable
-true
if the column is resizable, andfalse
if size of the column is fixed
-