public class ColumnPixelData extends ColumnLayoutData
This class may be instantiated; it is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
boolean |
addTrim
Whether to allocate extra width to the column to account for
trim taken by the column itself.
|
int |
width
The column's width in pixels.
|
resizable| Constructor and Description |
|---|
ColumnPixelData(int widthInPixels)
Creates a resizable column width of the given number of pixels.
|
ColumnPixelData(int widthInPixels,
boolean resizable)
Creates a column width of the given number of pixels.
|
ColumnPixelData(int widthInPixels,
boolean resizable,
boolean addTrim)
Creates a column width of the given number of pixels.
|
public int width
public boolean addTrim
false for backwards compatibility, but
the recommended practice is to specify true, and
specify the desired width for the content of the column, rather
than adding a fudge factor to the specified width.public ColumnPixelData(int widthInPixels)
widthInPixels - the width of column in pixelspublic ColumnPixelData(int widthInPixels,
boolean resizable)
widthInPixels - the width of column in pixelsresizable - true if the column is resizable,
and false if size of the column is fixedpublic ColumnPixelData(int widthInPixels,
boolean resizable,
boolean addTrim)
widthInPixels - the width of column in pixelsresizable - true if the column is resizable, and
false if size of the column is fixedaddTrim - true to allocate extra width to the column to
account for trim taken by the column itself,
false to use the given width exactlyGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.