|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.viewers.ColumnLayoutData
org.eclipse.jface.viewers.ColumnPixelData
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 | |
---|---|
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. |
Fields inherited from class org.eclipse.jface.viewers.ColumnLayoutData |
---|
resizable |
Constructor Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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.
Constructor Detail |
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 exactly
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.