public class ColumnViewerFormat<T> extends Object
TableViewer
s and TreeViewer
s with a certain format.Modifier and Type | Class and Description |
---|---|
static class |
ColumnViewerFormat.ColumnBuilder<T>
Builder for a single TableColumn.
|
Modifier and Type | Method and Description |
---|---|
ColumnViewerFormat.ColumnBuilder<T> |
addColumn()
Adds a column to the table.
|
static <T> ColumnViewerFormat<T> |
builder()
Creates a
TableFormat with the given style bits. |
TableViewer |
buildTable(Composite parent)
Builds a
TableViewer on the given parent. |
TreeViewer |
buildTree(Composite parent)
Builds a
TreeViewer on the given parent. |
ColumnViewerFormat<T> |
setHeaderVisible(boolean headerVisible)
Sets the lines to be visible, defaults to true.
|
ColumnViewerFormat<T> |
setLinesVisible(boolean linesVisible)
Sets the lines to be visible, defaults to true.
|
ColumnViewerFormat<T> |
setStyle(int style)
Sets the SWT style flags.
|
ColumnViewerFormat<T> |
setUseHashLookup(boolean useHashLookup)
Sets the whether the viewer is accelerated by a hashtable, defaults to true.
|
public static <T> ColumnViewerFormat<T> builder()
TableFormat
with the given style bits.public ColumnViewerFormat<T> setStyle(int style)
public ColumnViewerFormat<T> setLinesVisible(boolean linesVisible)
public ColumnViewerFormat<T> setHeaderVisible(boolean headerVisible)
public ColumnViewerFormat<T> setUseHashLookup(boolean useHashLookup)
public ColumnViewerFormat.ColumnBuilder<T> addColumn()
public TableViewer buildTable(Composite parent)
TableViewer
on the given parent.public TreeViewer buildTree(Composite parent)
TreeViewer
on the given parent.