| java.lang.Object org.eclipse.jface.viewers.ColumnLayoutData org.eclipse.jface.viewers.ColumnPixelData
ColumnPixelData | public class ColumnPixelData extends ColumnLayoutData (Code) | | Describes the width of a table column in pixels, and
whether the column is resizable.
This class may be instantiated; it is not intended to be subclassed.
|
Field Summary | |
public boolean | addTrim Whether to allocate extra width to the column to account for
trim taken by the column itself. | public int | width The column's width in pixels. |
Constructor Summary | |
public | ColumnPixelData(int widthInPixels) Creates a resizable column width of the given number of pixels. | public | ColumnPixelData(int widthInPixels, boolean resizable) Creates a column width of the given number of pixels. | public | ColumnPixelData(int widthInPixels, boolean resizable, boolean addTrim) Creates a column width of the given number of pixels. |
addTrim | public boolean addTrim(Code) | | Whether to allocate extra width to the column to account for
trim taken by the column itself.
The default is 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.
since: 3.1 |
width | public int width(Code) | | The column's width in pixels.
|
ColumnPixelData | public ColumnPixelData(int widthInPixels)(Code) | | Creates a resizable column width of the given number of pixels.
Parameters: widthInPixels - the width of column in pixels |
ColumnPixelData | public ColumnPixelData(int widthInPixels, boolean resizable)(Code) | | Creates a column width of the given number of pixels.
Parameters: widthInPixels - the width of column in pixels Parameters: resizable - true if the column is resizable,and false if size of the column is fixed |
ColumnPixelData | public ColumnPixelData(int widthInPixels, boolean resizable, boolean addTrim)(Code) | | Creates a column width of the given number of pixels.
Parameters: widthInPixels - the width of column in pixels Parameters: resizable - true if the column is resizable, andfalse if size of the column is fixed Parameters: addTrim - true to allocate extra width to the column toaccount for trim taken by the column itself,false to use the given width exactly since: 3.1 |
Fields inherited from org.eclipse.jface.viewers.ColumnLayoutData | public boolean resizable(Code)(Java Doc)
|
|
|